mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
fix ecc curve test in normal math mode, free is needed
This commit is contained in:
@@ -6259,6 +6259,7 @@ static int ecc_test_vector_item(const eccVector* vector, WC_RNG* rng)
|
|||||||
memset(sig, 0, sizeof(sig));
|
memset(sig, 0, sizeof(sig));
|
||||||
x = 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,
|
ret = wc_ecc_import_raw(&userA, vector->Qx, vector->Qy,
|
||||||
vector->d, vector->curveName);
|
vector->d, vector->curveName);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
|
Reference in New Issue
Block a user