]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: s390/sha3 - Remove superseded SHA-3 code
authorEric Biggers <ebiggers@kernel.org>
Sun, 26 Oct 2025 05:50:32 +0000 (22:50 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 6 Nov 2025 04:30:51 +0000 (20:30 -0800)
commit496df7cd649dcb0437d3dbde5231bd5dcd77d2ec
treee964e12ec447b06a0d409593b52162a193c82187
parentf1799d17285ca99243328cd92133a9f84ee3a593
crypto: s390/sha3 - Remove superseded SHA-3 code

The SHA-3 library now utilizes the same s390 SHA-3 acceleration
capabilities as the arch/s390/crypto/ SHA-3 crypto_shash algorithms.
Moreover, crypto/sha3.c now uses the SHA-3 library.  The result is that
all SHA-3 APIs are now s390-accelerated without any need for the old
SHA-3 code in arch/s390/crypto/.  Remove this superseded code.

Also update the s390 defconfig and debug_defconfig files to enable
CONFIG_CRYPTO_SHA3 instead of CONFIG_CRYPTO_SHA3_256_S390 and
CONFIG_CRYPTO_SHA3_512_S390.  This makes it so that the s390-optimized
SHA-3 continues to be built when either of these defconfigs is used.

Tested-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251026055032.1413733-16-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/s390/configs/debug_defconfig
arch/s390/configs/defconfig
arch/s390/crypto/Kconfig
arch/s390/crypto/Makefile
arch/s390/crypto/sha.h [deleted file]
arch/s390/crypto/sha3_256_s390.c [deleted file]
arch/s390/crypto/sha3_512_s390.c [deleted file]
arch/s390/crypto/sha_common.c [deleted file]