Commit 131d068d authored by Niels Möller's avatar Niels Möller
Browse files

Fixed memory leak in curve25519 test case.

parent 98333dcd
2014-08-02 Niels Möller <>
* testsuite/curve25519-dh-test.c (curve25519_sqrt): Fixed memory
leak, a mpz_clear call was missing.
* ecc-internal.h (ECC_MUL_A_EH_WBITS): Set to 4, to enable
window-based scalar multiplication.
......@@ -111,6 +111,7 @@ int curve25519_sqrt (const struct ecc_curve *ecc,
mpz_clear (sm1h);
mpz_clear (x);
mpz_clear (b);
mpz_clear (t);
return success;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment