mirror of https://github.com/wolfSSL/wolfssl
fix ecc curve test in normal math mode, free is needed
This commit is contained in:
parent
855e42b66a
commit
1649af37be
|
@ -6259,6 +6259,7 @@ static int ecc_test_vector_item(const eccVector* vector, WC_RNG* rng)
|
|||
memset(sig, 0, sizeof(sig));
|
||||
x = sizeof(sig);
|
||||
|
||||
wc_ecc_free(&userA); /* free key before importing a new one over the top */
|
||||
ret = wc_ecc_import_raw(&userA, vector->Qx, vector->Qy,
|
||||
vector->d, vector->curveName);
|
||||
if (ret != 0)
|
||||
|
|
Loading…
Reference in New Issue