summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2024-03-29 01:24:07 +0000
committerjsing <>2024-03-29 01:24:07 +0000
commitf73069c288cf93e137bf25cfb7a9903d4c67f020 (patch)
tree7e5db3ffce3fbeb904e263880889125acd80370f
parent630636f982d21b4493447a7a6633a3b6202aaf87 (diff)
downloadopenbsd-f73069c288cf93e137bf25cfb7a9903d4c67f020.tar.gz
openbsd-f73069c288cf93e137bf25cfb7a9903d4c67f020.tar.bz2
openbsd-f73069c288cf93e137bf25cfb7a9903d4c67f020.zip
Stop building whirlpool assembly on amd64 and i386.
This is a legacy algorithm and the assembly is only marginally faster than the C code. Discussed with beck@ and tb@
-rw-r--r--src/lib/libcrypto/arch/amd64/Makefile.inc5
-rw-r--r--src/lib/libcrypto/arch/i386/Makefile.inc4
2 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc
index 2dcf64d045..8ae28f16e9 100644
--- a/src/lib/libcrypto/arch/amd64/Makefile.inc
+++ b/src/lib/libcrypto/arch/amd64/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.20 2024/03/28 12:52:58 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.21 2024/03/29 01:24:07 jsing Exp $
2 2
3# amd64-specific libcrypto build rules 3# amd64-specific libcrypto build rules
4 4
@@ -67,8 +67,7 @@ sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl ${EXTRA_PL}
67 cd ${LCRYPTO_SRC}/sha/asm ; \ 67 cd ${LCRYPTO_SRC}/sha/asm ; \
68 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} 68 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
69# whrlpool 69# whrlpool
70CFLAGS+= -DWHIRLPOOL_ASM 70SRCS+= wp_block.c
71SSLASM+= whrlpool wp-x86_64
72 71
73.for dir f in ${SSLASM} 72.for dir f in ${SSLASM}
74SRCS+= ${f}.S 73SRCS+= ${f}.S
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc
index 5741bc6f3b..9da377a3c6 100644
--- a/src/lib/libcrypto/arch/i386/Makefile.inc
+++ b/src/lib/libcrypto/arch/i386/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.17 2024/03/28 12:52:58 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.18 2024/03/29 01:24:07 jsing Exp $
2 2
3# i386-specific libcrypto build rules 3# i386-specific libcrypto build rules
4 4
@@ -39,8 +39,6 @@ CFLAGS+= -DSHA512_ASM
39SSLASM+= sha sha512-586 39SSLASM+= sha sha512-586
40# whrlpool 40# whrlpool
41SRCS+= wp_block.c 41SRCS+= wp_block.c
42CFLAGS+= -DWHIRLPOOL_ASM
43SSLASM+= whrlpool wp-mmx
44 42
45.for dir f in ${SSLASM} 43.for dir f in ${SSLASM}
46SRCS+= ${f}.S 44SRCS+= ${f}.S