]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - crypto/rsa_helper.c
usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter
[karo-tx-linux.git] / crypto / rsa_helper.c
index 4df6451e7543670f7836c2507e77d7329d65b10f..0b66dc8246068aa084dd0b44210b04dee5f2bccb 100644 (file)
@@ -35,8 +35,8 @@ int rsa_get_n(void *context, size_t hdrlen, unsigned char tag,
                        n_sz--;
                }
 
-               /* In FIPS mode only allow key size 2K & 3K */
-               if (n_sz != 256 && n_sz != 384) {
+               /* In FIPS mode only allow key size 2K and higher */
+               if (n_sz < 256) {
                        pr_err("RSA: key size not allowed in FIPS mode\n");
                        return -EINVAL;
                }