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 <[email protected]>
This commit is contained in:
Herbert Xu 2014-07-04 22:15:08 +08:00
commit f2c89a10de
3 changed files with 10 additions and 16 deletions

View file

@ -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
***************************************************************/