We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4594151 commit db6b138Copy full SHA for db6b138
1 file changed
wolfcrypt/benchmark/benchmark.c
@@ -7475,12 +7475,12 @@ void bench_sm3(int useDeviceID)
7475
bench_stats_start(&count, &start);
7476
do {
7477
for (times = 0; times < numBlocks; times++) {
7478
- ret = wc_InitSm3(hash, HEAP_HINT,
+ ret = wc_InitSm3(hash[0], HEAP_HINT,
7479
useDeviceID ? devId: INVALID_DEVID);
7480
if (ret == 0)
7481
- ret = wc_Sm3Update(hash, bench_plain, bench_size);
+ ret = wc_Sm3Update(hash[0], bench_plain, bench_size);
7482
7483
- ret = wc_Sm3Final(hash, digest[0]);
+ ret = wc_Sm3Final(hash[0], digest[0]);
7484
if (ret != 0)
7485
goto exit_sm3;
7486
RECORD_MULTI_VALUE_STATS();
0 commit comments