linux/arch/riscv/crypto
Herbert Xu 17ec3e71ba crypto: lib/Kconfig - Hide arch options from user
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>
2025-03-02 15:21:47 +08:00
..
Kconfig crypto: lib/Kconfig - Hide arch options from user 2025-03-02 15:21:47 +08:00
Makefile crypto: riscv - add vector crypto accelerated SM4 2024-01-22 17:55:24 -08:00
aes-macros.S
aes-riscv64-glue.c crypto: riscv - add vector crypto accelerated AES-CBC-CTS 2024-03-20 08:56:11 -07:00
aes-riscv64-zvkned-zvbb-zvkg.S
aes-riscv64-zvkned-zvkb.S
aes-riscv64-zvkned.S crypto: riscv - add vector crypto accelerated AES-CBC-CTS 2024-03-20 08:56:11 -07:00
chacha-riscv64-glue.c crypto: riscv - add vector crypto accelerated ChaCha20 2024-01-22 17:55:19 -08:00
chacha-riscv64-zvkb.S crypto: riscv - add vector crypto accelerated ChaCha20 2024-01-22 17:55:19 -08:00
ghash-riscv64-glue.c crypto: riscv - add vector crypto accelerated GHASH 2024-01-22 17:55:20 -08:00
ghash-riscv64-zvkg.S crypto: riscv - add vector crypto accelerated GHASH 2024-01-22 17:55:20 -08:00
sha256-riscv64-glue.c crypto: riscv - add vector crypto accelerated SHA-{256,224} 2024-01-22 17:55:21 -08:00
sha256-riscv64-zvknha_or_zvknhb-zvkb.S crypto: riscv - add vector crypto accelerated SHA-{256,224} 2024-01-22 17:55:21 -08:00
sha512-riscv64-glue.c crypto: riscv - add vector crypto accelerated SHA-{512,384} 2024-01-22 17:55:22 -08:00
sha512-riscv64-zvknhb-zvkb.S crypto: riscv - add vector crypto accelerated SHA-{512,384} 2024-01-22 17:55:22 -08:00
sm3-riscv64-glue.c crypto: riscv - add vector crypto accelerated SM3 2024-01-22 17:55:23 -08:00
sm3-riscv64-zvksh-zvkb.S crypto: riscv - add vector crypto accelerated SM3 2024-01-22 17:55:23 -08:00
sm4-riscv64-glue.c crypto: riscv - add vector crypto accelerated SM4 2024-01-22 17:55:24 -08:00
sm4-riscv64-zvksed-zvkb.S crypto: riscv - add vector crypto accelerated SM4 2024-01-22 17:55:24 -08:00