summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/hppa
diff options
context:
space:
mode:
authorjsing <>2026-01-17 14:30:37 +0000
committerjsing <>2026-01-17 14:30:37 +0000
commitdb12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d (patch)
treed8886890844b745822e02557ecb2251ea4786398 /src/lib/libcrypto/arch/hppa
parent1dd1aaafcbe820792a0f2e002a85a22055696509 (diff)
downloadopenbsd-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/hppa')
-rw-r--r--src/lib/libcrypto/arch/hppa/Makefile.inc3
-rw-r--r--src/lib/libcrypto/arch/hppa/crypto_arch.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/arch/hppa/Makefile.inc b/src/lib/libcrypto/arch/hppa/Makefile.inc
index ebcc4c8208..4244c20fef 100644
--- a/src/lib/libcrypto/arch/hppa/Makefile.inc
+++ b/src/lib/libcrypto/arch/hppa/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.28 2026/01/17 13:55:30 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.29 2026/01/17 14:30:37 jsing Exp $
2 2
3# hppa-specific libcrypto build rules 3# hppa-specific libcrypto build rules
4 4
@@ -8,7 +8,6 @@ SSLASM+= aes aes-parisc aes-parisc
8SSLASM+= bn parisc-mont parisc-mont 8SSLASM+= bn parisc-mont parisc-mont
9CFLAGS+= -DOPENSSL_BN_ASM_MONT 9CFLAGS+= -DOPENSSL_BN_ASM_MONT
10# modes 10# modes
11CFLAGS+= -DGHASH_ASM
12SSLASM+= modes ghash-parisc ghash-parisc 11SSLASM+= modes ghash-parisc ghash-parisc
13# sha 12# sha
14SSLASM+= sha sha1-parisc sha1-parisc 13SSLASM+= sha sha1-parisc sha1-parisc
diff --git a/src/lib/libcrypto/arch/hppa/crypto_arch.h b/src/lib/libcrypto/arch/hppa/crypto_arch.h
index 08fcaca045..80260c93e7 100644
--- a/src/lib/libcrypto/arch/hppa/crypto_arch.h
+++ b/src/lib/libcrypto/arch/hppa/crypto_arch.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto_arch.h,v 1.2 2025/02/14 12:01:58 jsing Exp $ */ 1/* $OpenBSD: crypto_arch.h,v 1.3 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 *
@@ -23,6 +23,9 @@
23#define HAVE_AES_ENCRYPT_INTERNAL 23#define HAVE_AES_ENCRYPT_INTERNAL
24#define HAVE_AES_DECRYPT_INTERNAL 24#define HAVE_AES_DECRYPT_INTERNAL
25 25
26#define HAVE_GCM_GHASH_4BIT
27#define HAVE_GCM_GMULT_4BIT
28
26#define HAVE_SHA1_BLOCK_DATA_ORDER 29#define HAVE_SHA1_BLOCK_DATA_ORDER
27#define HAVE_SHA1_BLOCK_GENERIC 30#define HAVE_SHA1_BLOCK_GENERIC
28 31