diff options
| author | jsing <> | 2026-01-17 14:30:37 +0000 |
|---|---|---|
| committer | jsing <> | 2026-01-17 14:30:37 +0000 |
| commit | db12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d (patch) | |
| tree | d8886890844b745822e02557ecb2251ea4786398 /src/lib/libcrypto/arch/i386 | |
| parent | 1dd1aaafcbe820792a0f2e002a85a22055696509 (diff) | |
| download | openbsd-db12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d.tar.gz openbsd-db12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d.tar.bz2 openbsd-db12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d.zip | |
Replace GHASH_ASM with function specific defines.
Use the same pattern that is now used for most other code - provide HAVE_*
defines for functions and use these to selectively enable source code.
Diffstat (limited to 'src/lib/libcrypto/arch/i386')
| -rw-r--r-- | src/lib/libcrypto/arch/i386/Makefile.inc | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/arch/i386/crypto_arch.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc index d0c1aeea6a..18d316e64d 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.32 2026/01/17 13:55:30 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.33 2026/01/17 14:30:37 jsing Exp $ |
| 2 | 2 | ||
| 3 | # i386-specific libcrypto build rules | 3 | # i386-specific libcrypto build rules |
| 4 | 4 | ||
| @@ -23,7 +23,6 @@ CFLAGS+= -DMD5_ASM | |||
| 23 | SSLASM+= md5 md5-586 | 23 | SSLASM+= md5 md5-586 |
| 24 | 24 | ||
| 25 | # modes | 25 | # modes |
| 26 | CFLAGS+= -DGHASH_ASM | ||
| 27 | SSLASM+= modes ghash-x86 | 26 | SSLASM+= modes ghash-x86 |
| 28 | SRCS += gcm128_i386.c | 27 | SRCS += gcm128_i386.c |
| 29 | 28 | ||
diff --git a/src/lib/libcrypto/arch/i386/crypto_arch.h b/src/lib/libcrypto/arch/i386/crypto_arch.h index f0e9e4c065..143dce6ce0 100644 --- a/src/lib/libcrypto/arch/i386/crypto_arch.h +++ b/src/lib/libcrypto/arch/i386/crypto_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_arch.h,v 1.14 2025/12/31 10:06:41 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_arch.h,v 1.15 2026/01/17 14:30:37 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -49,6 +49,8 @@ extern uint64_t crypto_cpu_caps_i386; | |||
| 49 | #define HAVE_AES_XTS_ENCRYPT_INTERNAL | 49 | #define HAVE_AES_XTS_ENCRYPT_INTERNAL |
| 50 | 50 | ||
| 51 | #define HAVE_GCM128_INIT | 51 | #define HAVE_GCM128_INIT |
| 52 | #define HAVE_GCM_GHASH_4BIT | ||
| 53 | #define HAVE_GCM_GMULT_4BIT | ||
| 52 | 54 | ||
| 53 | #define HAVE_RC4_INTERNAL | 55 | #define HAVE_RC4_INTERNAL |
| 54 | #define HAVE_RC4_SET_KEY_INTERNAL | 56 | #define HAVE_RC4_SET_KEY_INTERNAL |
