mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
lib/crypto: x86/nh: Migrate optimized code into library
Migrate the x86_64 implementations of NH into lib/crypto/. This makes the nh() function be optimized on x86_64 kernels. Note: this temporarily makes the adiantum template not utilize the x86_64 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-6-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
@@ -137,6 +137,7 @@ ifeq ($(CONFIG_CRYPTO_LIB_NH_ARCH),y)
|
||||
CFLAGS_nh.o += -I$(src)/$(SRCARCH)
|
||||
libnh-$(CONFIG_ARM) += arm/nh-neon-core.o
|
||||
libnh-$(CONFIG_ARM64) += arm64/nh-neon-core.o
|
||||
libnh-$(CONFIG_X86) += x86/nh-sse2.o x86/nh-avx2.o
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user