]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: Kconfig - Select LIB generic option
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 3 Mar 2025 03:09:06 +0000 (11:09 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:24:36 +0000 (16:24 +0800)
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: 17ec3e71ba79 ("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>
crypto/Kconfig

index f0119d92decc4bde7cd87f8db3485cd06b76f585..db99fec7d16124c8d55c4728afdc671de5a524a7 100644 (file)
@@ -329,6 +329,7 @@ config CRYPTO_ECRDSA
 config CRYPTO_CURVE25519
        tristate "Curve25519"
        select CRYPTO_KPP
+       select CRYPTO_LIB_CURVE25519_GENERIC
        select CRYPTO_LIB_CURVE25519_INTERNAL
        help
          Curve25519 elliptic curve (RFC7748)
@@ -627,6 +628,7 @@ config CRYPTO_ARC4
 
 config CRYPTO_CHACHA20
        tristate "ChaCha"
+       select CRYPTO_LIB_CHACHA_GENERIC
        select CRYPTO_LIB_CHACHA_INTERNAL
        select CRYPTO_SKCIPHER
        help
@@ -948,6 +950,7 @@ config CRYPTO_POLYVAL
 config CRYPTO_POLY1305
        tristate "Poly1305"
        select CRYPTO_HASH
+       select CRYPTO_LIB_POLY1305_GENERIC
        select CRYPTO_LIB_POLY1305_INTERNAL
        help
          Poly1305 authenticator algorithm (RFC7539)