diff options
| author | jsing <> | 2024-08-11 13:02:39 +0000 |
|---|---|---|
| committer | jsing <> | 2024-08-11 13:02:39 +0000 |
| commit | 5dcef2b3ea9eb7ace8ed74c27534785fc0b87130 (patch) | |
| tree | 8b15d049ee9ab57d9d0970062ec6f18bd01c002c /src/lib/libcrypto/arch/mips64 | |
| parent | 00708c9d312880823361e1bd53af1d7aa9f14fda (diff) | |
| download | openbsd-5dcef2b3ea9eb7ace8ed74c27534785fc0b87130.tar.gz openbsd-5dcef2b3ea9eb7ace8ed74c27534785fc0b87130.tar.bz2 openbsd-5dcef2b3ea9eb7ace8ed74c27534785fc0b87130.zip | |
Provide and use crypto_arch.h.
Provide a per architecture crypto_arch.h - this will be used in a similar
manner to bn_arch.h and will allow for architecture specific #defines and
static inline functions. Move the HAVE_AES_* and HAVE_RC4_* defines here.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/arch/mips64')
| -rw-r--r-- | src/lib/libcrypto/arch/mips64/Makefile.inc | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/arch/mips64/crypto_arch.h | 30 |
2 files changed, 31 insertions, 5 deletions
diff --git a/src/lib/libcrypto/arch/mips64/Makefile.inc b/src/lib/libcrypto/arch/mips64/Makefile.inc index 41d6b0e888..9e08b442ac 100644 --- a/src/lib/libcrypto/arch/mips64/Makefile.inc +++ b/src/lib/libcrypto/arch/mips64/Makefile.inc | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.17 2024/03/29 11:00:57 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.18 2024/08/11 13:02:39 jsing Exp $ |
| 2 | 2 | ||
| 3 | # mips64-specific libcrypto build rules | 3 | # mips64-specific libcrypto build rules |
| 4 | 4 | ||
| 5 | # aes | 5 | # aes |
| 6 | CFLAGS+= -DAES_ASM | 6 | CFLAGS+= -DAES_ASM |
| 7 | SSLASM+= aes aes-mips aes-mips | 7 | SSLASM+= aes aes-mips aes-mips |
| 8 | CFLAGS+= -DHAVE_AES_SET_ENCRYPT_KEY_INTERNAL | ||
| 9 | CFLAGS+= -DHAVE_AES_SET_DECRYPT_KEY_INTERNAL | ||
| 10 | CFLAGS+= -DHAVE_AES_ENCRYPT_INTERNAL | ||
| 11 | CFLAGS+= -DHAVE_AES_DECRYPT_INTERNAL | ||
| 12 | # bn | 8 | # bn |
| 13 | SSLASM+= bn mips bn-mips | 9 | SSLASM+= bn mips bn-mips |
| 14 | SSLASM+= bn mips-mont mips-mont | 10 | SSLASM+= bn mips-mont mips-mont |
diff --git a/src/lib/libcrypto/arch/mips64/crypto_arch.h b/src/lib/libcrypto/arch/mips64/crypto_arch.h new file mode 100644 index 0000000000..4276dc31ea --- /dev/null +++ b/src/lib/libcrypto/arch/mips64/crypto_arch.h | |||
| @@ -0,0 +1,30 @@ | |||
| 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_SET_ENCRYPT_KEY_INTERNAL | ||
| 24 | #define HAVE_AES_SET_DECRYPT_KEY_INTERNAL | ||
| 25 | #define HAVE_AES_ENCRYPT_INTERNAL | ||
| 26 | #define HAVE_AES_DECRYPT_INTERNAL | ||
| 27 | |||
| 28 | #endif | ||
| 29 | |||
| 30 | #endif | ||
