diff options
| author | jsing <> | 2025-06-15 15:11:50 +0000 |
|---|---|---|
| committer | jsing <> | 2025-06-15 15:11:50 +0000 |
| commit | 51f804b282da1b0813454f9f6027d3726deea4c7 (patch) | |
| tree | 0878a73d8f7c407a43db41308974923535249794 /src/lib/libcrypto/arch/amd64 | |
| parent | 9fe52b4c66b17ca20d6e89f97ea00d36ce86086e (diff) | |
| download | openbsd-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.inc | 4 |
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 | |||
| 11 | CFLAGS+= -DAES_ASM | 11 | CFLAGS+= -DAES_ASM |
| 12 | SSLASM+= aes aes-x86_64 | 12 | SSLASM+= aes aes-x86_64 |
| 13 | SSLASM+= aes aesni-x86_64 | 13 | SSLASM+= aes aesni-x86_64 |
| 14 | SRCS += aes_amd64.c | ||
| 15 | |||
| 14 | # bn | 16 | # bn |
| 15 | CFLAGS+= -DRSA_ASM | 17 | CFLAGS+= -DRSA_ASM |
| 16 | SSLASM+= bn modexp512-x86_64 | 18 | SSLASM+= bn modexp512-x86_64 |
