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

Function xs_mod2_exp

modules/crypt/arith/modular.c:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void
69xs_mod2_exp(xsMachine *the)
70{
71 txBigInt *a, *e, *m, *r;
72
73 a = xsmcToBigInt(xsArg(0));
74 e = xsmcToBigInt(xsArg(1));
75 m = xsmcToBigInt(xsArg(2));
76 r = fxBigInt_mod_exp_LR(the, NULL, a, e, m);
77 xsmcSetBigInt(xsResult, r);
78}

Callers

nothing calls this directly

Calls 1

fxBigInt_mod_exp_LRFunction · 0.85

Tested by

no test coverage detected