]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: powerpc/md5: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Tue, 5 Aug 2025 22:28:52 +0000 (15:28 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 26 Aug 2025 16:52:28 +0000 (12:52 -0400)
commit09371e1349c9bb34ac030973c7867016a8a8914d
tree6f2cc335124d3474d30d4e17795a6c7b1fe6d421
parentcddd17868a8069f583a4fd6a2cc7b2a9ea15c26c
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>
arch/powerpc/configs/powernv_defconfig
arch/powerpc/configs/ppc64_defconfig
arch/powerpc/crypto/Kconfig
arch/powerpc/crypto/Makefile
arch/powerpc/crypto/md5-glue.c [deleted file]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/powerpc/md5-asm.S [moved from arch/powerpc/crypto/md5-asm.S with 100% similarity]
lib/crypto/powerpc/md5.h [new file with mode: 0644]