diff options
| author | jsing <> | 2025-06-27 17:26:57 +0000 |
|---|---|---|
| committer | jsing <> | 2025-06-27 17:26:57 +0000 |
| commit | fd19eff2f98d72aee359ddccbf890bac0361fb66 (patch) | |
| tree | 955af8de7f98e615430e58fe8d5bea70401f7892 /src/lib/libcrypto/Makefile | |
| parent | abb03e21a8d0fc7f97a871f5aee5a8084176540f (diff) | |
| download | openbsd-fd19eff2f98d72aee359ddccbf890bac0361fb66.tar.gz openbsd-fd19eff2f98d72aee359ddccbf890bac0361fb66.tar.bz2 openbsd-fd19eff2f98d72aee359ddccbf890bac0361fb66.zip | |
Simplify EVP AES-GCM implementation and remove AES-NI specific code.
Like CTR, the mode implementation for GCM has two variants - rather than
using multiple variants (one for AES-NI, another for non-AES-NI),
consistently use CRYPTO_gcm128_{en,de}crypt_ctr32() with the
aes_ctr32_encrypt_internal() function added for CTR mode.
This lets us remove the AES-NI specific code, AES-NI specific EVP_CIPHER
methods and the ctr function pointer from EVP_AES_GCM_CTX.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/Makefile')
| -rw-r--r-- | src/lib/libcrypto/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 3ad03831f8..a33a209ef7 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.237 2025/05/25 06:27:02 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.238 2025/06/27 17:26:57 jsing Exp $ |
| 2 | 2 | ||
| 3 | LIB= crypto | 3 | LIB= crypto |
| 4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
| @@ -25,6 +25,7 @@ CFLAGS+= -DLIBRESSL_NAMESPACE -DLIBRESSL_CRYPTO_NAMESPACE | |||
| 25 | CFLAGS+= -DHAVE_FUNOPEN | 25 | CFLAGS+= -DHAVE_FUNOPEN |
| 26 | 26 | ||
| 27 | CFLAGS+= -I${LCRYPTO_SRC} | 27 | CFLAGS+= -I${LCRYPTO_SRC} |
| 28 | CFLAGS+= -I${LCRYPTO_SRC}/aes | ||
| 28 | CFLAGS+= -I${LCRYPTO_SRC}/arch/${MACHINE_CPU} | 29 | CFLAGS+= -I${LCRYPTO_SRC}/arch/${MACHINE_CPU} |
| 29 | CFLAGS+= -I${LCRYPTO_SRC}/asn1 | 30 | CFLAGS+= -I${LCRYPTO_SRC}/asn1 |
| 30 | CFLAGS+= -I${LCRYPTO_SRC}/bio | 31 | CFLAGS+= -I${LCRYPTO_SRC}/bio |
