mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-07 02:10:48 +02:00
Update new AES-CMAC bounds test to account for FIPS still using the old code.
This commit is contained in:
@@ -245,12 +245,14 @@ int test_wc_AesCmacGenerate(void)
|
||||
ExpectIntEQ(wc_AesCmacVerify(mac, macSz, NULL, msgSz, key, keySz),
|
||||
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
|
||||
#if !defined(HAVE_FIPS)
|
||||
ExpectIntEQ(wc_AesCmacVerify(mac, 1, msg, msgSz, key, keySz),
|
||||
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
ExpectIntEQ(wc_AesCmacVerify(mac, WC_CMAC_TAG_MIN_SZ - 1, msg, msgSz,
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user