summaryrefslogtreecommitdiff
path: root/lib/libcrypto/arch/amd64/Makefile.inc
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2024-11-16 15:31:37 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2024-11-16 15:31:37 +0000
commitbbab9dc78c82fe8745bf14259991978e1b6237dc (patch)
treecea9e5c892fde550461786d717f1ecbab26ba96a /lib/libcrypto/arch/amd64/Makefile.inc
parent49a5f51943c3561a0a5176f1e4c9b98fd1a65fca (diff)
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@
Diffstat (limited to 'lib/libcrypto/arch/amd64/Makefile.inc')
-rw-r--r--lib/libcrypto/arch/amd64/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
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