X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Frsa_helper.c;h=0b66dc8246068aa084dd0b44210b04dee5f2bccb;hb=5fed67df878b598c3a4afdd4c09e9bea491651dd;hp=4df6451e7543670f7836c2507e77d7329d65b10f;hpb=16217dc79dbc599b110dda26d0421df47904bba4;p=karo-tx-linux.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; }