| 86 | } |
| 87 | |
| 88 | static void set_ecp(xsMachine *the, xsSlot *slot, txECPoint *p, txECParam *ec) |
| 89 | { |
| 90 | mont_out(the, p->x, p->x, ec->m, ec->u); |
| 91 | mont_out(the, p->y, p->y, ec->m, ec->u); |
| 92 | mont_out(the, p->z, p->z, ec->m, ec->u); |
| 93 | |
| 94 | xsmcSetBigInt(xsVar(0), p->x); |
| 95 | xsmcSetBigInt(xsVar(1), p->y); |
| 96 | xsmcSetBigInt(xsVar(2), p->z); |
| 97 | xsmcSetNewObject(*slot); |
| 98 | xsmcSet(*slot, xsID_x, xsVar(0)); |
| 99 | xsmcSet(*slot, xsID_y, xsVar(1)); |
| 100 | xsmcSet(*slot, xsID_z, xsVar(2)); |
| 101 | } |
| 102 | |
| 103 | void |
| 104 | xs_ec2_add(xsMachine *the) |
no test coverage detected