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.

This commit is contained in:
Kareem
2026-05-14 15:19:56 -07:00
parent d7af80dc93
commit 213bcb3e94
+1 -1
View File
@@ -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();