]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: arm64/nh: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Thu, 11 Dec 2025 01:18:36 +0000 (17:18 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:07:50 +0000 (11:07 -0800)
commitb4a8528d17fbcd9027290c168efd6ba7ac4d4cd2
tree3ec1a8d6beed6d790c74aed8bc7f6ebbb0723f55
parent29e39a11f541d068ed7155368f4a79aa0ddf9c52
lib/crypto: arm64/nh: Migrate optimized code into library

Migrate the arm64 NEON implementation of NH into lib/crypto/.  This
makes the nh() function be optimized on arm64 kernels.

Note: this temporarily makes the adiantum template not utilize the arm64
optimized NH code.  This is resolved in a later commit that converts the
adiantum template to use nh() instead of "nhpoly1305".

Link: https://lore.kernel.org/r/20251211011846.8179-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm64/crypto/Kconfig
arch/arm64/crypto/Makefile
arch/arm64/crypto/nhpoly1305-neon-glue.c [deleted file]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/arm64/nh-neon-core.S [moved from arch/arm64/crypto/nh-neon-core.S with 97% similarity]
lib/crypto/arm64/nh.h [new file with mode: 0644]