Skip to content

Commit f4c951f

Browse files
herbertxgregkh
authored andcommitted
crypto: Kconfig - Select LIB generic option
commit 98330b9 upstream. Select the generic LIB options if the Crypto API algorithm is enabled. Otherwise this may lead to a build failure as the Crypto API algorithm always uses the generic implementation. Fixes: 17ec3e7 ("crypto: lib/Kconfig - Hide arch options from user") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c1d58ce commit f4c951f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crypto/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ config CRYPTO_ECRDSA
317317
config CRYPTO_CURVE25519
318318
tristate "Curve25519"
319319
select CRYPTO_KPP
320+
select CRYPTO_LIB_CURVE25519_GENERIC
320321
select CRYPTO_LIB_CURVE25519_INTERNAL
321322
help
322323
Curve25519 elliptic curve (RFC7748)
@@ -615,6 +616,7 @@ config CRYPTO_ARC4
615616

616617
config CRYPTO_CHACHA20
617618
tristate "ChaCha"
619+
select CRYPTO_LIB_CHACHA_GENERIC
618620
select CRYPTO_LIB_CHACHA_INTERNAL
619621
select CRYPTO_SKCIPHER
620622
help
@@ -936,6 +938,7 @@ config CRYPTO_POLYVAL
936938
config CRYPTO_POLY1305
937939
tristate "Poly1305"
938940
select CRYPTO_HASH
941+
select CRYPTO_LIB_POLY1305_GENERIC
939942
select CRYPTO_LIB_POLY1305_INTERNAL
940943
help
941944
Poly1305 authenticator algorithm (RFC7539)

0 commit comments

Comments
 (0)