Skip to content

Commit 4b814a1

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 ab5281d commit 4b814a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crypto/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ config CRYPTO_ECRDSA
316316
config CRYPTO_CURVE25519
317317
tristate "Curve25519"
318318
select CRYPTO_KPP
319+
select CRYPTO_LIB_CURVE25519_GENERIC
319320
select CRYPTO_LIB_CURVE25519_INTERNAL
320321
help
321322
Curve25519 elliptic curve (RFC7748)
@@ -614,6 +615,7 @@ config CRYPTO_ARC4
614615

615616
config CRYPTO_CHACHA20
616617
tristate "ChaCha"
618+
select CRYPTO_LIB_CHACHA_GENERIC
617619
select CRYPTO_LIB_CHACHA_INTERNAL
618620
select CRYPTO_SKCIPHER
619621
help
@@ -943,6 +945,7 @@ config CRYPTO_POLYVAL
943945
config CRYPTO_POLY1305
944946
tristate "Poly1305"
945947
select CRYPTO_HASH
948+
select CRYPTO_LIB_POLY1305_GENERIC
946949
select CRYPTO_LIB_POLY1305_INTERNAL
947950
help
948951
Poly1305 authenticator algorithm (RFC7539)

0 commit comments

Comments
 (0)