mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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:
parent
8c98716601
commit
f2c89a10de
3 changed files with 10 additions and 16 deletions
|
|
@ -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
|
||||
***************************************************************/
|
||||
|
|
|
|||
Loading…
Reference in a new issue