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

Function mod_exp_init

modules/crypt/arith/xsBigIntEx.c:360–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static txBigInt *mod_exp_init(txMachine *the, txBigInt *r, txBigInt *m)
361{
362 if (r == NULL)
363 r = fxBigInt_alloc(the, m->size);
364 r->size = 1;
365 r->data[0] = 1;
366 return r;
367}
368
369txBigInt *fxBigInt_mod_exp_LR(txMachine *the, txBigInt *r, txBigInt *b, txBigInt *e, txBigInt *m)
370{

Callers 1

fxBigInt_mod_exp_LRFunction · 0.85

Calls 1

fxBigInt_allocFunction · 0.85

Tested by

no test coverage detected