]> Gentwo Git Trees - linux/.git/commit
lib/crypto: sparc/md5: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Tue, 5 Aug 2025 22:28:53 +0000 (15:28 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 26 Aug 2025 16:52:28 +0000 (12:52 -0400)
commita1848f6e382145e0200843549f24f5af4b5c8136
treed6f657a24ecf402db112399d3adb0bd477b79cd9
parent09371e1349c9bb34ac030973c7867016a8a8914d
lib/crypto: sparc/md5: Migrate optimized code into library

Instead of exposing the sparc-optimized MD5 code via sparc-specific
crypto_shash algorithms, instead just implement the md5_blocks() library
function.  This is much simpler, it makes the MD5 library functions be
sparc-optimized, and it fixes the longstanding issue where the
sparc-optimized MD5 code was disabled by default.  MD5 still remains
available through crypto_shash, but individual architectures no longer
need to handle it.

Note: to see the diff from arch/sparc/crypto/md5_glue.c to
lib/crypto/sparc/md5.h, view this commit with 'git show -M10'.

Link: https://lore.kernel.org/r/20250805222855.10362-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/sparc/crypto/Kconfig
arch/sparc/crypto/Makefile
arch/sparc/crypto/md5_glue.c [deleted file]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/sparc/md5.h [new file with mode: 0644]
lib/crypto/sparc/md5_asm.S [moved from arch/sparc/crypto/md5_asm.S with 100% similarity]