forked from wolfSSL/wolfssl
Fix for AES-ECB benchmark livelock with Async
This commit is contained in:
@ -4697,7 +4697,7 @@ static void bench_aesecb_internal(int useDeviceID,
|
|||||||
/* while free pending slots in queue, submit ops */
|
/* while free pending slots in queue, submit ops */
|
||||||
for (i = 0; i < BENCH_MAX_PENDING; i++) {
|
for (i = 0; i < BENCH_MAX_PENDING; i++) {
|
||||||
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
|
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
|
||||||
×, numBlocks, &pending)) {
|
×, outer_loop_limit, &pending)) {
|
||||||
#ifdef HAVE_FIPS
|
#ifdef HAVE_FIPS
|
||||||
wc_AesEncryptDirect(&enc[i], bench_cipher, bench_plain);
|
wc_AesEncryptDirect(&enc[i], bench_cipher, bench_plain);
|
||||||
#else
|
#else
|
||||||
@ -4748,7 +4748,7 @@ exit_aes_enc:
|
|||||||
/* while free pending slots in queue, submit ops */
|
/* while free pending slots in queue, submit ops */
|
||||||
for (i = 0; i < BENCH_MAX_PENDING; i++) {
|
for (i = 0; i < BENCH_MAX_PENDING; i++) {
|
||||||
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
|
if (bench_async_check(&ret, BENCH_ASYNC_GET_DEV(&enc[i]), 0,
|
||||||
×, numBlocks, &pending)) {
|
×, outer_loop_limit, &pending)) {
|
||||||
#ifdef HAVE_FIPS
|
#ifdef HAVE_FIPS
|
||||||
wc_AesDecryptDirect(&enc[i], bench_plain, bench_cipher);
|
wc_AesDecryptDirect(&enc[i], bench_plain, bench_cipher);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user