mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-14 17:21:35 +02:00
Increase WC_CMAC_TAG_MIN_SZ to SP800-38b recommendation
This commit is contained in:
@@ -99,14 +99,13 @@ struct Cmac {
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef NO_AES
|
||||
#define WC_CMAC_TAG_MAX_SZ WC_AES_BLOCK_SIZE
|
||||
#define WC_CMAC_TAG_MIN_SZ (WC_AES_BLOCK_SIZE/4)
|
||||
#else
|
||||
/* Reasonable defaults */
|
||||
#define WC_CMAC_TAG_MAX_SZ 16
|
||||
#define WC_CMAC_TAG_MIN_SZ 4
|
||||
/* SP800-38b recommends a minimum tag length of 64-bits */
|
||||
#ifndef WC_CMAC_TAG_MAX_SZ
|
||||
#define WC_CMAC_TAG_MAX_SZ 16
|
||||
#endif
|
||||
#ifndef WC_CMAC_TAG_MIN_SZ
|
||||
#define WC_CMAC_TAG_MIN_SZ 8
|
||||
#endif
|
||||
|
||||
#if FIPS_VERSION3_GE(6,0,0)
|
||||
|
||||
Reference in New Issue
Block a user