Skip to content

Commit 23e5c30

Browse files
author
Eric Biggers
committed
lib/crypto: sparc: Drop optimized MD5 code
MD5 is obsolete. Continuing to maintain architecture-optimized implementations of MD5 is unnecessary and risky. It diverts resources from the modern algorithms that are actually important. While there was demand for continuing to maintain the PowerPC optimized MD5 code to accommodate userspace programs that are misusing AF_ALG (https://lore.kernel.org/linux-crypto/c4191597-341d-4fd7-bc3d-13daf7666c41@csgroup.eu/), no such demand has been seen for the SPARC optimized MD5 code. Thus, let's drop it and focus effort on the more modern SHA algorithms, which already have optimized code for SPARC. Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20260326203341.60393-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 91cd9a0 commit 23e5c30

4 files changed

Lines changed: 0 additions & 120 deletions

File tree

lib/crypto/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ config CRYPTO_LIB_MD5_ARCH
135135
bool
136136
depends on CRYPTO_LIB_MD5 && !UML
137137
default y if PPC
138-
default y if SPARC64
139138

140139
config CRYPTO_LIB_MLDSA
141140
tristate

lib/crypto/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ libmd5-y := md5.o
188188
ifeq ($(CONFIG_CRYPTO_LIB_MD5_ARCH),y)
189189
CFLAGS_md5.o += -I$(src)/$(SRCARCH)
190190
libmd5-$(CONFIG_PPC) += powerpc/md5-asm.o
191-
libmd5-$(CONFIG_SPARC) += sparc/md5_asm.o
192191
endif # CONFIG_CRYPTO_LIB_MD5_ARCH
193192

194193
################################################################################

lib/crypto/sparc/md5.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

lib/crypto/sparc/md5_asm.S

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)