aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-07-04 10:15:08 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-07-04 10:15:08 -0400
commitf2c89a10de4fd123a3d15223d26994f2fe1b95d8 (patch)
tree4d0152863efebece8da6ffa9796173fcb67e7702 /crypto/drbg.c
parent8c98716601bc05091ff49aa8ebf5299a0c6604a0 (diff)
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 d6621a6181d7..acc752373791 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -99,12 +99,6 @@
99 99
100#include <crypto/drbg.h> 100#include <crypto/drbg.h>
101 101
102#if !defined(CONFIG_CRYPTO_DRBG_HASH) && \
103 !defined(CONFIG_CRYPTO_DRBG_HMAC) && \
104 !defined(CONFIG_CRYPTO_DRBG_CTR)
105#warning "The DRBG code is useless without compiling at least one DRBG type"
106#endif
107
108/*************************************************************** 102/***************************************************************
109 * Backend cipher definitions available to DRBG 103 * Backend cipher definitions available to DRBG
110 ***************************************************************/ 104 ***************************************************************/