mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Fix for ECC make key test not waiting for async completion.
This commit is contained in:
@@ -18578,6 +18578,9 @@ static int ecc_test_key_decode(WC_RNG* rng, int keySize)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = wc_ecc_make_key(rng, keySize, &eccKey);
|
ret = wc_ecc_make_key(rng, keySize, &eccKey);
|
||||||
|
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||||
|
ret = wc_AsyncWait(ret, &eccKey.asyncDev, WC_ASYNC_FLAG_NONE);
|
||||||
|
#endif
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
wc_ecc_free(&eccKey);
|
wc_ecc_free(&eccKey);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user