| 489 | } |
| 490 | |
| 491 | static txBigInt *mont_square(txMachine *the, txBigInt *r, txBigInt *a, txBigInt *m, txU4 u, pool_t *pool) |
| 492 | { |
| 493 | txU2 aSize = a->size * 2; |
| 494 | txBigInt *t = pool_get(the, aSize, pool); |
| 495 | |
| 496 | fxBigInt_sqr(the, t, a); |
| 497 | mont_reduction(the, r, t, m, u, pool); |
| 498 | pool_put(t, aSize); |
| 499 | return r; |
| 500 | } |
| 501 | |
| 502 | static txBigInt *mont_exp_init(txMachine *the, txBigInt *r, txBigInt *m, pool_t *pool) |
| 503 | { |
no test coverage detected