diff options
Diffstat (limited to 'src/lib/libcrypto/arch/powerpc')
| -rw-r--r-- | src/lib/libcrypto/arch/powerpc/Makefile.inc | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/arch/powerpc/crypto_arch.h | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arch/powerpc/Makefile.inc b/src/lib/libcrypto/arch/powerpc/Makefile.inc index 6957abddaf..c5218e53f4 100644 --- a/src/lib/libcrypto/arch/powerpc/Makefile.inc +++ b/src/lib/libcrypto/arch/powerpc/Makefile.inc | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.13 2024/11/01 12:56:38 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.14 2025/02/14 12:01:58 jsing Exp $ |
| 2 | 2 | ||
| 3 | # powerpc-specific libcrypto build rules | 3 | # powerpc-specific libcrypto build rules |
| 4 | 4 | ||
| @@ -10,9 +10,7 @@ SSLASM+= bn ppc bn-ppc | |||
| 10 | SSLASM+= bn ppc-mont ppc-mont | 10 | SSLASM+= bn ppc-mont ppc-mont |
| 11 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | 11 | CFLAGS+= -DOPENSSL_BN_ASM_MONT |
| 12 | # sha | 12 | # sha |
| 13 | CFLAGS+= -DSHA1_ASM | ||
| 14 | SSLASM+= sha sha1-ppc sha1-ppc | 13 | SSLASM+= sha sha1-ppc sha1-ppc |
| 15 | CFLAGS+= -DSHA256_ASM | ||
| 16 | SSLASM+= sha sha512-ppc sha256-ppc | 14 | SSLASM+= sha sha512-ppc sha256-ppc |
| 17 | 15 | ||
| 18 | .for dir src dst in ${SSLASM} | 16 | .for dir src dst in ${SSLASM} |
diff --git a/src/lib/libcrypto/arch/powerpc/crypto_arch.h b/src/lib/libcrypto/arch/powerpc/crypto_arch.h index a3dd98d0ce..d2730af0fb 100644 --- a/src/lib/libcrypto/arch/powerpc/crypto_arch.h +++ b/src/lib/libcrypto/arch/powerpc/crypto_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_arch.h,v 1.1 2024/08/11 13:02:39 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_arch.h,v 1.2 2025/02/14 12:01:58 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -18,4 +18,14 @@ | |||
| 18 | #ifndef HEADER_CRYPTO_ARCH_H | 18 | #ifndef HEADER_CRYPTO_ARCH_H |
| 19 | #define HEADER_CRYPTO_ARCH_H | 19 | #define HEADER_CRYPTO_ARCH_H |
| 20 | 20 | ||
| 21 | #ifndef OPENSSL_NO_ASM | ||
| 22 | |||
| 23 | #define HAVE_SHA1_BLOCK_DATA_ORDER | ||
| 24 | #define HAVE_SHA1_BLOCK_GENERIC | ||
| 25 | |||
| 26 | #define HAVE_SHA256_BLOCK_DATA_ORDER | ||
| 27 | #define HAVE_SHA256_BLOCK_GENERIC | ||
| 28 | |||
| 29 | #endif | ||
| 30 | |||
| 21 | #endif | 31 | #endif |
