diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/aarch64/Makefile.inc | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/alpha/Makefile.inc | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/arm/Makefile.inc | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/hppa/Makefile.inc | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/powerpc64/Makefile.inc | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/sparc64/Makefile.inc | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_asm.c | 65 |
8 files changed, 6 insertions, 78 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 1858fa7ab2..c098b2229c 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.95 2023/01/29 14:06:58 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.96 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -910,7 +910,6 @@ obj_dat.h: obj_mac.h ${SSL_OBJECTS}/obj_dat.pl | |||
910 | CFLAGS+=-DOPENSSL_NO_ASM | 910 | CFLAGS+=-DOPENSSL_NO_ASM |
911 | SRCS+= aes_core.c aes_cbc.c | 911 | SRCS+= aes_core.c aes_cbc.c |
912 | SRCS+= bf_enc.c | 912 | SRCS+= bf_enc.c |
913 | SRCS+= bn_asm.c | ||
914 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c | 913 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c |
915 | SRCS+= des_enc.c fcrypt_b.c | 914 | SRCS+= des_enc.c fcrypt_b.c |
916 | SRCS+= rc4_enc.c rc4_skey.c | 915 | SRCS+= rc4_enc.c rc4_skey.c |
diff --git a/src/lib/libcrypto/arch/aarch64/Makefile.inc b/src/lib/libcrypto/arch/aarch64/Makefile.inc index 48a340a6a2..b953494234 100644 --- a/src/lib/libcrypto/arch/aarch64/Makefile.inc +++ b/src/lib/libcrypto/arch/aarch64/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.3 2022/03/23 15:13:31 tb Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.4 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | # aarch64-specific libcrypto build rules | 3 | # aarch64-specific libcrypto build rules |
4 | 4 | ||
@@ -7,7 +7,6 @@ SRCS+= aes_core.c aes_cbc.c | |||
7 | # bf | 7 | # bf |
8 | SRCS+= bf_enc.c | 8 | SRCS+= bf_enc.c |
9 | # bn | 9 | # bn |
10 | SRCS+= bn_asm.c | ||
11 | # camellia | 10 | # camellia |
12 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c | 11 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c |
13 | # des | 12 | # des |
diff --git a/src/lib/libcrypto/arch/alpha/Makefile.inc b/src/lib/libcrypto/arch/alpha/Makefile.inc index 9d1eab835c..4cdcf64e0b 100644 --- a/src/lib/libcrypto/arch/alpha/Makefile.inc +++ b/src/lib/libcrypto/arch/alpha/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.5 2023/01/17 15:04:27 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.6 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | # alpha-specific libcrypto build rules | 3 | # alpha-specific libcrypto build rules |
4 | 4 | ||
@@ -7,7 +7,6 @@ SRCS+= aes_core.c aes_cbc.c | |||
7 | # bf | 7 | # bf |
8 | SRCS+= bf_enc.c | 8 | SRCS+= bf_enc.c |
9 | # bn | 9 | # bn |
10 | SRCS+= bn_asm.c | ||
11 | SSLASM+= bn alpha-mont | 10 | SSLASM+= bn alpha-mont |
12 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | 11 | CFLAGS+= -DOPENSSL_BN_ASM_MONT |
13 | # camellia | 12 | # camellia |
diff --git a/src/lib/libcrypto/arch/arm/Makefile.inc b/src/lib/libcrypto/arch/arm/Makefile.inc index 18772332be..c4e47c2dab 100644 --- a/src/lib/libcrypto/arch/arm/Makefile.inc +++ b/src/lib/libcrypto/arch/arm/Makefile.inc | |||
@@ -9,7 +9,6 @@ SSLASM+= aes aes-armv4 | |||
9 | # bf | 9 | # bf |
10 | SRCS+= bf_enc.c | 10 | SRCS+= bf_enc.c |
11 | # bn | 11 | # bn |
12 | SRCS+= bn_asm.c | ||
13 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | 12 | CFLAGS+= -DOPENSSL_BN_ASM_MONT |
14 | SSLASM+= bn armv4-mont | 13 | SSLASM+= bn armv4-mont |
15 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | 14 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m |
diff --git a/src/lib/libcrypto/arch/hppa/Makefile.inc b/src/lib/libcrypto/arch/hppa/Makefile.inc index 76affc391d..c11b899440 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.13 2023/01/17 15:04:27 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.14 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | # hppa-specific libcrypto build rules | 3 | # hppa-specific libcrypto build rules |
4 | 4 | ||
@@ -9,7 +9,6 @@ SSLASM+= aes aes-parisc aes-parisc | |||
9 | # bf | 9 | # bf |
10 | SRCS+= bf_enc.c | 10 | SRCS+= bf_enc.c |
11 | # bn | 11 | # bn |
12 | SRCS+= bn_asm.c | ||
13 | SSLASM+= bn parisc-mont parisc-mont | 12 | SSLASM+= bn parisc-mont parisc-mont |
14 | CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W | 13 | CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W |
15 | # camellia | 14 | # camellia |
diff --git a/src/lib/libcrypto/arch/powerpc64/Makefile.inc b/src/lib/libcrypto/arch/powerpc64/Makefile.inc index 51e1c569dc..fe19069ee0 100644 --- a/src/lib/libcrypto/arch/powerpc64/Makefile.inc +++ b/src/lib/libcrypto/arch/powerpc64/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.5 2023/01/17 15:04:27 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.6 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | # powerpc-specific libcrypto build rules | 3 | # powerpc-specific libcrypto build rules |
4 | 4 | ||
@@ -10,7 +10,6 @@ SRCS+= aes_core.c aes_cbc.c | |||
10 | # bf | 10 | # bf |
11 | SRCS+= bf_enc.c | 11 | SRCS+= bf_enc.c |
12 | # bn | 12 | # bn |
13 | SRCS+= bn_asm.c | ||
14 | #SSLASM+= bn ppc bn-ppc | 13 | #SSLASM+= bn ppc bn-ppc |
15 | #SSLASM+= bn ppc-mont ppc-mont # bn_mul_mont_int | 14 | #SSLASM+= bn ppc-mont ppc-mont # bn_mul_mont_int |
16 | #SSLASM+= bn ppc64-mont ppc64-mont # bn_mul_mont_fpu64 | 15 | #SSLASM+= bn ppc64-mont ppc64-mont # bn_mul_mont_fpu64 |
diff --git a/src/lib/libcrypto/arch/sparc64/Makefile.inc b/src/lib/libcrypto/arch/sparc64/Makefile.inc index 6ea1409c44..1b149ffb4e 100644 --- a/src/lib/libcrypto/arch/sparc64/Makefile.inc +++ b/src/lib/libcrypto/arch/sparc64/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.7 2023/01/14 15:45:43 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.8 2023/01/31 06:17:10 jsing Exp $ |
2 | 2 | ||
3 | # sparc64-specific libcrypto build rules | 3 | # sparc64-specific libcrypto build rules |
4 | 4 | ||
@@ -9,7 +9,6 @@ SSLASM+= aes aes-sparcv9 aes-sparcv9 | |||
9 | # bf | 9 | # bf |
10 | SRCS+= bf_enc.c | 10 | SRCS+= bf_enc.c |
11 | # bn | 11 | # bn |
12 | SRCS+= bn_asm.c | ||
13 | # camellia | 12 | # camellia |
14 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c | 13 | SRCS+= camellia.c cmll_cbc.c cmll_misc.c |
15 | # des | 14 | # des |
diff --git a/src/lib/libcrypto/bn/bn_asm.c b/src/lib/libcrypto/bn/bn_asm.c deleted file mode 100644 index bfdeabd9eb..0000000000 --- a/src/lib/libcrypto/bn/bn_asm.c +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | /* $OpenBSD: bn_asm.c,v 1.24 2023/01/28 17:07:02 jsing Exp $ */ | ||
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * This package is an SSL implementation written | ||
6 | * by Eric Young (eay@cryptsoft.com). | ||
7 | * The implementation was written so as to conform with Netscapes SSL. | ||
8 | * | ||
9 | * This library is free for commercial and non-commercial use as long as | ||
10 | * the following conditions are aheared to. The following conditions | ||
11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
13 | * included with this distribution is covered by the same copyright terms | ||
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
15 | * | ||
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
17 | * the code are not to be removed. | ||
18 | * If this package is used in a product, Eric Young should be given attribution | ||
19 | * as the author of the parts of the library used. | ||
20 | * This can be in the form of a textual message at program startup or | ||
21 | * in documentation (online or textual) provided with the package. | ||
22 | * | ||
23 | * Redistribution and use in source and binary forms, with or without | ||
24 | * modification, are permitted provided that the following conditions | ||
25 | * are met: | ||
26 | * 1. Redistributions of source code must retain the copyright | ||
27 | * notice, this list of conditions and the following disclaimer. | ||
28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
29 | * notice, this list of conditions and the following disclaimer in the | ||
30 | * documentation and/or other materials provided with the distribution. | ||
31 | * 3. All advertising materials mentioning features or use of this software | ||
32 | * must display the following acknowledgement: | ||
33 | * "This product includes cryptographic software written by | ||
34 | * Eric Young (eay@cryptsoft.com)" | ||
35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
36 | * being used are not cryptographic related :-). | ||
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
38 | * the apps directory (application code) you must include an acknowledgement: | ||
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
40 | * | ||
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
51 | * SUCH DAMAGE. | ||
52 | * | ||
53 | * The licence and distribution terms for any publically available version or | ||
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
55 | * copied and put under another distribution licence | ||
56 | * [including the GNU Public Licence.] | ||
57 | */ | ||
58 | |||
59 | #include <assert.h> | ||
60 | #include <stdio.h> | ||
61 | |||
62 | #include <openssl/opensslconf.h> | ||
63 | |||
64 | #include "bn_local.h" | ||
65 | |||