summaryrefslogtreecommitdiff
path: root/testsuite/testutils.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-23 13:49:07 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-23 13:49:07 +0200
commitbf52911d41f394f69edd3ae8acf8d9d261e16d27 (patch)
tree0956a465e491b05a1b95cc0b8a7cfd0cb52f3f90 /testsuite/testutils.c
parenta3328c58174827dbec966748a074db439d8e151a (diff)
downloadnettle-bf52911d41f394f69edd3ae8acf8d9d261e16d27.tar.gz
Fixed scratch allocation in test_ecc_mul_h.
Diffstat (limited to 'testsuite/testutils.c')
-rw-r--r--testsuite/testutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/testutils.c b/testsuite/testutils.c
index e30f76da..c082e408 100644
--- a/testsuite/testutils.c
+++ b/testsuite/testutils.c
@@ -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);