From 213bcb3e94c0cfa5acc65d60f7b03643a8bb8989 Mon Sep 17 00:00:00 2001 From: Kareem Date: Thu, 14 May 2026 15:19:56 -0700 Subject: [PATCH] Gate out all of the newly added AES-CMAC tests for FIPS as none of them will apply to the old FIPS AES-CMAC code. --- tests/api/test_cmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_cmac.c b/tests/api/test_cmac.c index 535d8715d1..4b3f6920b0 100644 --- a/tests/api/test_cmac.c +++ b/tests/api/test_cmac.c @@ -252,7 +252,6 @@ int test_wc_AesCmacGenerate(void) key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG)); ExpectIntEQ(wc_AesCmacVerify(mac, WC_AES_BLOCK_SIZE + 1, msg, msgSz, key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG)); -#endif /* Truncated tags within the supported range must verify correctly when * the generator was asked to produce the same length */ @@ -287,6 +286,7 @@ int test_wc_AesCmacGenerate(void) ExpectIntEQ(wc_AesCmacVerify(badMac, WC_AES_BLOCK_SIZE, msg, msgSz, key, keySz), WC_NO_ERR_TRACE(MAC_CMP_FAILED_E)); } +#endif #endif return EXPECT_RESULT();