Looks like FinalRaw was added post FIPS v2.

This commit is contained in:
David Garske
2020-09-23 16:06:21 -07:00
parent 5e1c0f886f
commit f77157bfea

View File

@ -6474,7 +6474,7 @@ static int test_wc_Sha256FinalRaw (void)
{ {
int flag = 0; int flag = 0;
#if !defined(NO_SHA256) && (!defined(HAVE_FIPS) || \ #if !defined(NO_SHA256) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3)))
wc_Sha256 sha256; wc_Sha256 sha256;
byte* hash_test[3]; byte* hash_test[3];
byte hash1[WC_SHA256_DIGEST_SIZE]; byte hash1[WC_SHA256_DIGEST_SIZE];
@ -6921,7 +6921,7 @@ static int test_wc_Sha512FinalRaw (void)
{ {
int flag = 0; int flag = 0;
#if defined(WOLFSSL_SHA512) && (!defined(HAVE_FIPS) || \ #if defined(WOLFSSL_SHA512) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3)))
wc_Sha512 sha512; wc_Sha512 sha512;
byte* hash_test[3]; byte* hash_test[3];
byte hash1[WC_SHA512_DIGEST_SIZE]; byte hash1[WC_SHA512_DIGEST_SIZE];
@ -7343,7 +7343,7 @@ static int test_wc_Sha384FinalRaw (void)
{ {
int flag = 0; int flag = 0;
#if defined(WOLFSSL_SHA384) && (!defined(HAVE_FIPS) || \ #if defined(WOLFSSL_SHA384) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3)))
wc_Sha384 sha384; wc_Sha384 sha384;
byte* hash_test[3]; byte* hash_test[3];
byte hash1[WC_SHA384_DIGEST_SIZE]; byte hash1[WC_SHA384_DIGEST_SIZE];