crypto: drbg - select SHA512
authorStephan Mueller <smueller@chronox.de>
Wed, 30 Jun 2021 10:32:52 +0000 (12:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jul 2021 07:49:31 +0000 (15:49 +0800)
With the swtich to use HMAC(SHA-512) as the default DRBG type, the
configuration must now also select SHA-512.

Fixes: 9b7b94683a9b "crypto: DRBG - switch to HMAC SHA512 DRBG as default
DRBG"
Reported-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Stephan Mueller <smueller@chronox.com>
Tested-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index ca3b02d..64b772c 100644 (file)
@@ -1768,7 +1768,7 @@ config CRYPTO_DRBG_HMAC
        bool
        default y
        select CRYPTO_HMAC
-       select CRYPTO_SHA256
+       select CRYPTO_SHA512
 
 config CRYPTO_DRBG_HASH
        bool "Enable Hash DRBG"