aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rsa_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsa_helper.c')
-rw-r--r--crypto/rsa_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rsa_helper.c b/crypto/rsa_helper.c
index 4df6451e7543..0b66dc824606 100644
--- a/crypto/rsa_helper.c
+++ b/crypto/rsa_helper.c
@@ -35,8 +35,8 @@ int rsa_get_n(void *context, size_t hdrlen, unsigned char tag,
35 n_sz--; 35 n_sz--;
36 } 36 }
37 37
38 /* In FIPS mode only allow key size 2K & 3K */ 38 /* In FIPS mode only allow key size 2K and higher */
39 if (n_sz != 256 && n_sz != 384) { 39 if (n_sz < 256) {
40 pr_err("RSA: key size not allowed in FIPS mode\n"); 40 pr_err("RSA: key size not allowed in FIPS mode\n");
41 return -EINVAL; 41 return -EINVAL;
42 } 42 }