Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wolfcrypt/src/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ const char* wc_GetErrorString(int error)
return "Random Number Generator failed";

case HMAC_MIN_KEYLEN_E:
return "FIPS Mode HMAC Minimum Key Length error";
return "FIPS Mode HMAC Minimum Key or Salt Length error";

case RSA_PAD_E:
return "Rsa Padding error";
Expand Down
5 changes: 3 additions & 2 deletions wolfssl/wolfcrypt/hmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@
#define WC_HMAC_INNER_HASH_KEYED_DEV 2

enum {
HMAC_FIPS_MIN_KEY = 14, /* 112 bit key length minimum */

HMAC_FIPS_MIN_KEY = 14, /* 112 bit key length minimum. Note that this
* minimum also applies to the salt length for
* HKDF. */
IPAD = 0x36,
OPAD = 0x5C,

Expand Down
Loading