]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: mips/md5: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Tue, 5 Aug 2025 22:28:50 +0000 (15:28 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 26 Aug 2025 16:52:28 +0000 (12:52 -0400)
commitc9e5ac0ab9d1235f1a91852ec3d3c5c5f3e8ba0e
tree332eb0220af133c7b53607c6cc5ca8fffd429d1f
parente164461349444ad27873e4ab2f492eb4465dbbb0
lib/crypto: mips/md5: Migrate optimized code into library

Instead of exposing the mips-optimized MD5 code via mips-specific
crypto_shash algorithms, instead just implement the md5_blocks() library
function.  This is much simpler, it makes the MD5 library functions be
mips-optimized, and it fixes the longstanding issue where the
mips-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/mips/cavium-octeon/crypto/octeon-md5.c
to lib/crypto/mips/md5.h, view this commit with 'git show -M10'.

Link: https://lore.kernel.org/r/20250805222855.10362-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/mips/cavium-octeon/crypto/Makefile
arch/mips/cavium-octeon/crypto/octeon-md5.c [deleted file]
arch/mips/configs/cavium_octeon_defconfig
arch/mips/crypto/Kconfig
lib/crypto/Kconfig
lib/crypto/mips/md5.h [new file with mode: 0644]