Skip to content

Commit 213bcb3

Browse files
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.
1 parent d7af80d commit 213bcb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/api/test_cmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ int test_wc_AesCmacGenerate(void)
252252
key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
253253
ExpectIntEQ(wc_AesCmacVerify(mac, WC_AES_BLOCK_SIZE + 1, msg, msgSz,
254254
key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
255-
#endif
256255

257256
/* Truncated tags within the supported range must verify correctly when
258257
* the generator was asked to produce the same length */
@@ -287,6 +286,7 @@ int test_wc_AesCmacGenerate(void)
287286
ExpectIntEQ(wc_AesCmacVerify(badMac, WC_AES_BLOCK_SIZE, msg, msgSz,
288287
key, keySz), WC_NO_ERR_TRACE(MAC_CMP_FAILED_E));
289288
}
289+
#endif
290290
#endif
291291
return EXPECT_RESULT();
292292

0 commit comments

Comments
 (0)