summaryrefslogtreecommitdiff
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-07-04 22:15:08 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-07-04 22:15:08 +0800
commited2657ea525ce62b2925dd70f5052e18095e0cf4 (patch)
tree9f52e86f2d931cd80d213910cebb1cc9b8882684 /crypto/drbg.c
parent5c602ae5d7dfdd4e47276d3642561553b4d99a65 (diff)
downloadlinux-crypto-ed2657ea525ce62b2925dd70f5052e18095e0cf4.tar.gz
linux-crypto-ed2657ea525ce62b2925dd70f5052e18095e0cf4.zip
crypto: drbg - Use Kconfig to ensure at least one RNG option is set
This patch removes the build-time test that ensures at least one RNG is set. Instead we will simply not build drbg if no options are set through Kconfig. This also fixes a typo in the name of the Kconfig option CRYTPO_DRBG (should be CRYPTO_DRBG). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/drbg.c')
-rw-r--r--crypto/drbg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index d6621a61..acc75237 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -99,12 +99,6 @@
#include <crypto/drbg.h>
-#if !defined(CONFIG_CRYPTO_DRBG_HASH) && \
- !defined(CONFIG_CRYPTO_DRBG_HMAC) && \
- !defined(CONFIG_CRYPTO_DRBG_CTR)
-#warning "The DRBG code is useless without compiling at least one DRBG type"
-#endif
-
/***************************************************************
* Backend cipher definitions available to DRBG
***************************************************************/