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

Function mont_in

modules/crypt/arith/xsBigIntEx.c:438–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438txBigInt *mont_in(txMachine *the, txBigInt *r, txBigInt *a, txBigInt *m)
439{
440 txBigInt *ta;
441
442 if (r == NULL)
443 r = fxBigInt_alloc(the, m->size);
444 ta = fxBigInt_ulsl1(the, NULL, a, m->size * mxBigIntWordSize);
445 fxBigInt_mod(the, r, ta, m);
446 fxBigInt_free(the, ta);
447 return r;
448}
449
450txBigInt *mont_out(txMachine *the, txBigInt *r, txBigInt *a, txBigInt *m, txU4 u)
451{

Callers 5

fxBigInt_mont_exp_LRFunction · 0.85
fxBigInt_mont_exp_SWFunction · 0.85
fxBigInt_ec_normFunction · 0.85
get_ec_paramFunction · 0.85
get_ecpFunction · 0.85

Calls 4

fxBigInt_allocFunction · 0.85
fxBigInt_ulsl1Function · 0.85
fxBigInt_modFunction · 0.85
fxBigInt_freeFunction · 0.85

Tested by

no test coverage detected