Skip to content

Commit d7af80d

Browse files
Update new AES-CMAC bounds test to account for FIPS still using the old code.
1 parent 3300d08 commit d7af80d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/api/test_cmac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,14 @@ int test_wc_AesCmacGenerate(void)
245245
ExpectIntEQ(wc_AesCmacVerify(mac, macSz, NULL, msgSz, key, keySz),
246246
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
247247

248+
#if !defined(HAVE_FIPS)
248249
ExpectIntEQ(wc_AesCmacVerify(mac, 1, msg, msgSz, key, keySz),
249250
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
250251
ExpectIntEQ(wc_AesCmacVerify(mac, WC_CMAC_TAG_MIN_SZ - 1, msg, msgSz,
251252
key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
252253
ExpectIntEQ(wc_AesCmacVerify(mac, WC_AES_BLOCK_SIZE + 1, msg, msgSz,
253254
key, keySz), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
255+
#endif
254256

255257
/* Truncated tags within the supported range must verify correctly when
256258
* the generator was asked to produce the same length */

0 commit comments

Comments
 (0)