summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'cipher')
-rw-r--r--cipher/kdf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cipher/kdf.c b/cipher/kdf.c
index dd741397..ff13e6e8 100644
--- a/cipher/kdf.c
+++ b/cipher/kdf.c
@@ -164,10 +164,6 @@ _gcry_kdf_pkdf2 (const void *passphrase, size_t passphraselen,
if (fips_mode () && dklen < 14)
return GPG_ERR_INV_VALUE;
- /* HMAC requires longer input for approved use case. */
- if (fips_mode () && passphraselen < 14)
- return GPG_ERR_INV_VALUE;
-
/* Step 2 */
l = ((dklen - 1)/ hlen) + 1;
r = dklen - (l - 1) * hlen;