]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: rsa - allow keys >= 2048 bits in FIPS mode
authorStephan Mueller <smueller@chronox.de>
Tue, 23 Aug 2016 08:09:32 +0000 (10:09 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 Aug 2016 13:07:10 +0000 (21:07 +0800)
commit311bb5a42e857ade8a49014a48bd00c63081ebf6
treeb6004f2e25b55f8addea90516cbe08c3dcb48df7
parent334468df1ef5f2111efac31cfc4fc0abd7b4bc88
crypto: rsa - allow keys >= 2048 bits in FIPS mode

With a public notification, NIST now allows the use of RSA keys with a
modulus >= 2048 bits. The new rule allows any modulus size >= 2048 bits
provided that either 2048 or 3072 bits are supported at least so that
the entire RSA implementation can be CAVS tested.

This patch fixes the inability to boot the kernel in FIPS mode, because
certs/x509.genkey defines a 4096 bit RSA key per default. This key causes
the RSA signature verification to fail in FIPS mode without the patch
below.

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