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

Function fxBigInt_ec_add

modules/crypt/arith/xsBigIntEx.c:834–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834void fxBigInt_ec_add(txMachine *the, txECPoint *r, txECPoint *a, txECPoint *b, txECParam *ec)
835{
836 pool_t pool;
837
838 if (r->z == NULL)
839 r->z = fxBigInt_alloc(the, ec->m->size);
840 if (r->y == NULL)
841 r->y = fxBigInt_alloc(the, ec->m->size);
842 if (r->x == NULL)
843 r->x = fxBigInt_alloc(the, ec->m->size);
844 pool_init(&pool);
845 ec_add(the, r, a, b, ec, &pool);
846 pool_dispose(the, &pool);
847}
848
849void fxBigInt_ec_mul(txMachine *the, txECPoint *r, txECPoint *a, txBigInt *k, txECParam *ec)
850{

Callers 1

xs_ec2_addFunction · 0.85

Calls 4

fxBigInt_allocFunction · 0.85
pool_initFunction · 0.85
ec_addFunction · 0.85
pool_disposeFunction · 0.85

Tested by

no test coverage detected