We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebbfc2e + cd4f969 commit 9201b4eCopy full SHA for 9201b4e
wolfcrypt/src/error.c
@@ -315,7 +315,7 @@ const char* wc_GetErrorString(int error)
315
return "Random Number Generator failed";
316
317
case HMAC_MIN_KEYLEN_E:
318
- return "FIPS Mode HMAC Minimum Key Length error";
+ return "FIPS Mode HMAC Minimum Key or Salt Length error";
319
320
case RSA_PAD_E:
321
return "Rsa Padding error";
wolfssl/wolfcrypt/hmac.h
@@ -66,8 +66,9 @@
66
#define WC_HMAC_INNER_HASH_KEYED_DEV 2
67
68
enum {
69
- HMAC_FIPS_MIN_KEY = 14, /* 112 bit key length minimum */
70
-
+ HMAC_FIPS_MIN_KEY = 14, /* 112 bit key length minimum. Note that this
+ * minimum also applies to the salt length for
71
+ * HKDF. */
72
IPAD = 0x36,
73
OPAD = 0x5C,
74
0 commit comments