| 119 | } |
| 120 | |
| 121 | void |
| 122 | xs_ec2_mul(xsMachine *the) |
| 123 | { |
| 124 | txECParam ec; |
| 125 | txECPoint r, p; |
| 126 | txBigInt *k; |
| 127 | int i = 0; |
| 128 | |
| 129 | xsmcVars(10); |
| 130 | get_ec_param(the, &ec, &i); |
| 131 | get_ecp(the, &p, &xsArg(0), &i, &ec); |
| 132 | k = xsmcToBigInt(xsArg(1)); |
| 133 | r.x = r.y = r.z = NULL; |
| 134 | // RI: r(x, y, z) will be fxBigInt_alloc'ed. Is it ok not to free? |
| 135 | fxBigInt_ec_mul(the, &r, &p, k, &ec); |
| 136 | fxBigInt_ec_norm(the, &r, &r, &ec); |
| 137 | set_ecp(the, &xsResult, &r, &ec); |
| 138 | } |
| 139 | |
| 140 | void |
| 141 | xs_ec2_mul2(xsMachine *the) |
nothing calls this directly
no test coverage detected