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

Function mont_exp_init

modules/crypt/arith/xsBigIntEx.c:502–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502static txBigInt *mont_exp_init(txMachine *the, txBigInt *r, txBigInt *m, pool_t *pool)
503{
504 txBigInt *t = pool_get(the, m->size + 1, pool);
505
506 fxBigInt_fill0(t);
507 t->data[t->size - 1] = 1;
508 r = fxBigInt_mod(the, r, t, m);
509 pool_put(t, m->size + 1);
510 return r;
511}
512
513txBigInt *fxBigInt_mont_exp_LR(txMachine *the, txBigInt *r, txBigInt *b, txBigInt *e, txBigInt *m)
514{

Callers 2

fxBigInt_mont_exp_LRFunction · 0.85
fxBigInt_mont_exp_SWFunction · 0.85

Calls 4

pool_getFunction · 0.85
fxBigInt_fill0Function · 0.85
fxBigInt_modFunction · 0.85
pool_putFunction · 0.85

Tested by

no test coverage detected