]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: arm64/polyval: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Sun, 9 Nov 2025 23:47:19 +0000 (15:47 -0800)
committerEric Biggers <ebiggers@kernel.org>
Tue, 11 Nov 2025 19:03:38 +0000 (11:03 -0800)
commit37919e239ebb2cba573cca56292f7c39fa6d7415
tree2f751333b346d17a8349aa1a33d8bc0147963fec
parent3d176751e541362ff40c2478d6a2de41f8c62318
lib/crypto: arm64/polyval: Migrate optimized code into library

Migrate the arm64 implementation of POLYVAL into lib/crypto/, wiring it
up to the POLYVAL library interface.  This makes the POLYVAL library be
properly optimized on arm64.

This drops the arm64 optimizations of polyval in the crypto_shash API.
That's fine, since polyval will be removed from crypto_shash entirely
since it is unneeded there.  But even if it comes back, the crypto_shash
API could just be implemented on top of the library API, as usual.

Adjust the names and prototypes of the assembly functions to align more
closely with the rest of the library code.

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