crypto: rsa - limit key size to 2048 in FIPS mode
authorStephan Müller <smueller@chronox.de>
Sun, 21 Nov 2021 14:31:27 +0000 (15:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Nov 2021 05:25:18 +0000 (16:25 +1100)
commit1ce1bacc480965fab4420e561916ce45d2e90c05
treeecae3be9723e37d0ceb746c88f63a86df5ba75cb
parent552d03a223eda3df84526ab2c1f4d82e15eaee7a
crypto: rsa - limit key size to 2048 in FIPS mode

FIPS disallows RSA with keys < 2048 bits. Thus, the kernel should
consider the enforcement of this limit.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa.c