2014-09-23 Niels Möller <nisse@lysator.liu.se>
+ * testsuite/testutils.c (test_ecc_mul_h): Use ecc->h_to_a_itch.
+
* ecc-mod-inv.c (ecc_mod_inv): Interface change, make ap input
const, and require 2n limbs at rp. Preparing for powm-based
alternative implementations. Drop #if:ed out code and dp
{
const struct ecc_curve *ecc = ecc_curves[curve];
mp_limb_t *np = xalloc_limbs (ecc_size_a (ecc));
- mp_limb_t *scratch = xalloc_limbs (ecc_j_to_a_itch(ecc));
+ mp_limb_t *scratch = xalloc_limbs (ecc->h_to_a_itch);
ecc->h_to_a (ecc, 0, np, p, scratch);
test_ecc_mul_a (curve, n, np);