| 69 | } |
| 70 | |
| 71 | static void get_ecp(xsMachine *the, txECPoint *p, xsSlot *slot, int *i, txECParam *ec) |
| 72 | { |
| 73 | xsmcGet(xsVar(*i), *slot, xsID_x); |
| 74 | p->x = xsmcToBigInt(xsVar(*i)); |
| 75 | (*i)++; |
| 76 | xsmcGet(xsVar(*i), *slot, xsID_y); |
| 77 | p->y = xsmcToBigInt(xsVar(*i)); |
| 78 | (*i)++; |
| 79 | xsmcGet(xsVar(*i), *slot, xsID_z); |
| 80 | p->z = xsmcToBigInt(xsVar(*i)); |
| 81 | (*i)++; |
| 82 | p->x = mont_in(the, NULL, p->x, ec->m); |
| 83 | p->y = mont_in(the, NULL, p->y, ec->m); |
| 84 | p->z = mont_in(the, NULL, p->z, ec->m); |
| 85 | // RI: those (x, y, z) are fxBigInt_alloc'ed. Is it ok not to free? |
| 86 | } |
| 87 | |
| 88 | static void set_ecp(xsMachine *the, xsSlot *slot, txECPoint *p, txECParam *ec) |
| 89 | { |
no test coverage detected