diff options
Diffstat (limited to 'src/lib/libcrypto/arch/hppa')
| -rw-r--r-- | src/lib/libcrypto/arch/hppa/Makefile.inc | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/arch/hppa/crypto_arch.h | 28 |
2 files changed, 29 insertions, 3 deletions
diff --git a/src/lib/libcrypto/arch/hppa/Makefile.inc b/src/lib/libcrypto/arch/hppa/Makefile.inc index 9796d3a860..4e2675a600 100644 --- a/src/lib/libcrypto/arch/hppa/Makefile.inc +++ b/src/lib/libcrypto/arch/hppa/Makefile.inc | |||
| @@ -1,12 +1,10 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.24 2024/03/29 11:00:57 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.25 2024/08/11 13:02:39 jsing Exp $ |
| 2 | 2 | ||
| 3 | # hppa-specific libcrypto build rules | 3 | # hppa-specific libcrypto build rules |
| 4 | 4 | ||
| 5 | # aes | 5 | # aes |
| 6 | CFLAGS+= -DAES_ASM | 6 | CFLAGS+= -DAES_ASM |
| 7 | SSLASM+= aes aes-parisc aes-parisc | 7 | SSLASM+= aes aes-parisc aes-parisc |
| 8 | CFLAGS+= -DHAVE_AES_ENCRYPT_INTERNAL | ||
| 9 | CFLAGS+= -DHAVE_AES_DECRYPT_INTERNAL | ||
| 10 | # bn | 8 | # bn |
| 11 | SSLASM+= bn parisc-mont parisc-mont | 9 | SSLASM+= bn parisc-mont parisc-mont |
| 12 | CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W | 10 | CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W |
diff --git a/src/lib/libcrypto/arch/hppa/crypto_arch.h b/src/lib/libcrypto/arch/hppa/crypto_arch.h new file mode 100644 index 0000000000..7f1fc36cac --- /dev/null +++ b/src/lib/libcrypto/arch/hppa/crypto_arch.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* $OpenBSD: crypto_arch.h,v 1.1 2024/08/11 13:02:39 jsing Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> | ||
| 4 | * | ||
| 5 | * Permission to use, copy, modify, and distribute this software for any | ||
| 6 | * purpose with or without fee is hereby granted, provided that the above | ||
| 7 | * copyright notice and this permission notice appear in all copies. | ||
| 8 | * | ||
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef HEADER_CRYPTO_ARCH_H | ||
| 19 | #define HEADER_CRYPTO_ARCH_H | ||
| 20 | |||
| 21 | #ifndef OPENSSL_NO_ASM | ||
| 22 | |||
| 23 | #define HAVE_AES_ENCRYPT_INTERNAL | ||
| 24 | #define HAVE_AES_DECRYPT_INTERNAL | ||
| 25 | |||
| 26 | #endif | ||
| 27 | |||
| 28 | #endif | ||
