linux/arch/s390/crypto
Herbert Xu 67727c5764 crypto: lib/Kconfig - Hide arch options from user
commit 17ec3e71ba upstream.

The ARCH_MAY_HAVE patch missed arm64, mips and s390.  But it may
also lead to arch options being enabled but ineffective because
of modular/built-in conflicts.

As the primary user of all these options wireguard is selecting
the arch options anyway, make the same selections at the lib/crypto
option level and hide the arch options from the user.

Instead of selecting them centrally from lib/crypto, simply set
the default of each arch option as suggested by Eric Biggers.

Change the Crypto API generic algorithms to select the top-level
lib/crypto options instead of the generic one as otherwise there
is no way to enable the arch options (Eric Biggers).  Introduce a
set of INTERNAL options to work around dependency cycles on the
CONFIG_CRYPTO symbol.

Fixes: 1047e21aec ("crypto: lib/Kconfig - Fix lib built-in failure when arch is modular")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Arnd Bergmann <arnd@kernel.org>
Closes: https://lore.kernel.org/oe-kbuild-all/202502232152.JC84YDLp-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-05-02 07:59:32 +02:00
..
aes_s390.c s390/crypto: Add hardware acceleration for full AES-XTS mode 2024-08-29 22:56:33 +02:00
arch_random.c s390/archrandom: add missing header include 2023-01-10 14:39:08 +01:00
chacha-glue.c s390/fpu: decrease stack usage for some cases 2024-02-16 14:30:16 +01:00
chacha-s390.h s390/crypto: add SIMD implementation for ChaCha20 2021-12-06 14:42:24 +01:00
chacha-s390.S s390/fpu: move, rename, and merge header files 2024-02-16 14:30:14 +01:00
crc32-vx.c s390/crc32: Add missing MODULE_DESCRIPTION() macro 2024-06-28 14:52:30 +02:00
crc32-vx.h s390/crc32le: convert to C 2024-02-16 14:30:18 +01:00
crc32be-vx.c s390/crc32be: convert to C 2024-02-16 14:30:18 +01:00
crc32le-vx.c s390/crc32le: convert to C 2024-02-16 14:30:18 +01:00
des_s390.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
ghash_s390.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
hmac_s390.c s390/crypto: Add hardware acceleration for HMAC modes 2024-08-29 22:56:33 +02:00
Kconfig crypto: lib/Kconfig - Hide arch options from user 2025-05-02 07:59:32 +02:00
Makefile s390/crypto: Add hardware acceleration for HMAC modes 2024-08-29 22:56:33 +02:00
paes_s390.c This push fixes the following issues: 2024-09-24 10:46:54 -07:00
prng.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
sha.h s390/sha3: Support sha3 performance enhancements 2024-08-29 22:56:34 +02:00
sha1_s390.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
sha3_256_s390.c s390/sha3: Fix SHA3 selftests failures 2024-09-05 15:17:23 +02:00
sha3_512_s390.c s390/sha3: Fix SHA3 selftests failures 2024-09-05 15:17:23 +02:00
sha256_s390.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
sha512_s390.c s390/cpufeature: rework to allow more than only hwcap bits 2022-07-19 16:18:49 +02:00
sha_common.c s390/sha3: Fix SHA3 selftests failures 2024-09-05 15:17:23 +02:00