crypto: drbg - Add select on sha256
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Jun 2015 00:55:10 +0000 (08:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Jun 2015 13:55:28 +0000 (21:55 +0800)
The hash-based DRBG variants all use sha256 so we need to add a
select on it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index cb7806f31c372510bb584a912b4801d41da48b6e..f6fc054eb2d1915027b85be745212922e8f0c415 100644 (file)
@@ -1508,10 +1508,11 @@ config CRYPTO_DRBG_HMAC
        bool
        default y
        select CRYPTO_HMAC
+       select CRYPTO_SHA256
 
 config CRYPTO_DRBG_HASH
        bool "Enable Hash DRBG"
-       select CRYPTO_HASH
+       select CRYPTO_SHA256
        help
          Enable the Hash DRBG variant as defined in NIST SP800-90A.