set hash size for PIC32MZ hardware crypto

This commit is contained in:
Chris Conlon
2017-10-13 13:22:18 -06:00
parent d5b7c13fbf
commit 7dccd9d478

View File

@ -1977,6 +1977,9 @@ void bench_md5(int doAsync)
printf("InitMd5_ex failed, ret = %d\n", ret);
goto exit;
}
#ifdef WOLFSSL_PIC32MZ_HASH
wc_Md5SizeSet(&hash[i], numBlocks * BENCH_SIZE);
#endif
}
bench_stats_start(&count, &start);
@ -2046,6 +2049,9 @@ void bench_sha(int doAsync)
printf("InitSha failed, ret = %d\n", ret);
goto exit;
}
#ifdef WOLFSSL_PIC32MZ_HASH
wc_ShaSizeSet(&hash[i], numBlocks * BENCH_SIZE);
#endif
}
bench_stats_start(&count, &start);
@ -2178,6 +2184,9 @@ void bench_sha256(int doAsync)
printf("InitSha256_ex failed, ret = %d\n", ret);
goto exit;
}
#ifdef WOLFSSL_PIC32MZ_HASH
wc_Sha256SizeSet(&hash[i], numBlocks * BENCH_SIZE);
#endif
}
bench_stats_start(&count, &start);