Skip to content

Commit 9bc221b

Browse files
committed
wolfcrypt/test/test.c: skip the "reject authTagSz below WOLFSSL_MIN_AUTH_TAG_SZ" test on FIPS <7.0.0.
1 parent 1df2616 commit 9bc221b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18362,6 +18362,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesgcm_test(void)
1836218362
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
1836318363
#endif
1836418364

18365+
#if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(7,0,0)
1836518366
/* Regression test: wc_AesGcmDecryptFinal must reject authTagSz below
1836618367
* WOLFSSL_MIN_AUTH_TAG_SZ, consistent with wc_AesGcmDecrypt and
1836718368
* wc_AesGcmEncryptFinal. */
@@ -18376,6 +18377,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesgcm_test(void)
1837618377
if (ret != WC_NO_ERR_TRACE(BAD_FUNC_ARG))
1837718378
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), out);
1837818379
#endif /* HAVE_AES_DECRYPT && WOLFSSL_MIN_AUTH_TAG_SZ > 1 */
18380+
#endif /* !HAVE_FIPS || FIPS_VERSION3_GE(7,0,0) */
1837918381

1838018382
/* alen is the size to pass in with each update. */
1838118383
for (alen = 1; alen < WC_AES_BLOCK_SIZE + 1; alen++) {

0 commit comments

Comments
 (0)