Skip to content

Commit 98330b9

Browse files
committed
crypto: Kconfig - Select LIB generic option
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202503022113.79uEtUuy-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202503022115.9OOyDR5A-lkp@intel.com/ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ba89b4e commit 98330b9

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
@@ -329,6 +329,7 @@ config CRYPTO_ECRDSA
329329
config CRYPTO_CURVE25519
330330
tristate "Curve25519"
331331
select CRYPTO_KPP
332+
select CRYPTO_LIB_CURVE25519_GENERIC
332333
select CRYPTO_LIB_CURVE25519_INTERNAL
333334
help
334335
Curve25519 elliptic curve (RFC7748)
@@ -627,6 +628,7 @@ config CRYPTO_ARC4
627628

628629
config CRYPTO_CHACHA20
629630
tristate "ChaCha"
631+
select CRYPTO_LIB_CHACHA_GENERIC
630632
select CRYPTO_LIB_CHACHA_INTERNAL
631633
select CRYPTO_SKCIPHER
632634
help
@@ -948,6 +950,7 @@ config CRYPTO_POLYVAL
948950
config CRYPTO_POLY1305
949951
tristate "Poly1305"
950952
select CRYPTO_HASH
953+
select CRYPTO_LIB_POLY1305_GENERIC
951954
select CRYPTO_LIB_POLY1305_INTERNAL
952955
help
953956
Poly1305 authenticator algorithm (RFC7539)

0 commit comments

Comments
 (0)