| 832 | } |
| 833 | |
| 834 | void 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 | |
| 849 | void fxBigInt_ec_mul(txMachine *the, txECPoint *r, txECPoint *a, txBigInt *k, txECParam *ec) |
| 850 | { |
no test coverage detected