From bbab9dc78c82fe8745bf14259991978e1b6237dc Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sat, 16 Nov 2024 15:31:37 +0000 Subject: Provide a SHA-256 assembly implementation for amd64 using SHA-NI. This provides a SHA-256 assembly implementation for amd64, which uses the Intel SHA Extensions (aka SHA New Instructions or SHA-NI). This provides a 3-5x performance gain on some Intel CPUs and many AMD CPUs. ok tb@ --- lib/libcrypto/arch/amd64/Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libcrypto/arch/amd64/Makefile.inc') diff --git a/lib/libcrypto/arch/amd64/Makefile.inc b/lib/libcrypto/arch/amd64/Makefile.inc index 9ba5634f87b..fe223856337 100644 --- a/lib/libcrypto/arch/amd64/Makefile.inc +++ b/lib/libcrypto/arch/amd64/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.32 2024/11/16 14:56:39 jsing Exp $ +# $OpenBSD: Makefile.inc,v 1.33 2024/11/16 15:31:36 jsing Exp $ # amd64-specific libcrypto build rules @@ -53,6 +53,7 @@ SSLASM+= sha sha1-x86_64 CFLAGS+= -DSHA256_ASM SRCS+= sha256_amd64.c SRCS+= sha256_amd64_generic.S +SRCS+= sha256_amd64_shani.S CFLAGS+= -DSHA512_ASM SRCS+= sha512_amd64.c SRCS+= sha512_amd64_generic.S -- cgit v1.2.3