diff options
| author | jsing <> | 2023-01-20 17:31:52 +0000 |
|---|---|---|
| committer | jsing <> | 2023-01-20 17:31:52 +0000 |
| commit | ec907bb8e44028294d6c2a6faf9c735ce8012e48 (patch) | |
| tree | b7a2361e00d87650a48e90b0530c6a86d27e0039 /src/lib/libcrypto/bn/arch | |
| parent | a50b434b87829ee0d12767c21ae98194684ab720 (diff) | |
| download | openbsd-ec907bb8e44028294d6c2a6faf9c735ce8012e48.tar.gz openbsd-ec907bb8e44028294d6c2a6faf9c735ce8012e48.tar.bz2 openbsd-ec907bb8e44028294d6c2a6faf9c735ce8012e48.zip | |
Move bn_{mul,sqr}_comba{4,8}() from bn_asm.c to bn_mul.c/bn_sqr.c.
Wrap these in HAVE_BN_{MUL,SQR}_COMBA{4,8} defines. Add these defines to
bn_arch.h where the architecture currently provides its own version.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/arch')
| -rw-r--r-- | src/lib/libcrypto/bn/arch/amd64/bn_arch.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/arch/i386/bn_arch.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/arch/mips64/bn_arch.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/arch/powerpc/bn_arch.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/arch/sparc/bn_arch.h | 8 |
5 files changed, 35 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/arch/amd64/bn_arch.h b/src/lib/libcrypto/bn/arch/amd64/bn_arch.h index 136adf0e97..17d22f3cec 100644 --- a/src/lib/libcrypto/bn/arch/amd64/bn_arch.h +++ b/src/lib/libcrypto/bn/arch/amd64/bn_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:33 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -20,5 +20,11 @@ | |||
| 20 | 20 | ||
| 21 | #ifndef OPENSSL_NO_ASM | 21 | #ifndef OPENSSL_NO_ASM |
| 22 | 22 | ||
| 23 | #define HAVE_BN_MUL_COMBA4 | ||
| 24 | #define HAVE_BN_MUL_COMBA8 | ||
| 25 | |||
| 26 | #define HAVE_BN_SQR_COMBA4 | ||
| 27 | #define HAVE_BN_SQR_COMBA8 | ||
| 28 | |||
| 23 | #endif | 29 | #endif |
| 24 | #endif | 30 | #endif |
diff --git a/src/lib/libcrypto/bn/arch/i386/bn_arch.h b/src/lib/libcrypto/bn/arch/i386/bn_arch.h index 136adf0e97..17d22f3cec 100644 --- a/src/lib/libcrypto/bn/arch/i386/bn_arch.h +++ b/src/lib/libcrypto/bn/arch/i386/bn_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:33 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -20,5 +20,11 @@ | |||
| 20 | 20 | ||
| 21 | #ifndef OPENSSL_NO_ASM | 21 | #ifndef OPENSSL_NO_ASM |
| 22 | 22 | ||
| 23 | #define HAVE_BN_MUL_COMBA4 | ||
| 24 | #define HAVE_BN_MUL_COMBA8 | ||
| 25 | |||
| 26 | #define HAVE_BN_SQR_COMBA4 | ||
| 27 | #define HAVE_BN_SQR_COMBA8 | ||
| 28 | |||
| 23 | #endif | 29 | #endif |
| 24 | #endif | 30 | #endif |
diff --git a/src/lib/libcrypto/bn/arch/mips64/bn_arch.h b/src/lib/libcrypto/bn/arch/mips64/bn_arch.h index 6c6212c4a6..8e8fd1110f 100644 --- a/src/lib/libcrypto/bn/arch/mips64/bn_arch.h +++ b/src/lib/libcrypto/bn/arch/mips64/bn_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 10:07:52 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.h,v 1.3 2023/01/20 17:31:52 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -22,5 +22,11 @@ | |||
| 22 | 22 | ||
| 23 | #define HAVE_BN_DIV_3_WORDS | 23 | #define HAVE_BN_DIV_3_WORDS |
| 24 | 24 | ||
| 25 | #define HAVE_BN_MUL_COMBA4 | ||
| 26 | #define HAVE_BN_MUL_COMBA8 | ||
| 27 | |||
| 28 | #define HAVE_BN_SQR_COMBA4 | ||
| 29 | #define HAVE_BN_SQR_COMBA8 | ||
| 30 | |||
| 25 | #endif | 31 | #endif |
| 26 | #endif | 32 | #endif |
diff --git a/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h b/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h index 4d6571f9cb..17d22f3cec 100644 --- a/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h +++ b/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:34 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -20,5 +20,11 @@ | |||
| 20 | 20 | ||
| 21 | #ifndef OPENSSL_NO_ASM | 21 | #ifndef OPENSSL_NO_ASM |
| 22 | 22 | ||
| 23 | #define HAVE_BN_MUL_COMBA4 | ||
| 24 | #define HAVE_BN_MUL_COMBA8 | ||
| 25 | |||
| 26 | #define HAVE_BN_SQR_COMBA4 | ||
| 27 | #define HAVE_BN_SQR_COMBA8 | ||
| 28 | |||
| 23 | #endif | 29 | #endif |
| 24 | #endif | 30 | #endif |
diff --git a/src/lib/libcrypto/bn/arch/sparc/bn_arch.h b/src/lib/libcrypto/bn/arch/sparc/bn_arch.h index 4d6571f9cb..17d22f3cec 100644 --- a/src/lib/libcrypto/bn/arch/sparc/bn_arch.h +++ b/src/lib/libcrypto/bn/arch/sparc/bn_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:34 jsing Exp $ */ | 1 | /* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -20,5 +20,11 @@ | |||
| 20 | 20 | ||
| 21 | #ifndef OPENSSL_NO_ASM | 21 | #ifndef OPENSSL_NO_ASM |
| 22 | 22 | ||
| 23 | #define HAVE_BN_MUL_COMBA4 | ||
| 24 | #define HAVE_BN_MUL_COMBA8 | ||
| 25 | |||
| 26 | #define HAVE_BN_SQR_COMBA4 | ||
| 27 | #define HAVE_BN_SQR_COMBA8 | ||
| 28 | |||
| 23 | #endif | 29 | #endif |
| 24 | #endif | 30 | #endif |
