OSDN Git Service

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

FIPS disallows DH 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/dh.c