| 500 | } |
| 501 | |
| 502 | static txBigInt *mont_exp_init(txMachine *the, txBigInt *r, txBigInt *m, pool_t *pool) |
| 503 | { |
| 504 | txBigInt *t = pool_get(the, m->size + 1, pool); |
| 505 | |
| 506 | fxBigInt_fill0(t); |
| 507 | t->data[t->size - 1] = 1; |
| 508 | r = fxBigInt_mod(the, r, t, m); |
| 509 | pool_put(t, m->size + 1); |
| 510 | return r; |
| 511 | } |
| 512 | |
| 513 | txBigInt *fxBigInt_mont_exp_LR(txMachine *the, txBigInt *r, txBigInt *b, txBigInt *e, txBigInt *m) |
| 514 | { |
no test coverage detected