summaryrefslogtreecommitdiff
path: root/lib/crypto/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-08-05 15:28:52 -0700
committerEric Biggers <ebiggers@kernel.org>2025-08-26 12:52:28 -0400
commit09371e1349c9bb34ac030973c7867016a8a8914d (patch)
tree6f2cc335124d3474d30d4e17795a6c7b1fe6d421 /lib/crypto/Makefile
parentcddd17868a8069f583a4fd6a2cc7b2a9ea15c26c (diff)
downloadlinux-09371e1349c9bb34ac030973c7867016a8a8914d.tar.gz
linux-09371e1349c9bb34ac030973c7867016a8a8914d.tar.bz2
linux-09371e1349c9bb34ac030973c7867016a8a8914d.zip
lib/crypto: powerpc/md5: Migrate optimized code into library
Instead of exposing the powerpc-optimized MD5 code via powerpc-specific crypto_shash algorithms, instead just implement the md5_blocks() library function. This is much simpler, it makes the MD5 library functions be powerpc-optimized, and it fixes the longstanding issue where the powerpc-optimized MD5 code was disabled by default. MD5 still remains available through crypto_shash, but individual architectures no longer need to handle it. Link: https://lore.kernel.org/r/20250805222855.10362-5-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crypto/Makefile')
-rw-r--r--lib/crypto/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile
index 429573e8f8b3..b3986dde676b 100644
--- a/lib/crypto/Makefile
+++ b/lib/crypto/Makefile
@@ -65,6 +65,7 @@ obj-$(CONFIG_CRYPTO_LIB_MD5) += libmd5.o
libmd5-y := md5.o
ifeq ($(CONFIG_CRYPTO_LIB_MD5_ARCH),y)
CFLAGS_md5.o += -I$(src)/$(SRCARCH)
+libmd5-$(CONFIG_PPC) += powerpc/md5-asm.o
endif # CONFIG_CRYPTO_LIB_MD5_ARCH
################################################################################