]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fixed scratch allocation in test_ecc_mul_h.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 23 Sep 2014 11:49:07 +0000 (13:49 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 23 Sep 2014 11:49:07 +0000 (13:49 +0200)
ChangeLog
testsuite/testutils.c

index 0c97135fda697d63e54344b939011d89d71fb2e1..6aab4252d8fce315c64f6d4108bf0ec0614c37d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 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
index e30f76dac9e81d9b528a6ddfeb1ad9402856fc1c..c082e408a4bea1a553f93f831a86df2a92e921b6 100644 (file)
@@ -1436,7 +1436,7 @@ test_ecc_mul_h (unsigned curve, unsigned n, const mp_limb_t *p)
 {
   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);