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

Function fxBigInt_mod_mul

modules/crypt/arith/xsBigIntEx.c:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167txBigInt *fxBigInt_mod_mul(txMachine *the, txBigInt *r, txBigInt *a, txBigInt *b, txBigInt *m, pool_t *pool)
168{
169 txU2 mSize = m->size * 2;
170 txBigInt *c = pool_get(the, mSize, pool);
171
172 c = fxBigInt_mul(the, c, a, b);
173 fxBigInt_mod(the, r, c, m);
174 pool_put(c, mSize);
175 return r;
176}
177
178txBigInt *fxBigInt_mod_square(txMachine *the, txBigInt *r, txBigInt *a, txBigInt *m, pool_t *pool)
179{

Callers 1

fxBigInt_mod_exp_LRFunction · 0.85

Calls 4

pool_getFunction · 0.85
fxBigInt_mulFunction · 0.85
fxBigInt_modFunction · 0.85
pool_putFunction · 0.85

Tested by

no test coverage detected