]> Gentwo Git Trees - linux/.git/commit
lib/crypto: arm64/sha3: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Sun, 26 Oct 2025 05:50:26 +0000 (22:50 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 6 Nov 2025 04:02:35 +0000 (20:02 -0800)
commit1e29a750572a25200fcea995d91e5f6448f340c0
treed19698b26f79f9af8bc3bb8ef8d655681650e9cc
parentbe755eb2b021495e1935813abaf9e1f1de1d8c78
lib/crypto: arm64/sha3: Migrate optimized code into library

Instead of exposing the arm64-optimized SHA-3 code via arm64-specific
crypto_shash algorithms, instead just implement the sha3_absorb_blocks()
and sha3_keccakf() library functions.  This is much simpler, it makes
the SHA-3 library functions be arm64-optimized, and it fixes the
longstanding issue where the arm64-optimized SHA-3 code was disabled by
default.  SHA-3 still remains available through crypto_shash, but
individual architectures no longer need to handle it.

Note: to see the diff from arch/arm64/crypto/sha3-ce-glue.c to
lib/crypto/arm64/sha3.h, view this commit with 'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251026055032.1413733-10-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm64/configs/defconfig
arch/arm64/crypto/Kconfig
arch/arm64/crypto/Makefile
arch/arm64/crypto/sha3-ce-glue.c [deleted file]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/arm64/sha3-ce-core.S [moved from arch/arm64/crypto/sha3-ce-core.S with 100% similarity]
lib/crypto/arm64/sha3.h [new file with mode: 0644]