diff options
author | jsing <> | 2024-03-28 12:28:48 +0000 |
---|---|---|
committer | jsing <> | 2024-03-28 12:28:48 +0000 |
commit | 9526f0e84f7b8a3a41429b30c7af10d4b135319a (patch) | |
tree | aa8e7d8faef30663f3f9111528f145fce17003fb /src/lib/libcrypto/arch | |
parent | 47417efb43018f53668a061252fa1164aec412e3 (diff) | |
download | openbsd-9526f0e84f7b8a3a41429b30c7af10d4b135319a.tar.gz openbsd-9526f0e84f7b8a3a41429b30c7af10d4b135319a.tar.bz2 openbsd-9526f0e84f7b8a3a41429b30c7af10d4b135319a.zip |
Make AES_cbc_encrypt() always be a C function.
Rename the assembly generated functions from AES_cbc_encrypt() to
aes_cbc_encrypt_internal(). Always include aes_cbc.c and change it
to use defines that are similar to those used in BN.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/arch')
-rw-r--r-- | src/lib/libcrypto/arch/amd64/Makefile.inc | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/i386/Makefile.inc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc index 40ba3c063c..13d2c0b1be 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.18 2024/03/28 01:57:00 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.19 2024/03/28 12:28:48 jsing Exp $ |
2 | 2 | ||
3 | # amd64-specific libcrypto build rules | 3 | # amd64-specific libcrypto build rules |
4 | 4 | ||
@@ -13,6 +13,8 @@ SSLASM+= aes bsaes-x86_64 | |||
13 | CFLAGS+= -DVPAES_ASM | 13 | CFLAGS+= -DVPAES_ASM |
14 | SSLASM+= aes vpaes-x86_64 | 14 | SSLASM+= aes vpaes-x86_64 |
15 | SSLASM+= aes aesni-x86_64 | 15 | SSLASM+= aes aesni-x86_64 |
16 | CFLAGS+= -DHAVE_AES_CBC_ENCRYPT_INTERNAL | ||
17 | SRCS+= aes_cbc.c | ||
16 | # bn | 18 | # bn |
17 | CFLAGS+= -DOPENSSL_IA32_SSE2 | 19 | CFLAGS+= -DOPENSSL_IA32_SSE2 |
18 | CFLAGS+= -DRSA_ASM | 20 | CFLAGS+= -DRSA_ASM |
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc index aedd1d7683..cd356eeea5 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.15 2024/03/28 01:57:00 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.16 2024/03/28 12:28:48 jsing Exp $ |
2 | 2 | ||
3 | # i386-specific libcrypto build rules | 3 | # i386-specific libcrypto build rules |
4 | 4 | ||
@@ -11,6 +11,8 @@ SSLASM+= aes aes-586 | |||
11 | CFLAGS+= -DVPAES_ASM | 11 | CFLAGS+= -DVPAES_ASM |
12 | SSLASM+= aes vpaes-x86 | 12 | SSLASM+= aes vpaes-x86 |
13 | SSLASM+= aes aesni-x86 | 13 | SSLASM+= aes aesni-x86 |
14 | CFLAGS+= -DHAVE_AES_CBC_ENCRYPT_INTERNAL | ||
15 | SRCS+= aes_cbc.c | ||
14 | # bn | 16 | # bn |
15 | CFLAGS+= -DOPENSSL_IA32_SSE2 | 17 | CFLAGS+= -DOPENSSL_IA32_SSE2 |
16 | SSLASM+= bn bn-586 | 18 | SSLASM+= bn bn-586 |