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

Function fxBigInt_ec_double

modules/crypt/arith/xsBigIntEx.c:691–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691void fxBigInt_ec_double(txMachine *the, txECPoint *r, txECPoint *a, txECParam *ec)
692{
693 pool_t pool;
694
695 if (r->z == NULL)
696 r->z = fxBigInt_alloc(the, ec->m->size);
697 if (r->y == NULL)
698 r->y = fxBigInt_alloc(the, ec->m->size);
699 if (r->x == NULL)
700 r->x = fxBigInt_alloc(the, ec->m->size);
701 pool_init(&pool);
702 ec_double(the, r, a, ec, &pool);
703 pool_dispose(the, &pool);
704}
705
706/*
707 https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html

Callers

nothing calls this directly

Calls 4

fxBigInt_allocFunction · 0.85
pool_initFunction · 0.85
ec_doubleFunction · 0.85
pool_disposeFunction · 0.85

Tested by

no test coverage detected