MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / xs_mont2_exp_LR

Function xs_mont2_exp_LR

modules/crypt/arith/mont.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43extern txBigInt *fxBigInt_mont_exp_SW(xsMachine *the, txBigInt *r, txBigInt *b, txBigInt *e, txBigInt *m, int param);
44
45void
46xs_mont2_exp_LR(xsMachine *the)
47{
48 txBigInt *a, *e, *m, *r;
49
50 a = xsmcToBigInt(xsArg(0));
51 e = xsmcToBigInt(xsArg(1));
52 m = xsmcToBigInt(xsArg(2));
53 r = fxBigInt_mont_exp_LR(the, NULL, a, e, m);
54 xsmcSetBigInt(xsResult, r);
55}
56
57void
58xs_mont2_exp_SW(xsMachine *the)

Callers

nothing calls this directly

Calls 1

fxBigInt_mont_exp_LRFunction · 0.85

Tested by

no test coverage detected