X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=crypto%2Frsa_helper.c;h=0b66dc8246068aa084dd0b44210b04dee5f2bccb;hb=80a306d6faa72a7724b0b9f440a116f6e85eaec5;hp=4df6451e7543670f7836c2507e77d7329d65b10f;hpb=33e09f0ee76e9e4108c5aed67e027ef5e3fe0634;p=cascardo%2Flinux.git 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, 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; }