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/amd64 | |
| 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/amd64')
| -rw-r--r-- | src/lib/libcrypto/arch/amd64/Makefile.inc | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/arch/amd64/crypto_arch.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc index 27c61edf58..49f2f6e627 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.43 2026/01/17 13:55:30 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.44 2026/01/17 14:30:37 jsing Exp $ |
| 2 | 2 | ||
| 3 | # amd64-specific libcrypto build rules | 3 | # amd64-specific libcrypto build rules |
| 4 | 4 | ||
| @@ -48,7 +48,6 @@ CFLAGS+= -DMD5_ASM | |||
| 48 | SRCS+= md5_amd64_generic.S | 48 | SRCS+= md5_amd64_generic.S |
| 49 | 49 | ||
| 50 | # modes | 50 | # modes |
| 51 | CFLAGS+= -DGHASH_ASM | ||
| 52 | SSLASM+= modes ghash-x86_64 | 51 | SSLASM+= modes ghash-x86_64 |
| 53 | SRCS += gcm128_amd64.c | 52 | SRCS += gcm128_amd64.c |
| 54 | 53 | ||
diff --git a/src/lib/libcrypto/arch/amd64/crypto_arch.h b/src/lib/libcrypto/arch/amd64/crypto_arch.h index 9a179a571e..fdc17b8110 100644 --- a/src/lib/libcrypto/arch/amd64/crypto_arch.h +++ b/src/lib/libcrypto/arch/amd64/crypto_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_arch.h,v 1.15 2025/09/08 12:56:17 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_arch.h,v 1.16 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_amd64; | |||
| 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 |
