Fixes for async with benchmark tool.

This commit is contained in:
David Garske
2017-05-23 15:41:42 -07:00
parent 64de29f277
commit c1664bd1a0

View File

@@ -3072,9 +3072,15 @@ void bench_eccEncrypt(void)
} }
ret = wc_ecc_make_key(&rng, keySize, &userA); ret = wc_ecc_make_key(&rng, keySize, &userA);
#ifdef WOLFSSL_ASYNC_CRYPT
ret = wc_AsyncWait(ret, &userA.asyncDev, WC_ASYNC_FLAG_NONE);
#endif
if (ret != 0) if (ret != 0)
goto exit; goto exit;
ret = wc_ecc_make_key(&rng, keySize, &userB); ret = wc_ecc_make_key(&rng, keySize, &userB);
#ifdef WOLFSSL_ASYNC_CRYPT
ret = wc_AsyncWait(ret, &userB.asyncDev, WC_ASYNC_FLAG_NONE);
#endif
if (ret != 0) if (ret != 0)
goto exit; goto exit;