]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib/crypto: s390/ghash: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 06:17:14 +0000 (23:17 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 23 Mar 2026 23:44:29 +0000 (16:44 -0700)
commitefd1d2c8f3c073c43d5616d0c2d698cbe8a3ecde
tree759c79d14e643466727ebb4c7c581d5cf5485fd7
parentaf413d71f09d4dde28277319926c1c3a6ec8b8d4
lib/crypto: s390/ghash: Migrate optimized code into library

Remove the "ghash-s390" crypto_shash algorithm, and replace it with an
implementation of ghash_blocks_arch() for the GHASH library.

This makes the GHASH library be optimized with CPACF.  It also greatly
reduces the amount of s390-specific glue code that is needed, and it
fixes the issue where this GHASH optimization was disabled by default.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260319061723.1140720-14-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/ghash_s390.c [deleted file]
include/crypto/gf128hash.h
lib/crypto/Kconfig
lib/crypto/s390/gf128hash.h [new file with mode: 0644]