Skip to content

Commit 49faba6

Browse files
committed
tests: expect BAD_FUNC_ARG from wc_HmacSizeByType on FIPS v7
1 parent 610b51f commit 49faba6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎wolfcrypt/test/test.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12592,7 +12592,9 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t hmac_sha256_test(void)
1259212592
#if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(6,0,0)
1259312593
if ((ret = wc_HmacSizeByType(WC_SHA256)) != WC_SHA256_DIGEST_SIZE)
1259412594
return WC_TEST_RET_ENC_EC(ret);
12595-
#if FIPS_VERSION3_GE(6,0,0) && !defined(WOLFSSL_FIPS_DEV_NO_POST)
12595+
#if FIPS_VERSION3_GE(6,0,0) && \
12596+
!(FIPS_VERSION3_GE(7,0,0) && defined(WC_HAVE_FIPS_INDICATOR)) && \
12597+
!defined(WOLFSSL_FIPS_DEV_NO_POST)
1259612598
if ((ret = wc_HmacSizeByType(21)) != WC_NO_ERR_TRACE(HMAC_KAT_FIPS_E))
1259712599
#else
1259812600
if ((ret = wc_HmacSizeByType(21)) != WC_NO_ERR_TRACE(BAD_FUNC_ARG))

0 commit comments

Comments
 (0)