summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/amd64
diff options
context:
space:
mode:
authorjsing <>2025-06-15 15:11:50 +0000
committerjsing <>2025-06-15 15:11:50 +0000
commit51f804b282da1b0813454f9f6027d3726deea4c7 (patch)
tree0878a73d8f7c407a43db41308974923535249794 /src/lib/libcrypto/arch/amd64
parent9fe52b4c66b17ca20d6e89f97ea00d36ce86086e (diff)
downloadopenbsd-51f804b282da1b0813454f9f6027d3726deea4c7.tar.gz
openbsd-51f804b282da1b0813454f9f6027d3726deea4c7.tar.bz2
openbsd-51f804b282da1b0813454f9f6027d3726deea4c7.zip
Integrate AES-NI into the AES code.
Currently, the AES-NI code is only integrated into EVP - add code to integrate AES-NI into AES. Rename the assembly provided functions and provide C versions for the original names, which check for AES-NI support and dispatch to the appropriate function. This means that the AES_* public API will now use AES-NI, if available. ok tb@
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
-rw-r--r--src/lib/libcrypto/arch/amd64/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc
index b923653532..5ecf8f1390 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.39 2025/06/09 13:51:48 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.40 2025/06/15 15:11:50 jsing Exp $
2 2
3# amd64-specific libcrypto build rules 3# amd64-specific libcrypto build rules
4 4
@@ -11,6 +11,8 @@ SRCS += crypto_cpu_caps.c
11CFLAGS+= -DAES_ASM 11CFLAGS+= -DAES_ASM
12SSLASM+= aes aes-x86_64 12SSLASM+= aes aes-x86_64
13SSLASM+= aes aesni-x86_64 13SSLASM+= aes aesni-x86_64
14SRCS += aes_amd64.c
15
14# bn 16# bn
15CFLAGS+= -DRSA_ASM 17CFLAGS+= -DRSA_ASM
16SSLASM+= bn modexp512-x86_64 18SSLASM+= bn modexp512-x86_64