mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Merge pull request #1275 from dgarske/fix_async_sim_wctest
Fix for wolfCrypt test with async
This commit is contained in:
@ -11144,6 +11144,9 @@ static int ecc_test_make_pub(WC_RNG* rng)
|
||||
/* make public key for shared secret */
|
||||
wc_ecc_init(&pub);
|
||||
ret = wc_ecc_make_key(rng, 32, &pub);
|
||||
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||
ret = wc_AsyncWait(ret, &pub.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||
#endif
|
||||
if (ret != 0) {
|
||||
ERROR_OUT(-6830, done);
|
||||
}
|
||||
@ -11993,6 +11996,9 @@ static int ecc_def_curve_test(WC_RNG *rng)
|
||||
wc_ecc_init(&key);
|
||||
|
||||
ret = wc_ecc_make_key(rng, 32, &key);
|
||||
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||
ret = wc_AsyncWait(ret, &key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||
#endif
|
||||
if (ret != 0) {
|
||||
ret = -6643;
|
||||
goto done;
|
||||
@ -12296,6 +12302,9 @@ static int ecc_test_cert_gen(WC_RNG* rng)
|
||||
}
|
||||
|
||||
ret = wc_ecc_make_key(rng, 32, &certPubKey);
|
||||
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||
ret = wc_AsyncWait(ret, &certPubKey.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||
#endif
|
||||
if (ret != 0) {
|
||||
ERROR_OUT(-6726, exit);
|
||||
}
|
||||
|
Reference in New Issue
Block a user