diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-07-04 22:15:08 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-07-04 22:15:08 +0800 |
commit | f2c89a10de4fd123a3d15223d26994f2fe1b95d8 (patch) | |
tree | 4d0152863efebece8da6ffa9796173fcb67e7702 /crypto/drbg.c | |
parent | 8c98716601bc05091ff49aa8ebf5299a0c6604a0 (diff) | |
download | linux-f2c89a10de4fd123a3d15223d26994f2fe1b95d8.tar.gz linux-f2c89a10de4fd123a3d15223d26994f2fe1b95d8.tar.bz2 linux-f2c89a10de4fd123a3d15223d26994f2fe1b95d8.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.c | 6 |
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 @@ #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 ***************************************************************/ |