@@ -5112,7 +5112,7 @@ void bench_shake128(int useDeviceID)
5112
5112
if (bench_async_check (& ret , BENCH_ASYNC_GET_DEV (& hash [i ]),
5113
5113
0 , & times , numBlocks , & pending )) {
5114
5114
ret = wc_Shake128_Update (& hash [i ], bench_plain ,
5115
- BENCH_SIZE );
5115
+ bench_size );
5116
5116
if (!bench_async_handle (& ret ,
5117
5117
BENCH_ASYNC_GET_DEV (& hash [i ]), 0 ,
5118
5118
& times , & pending )) {
@@ -5148,7 +5148,7 @@ void bench_shake128(int useDeviceID)
5148
5148
ret = wc_InitShake128 (hash , HEAP_HINT ,
5149
5149
useDeviceID ? devId : INVALID_DEVID );
5150
5150
if (ret == 0 )
5151
- ret = wc_Shake128_Update (hash , bench_plain , BENCH_SIZE );
5151
+ ret = wc_Shake128_Update (hash , bench_plain , bench_size );
5152
5152
if (ret == 0 )
5153
5153
ret = wc_Shake128_Final (hash , digest [0 ],
5154
5154
WC_SHA3_128_BLOCK_SIZE );
@@ -5207,7 +5207,7 @@ void bench_shake256(int useDeviceID)
5207
5207
if (bench_async_check (& ret , BENCH_ASYNC_GET_DEV (& hash [i ]),
5208
5208
0 , & times , numBlocks , & pending )) {
5209
5209
ret = wc_Shake256_Update (& hash [i ], bench_plain ,
5210
- BENCH_SIZE );
5210
+ bench_size );
5211
5211
if (!bench_async_handle (& ret ,
5212
5212
BENCH_ASYNC_GET_DEV (& hash [i ]), 0 ,
5213
5213
& times , & pending )) {
@@ -5243,7 +5243,7 @@ void bench_shake256(int useDeviceID)
5243
5243
ret = wc_InitShake256 (hash , HEAP_HINT ,
5244
5244
useDeviceID ? devId : INVALID_DEVID );
5245
5245
if (ret == 0 )
5246
- ret = wc_Shake256_Update (hash , bench_plain , BENCH_SIZE );
5246
+ ret = wc_Shake256_Update (hash , bench_plain , bench_size );
5247
5247
if (ret == 0 )
5248
5248
ret = wc_Shake256_Final (hash , digest [0 ],
5249
5249
WC_SHA3_256_BLOCK_SIZE );
0 commit comments