summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto/arch
diff options
context:
space:
mode:
authormiod <>2014-04-11 22:51:54 +0000
committermiod <>2014-04-11 22:51:54 +0000
commite4e5cfce71aea090d747d436ab48c4717f78c97c (patch)
treeafd4b98775fa2752df82417abdf319a3af0bb439 /src/lib/libcrypto/crypto/arch
parent3c70ae462fc747402d562cd98a2825922441cdda (diff)
downloadopenbsd-e4e5cfce71aea090d747d436ab48c4717f78c97c.tar.gz
openbsd-e4e5cfce71aea090d747d436ab48c4717f78c97c.tar.bz2
openbsd-e4e5cfce71aea090d747d436ab48c4717f78c97c.zip
Move build machinery for libcrypto from libssl/crypto to libcrypto, as well
as configuration files; split manpages and .pc files between libcrypto and libssl. No functional change, only there to make engineering easier, and libcrypto sources are still found in libssl/src/crypto at the moment. ok reyk@, also discussed with deraadt@ beck@ and the usual crypto suspects.
Diffstat (limited to 'src/lib/libcrypto/crypto/arch')
-rw-r--r--src/lib/libcrypto/crypto/arch/alpha/opensslconf.h271
-rw-r--r--src/lib/libcrypto/crypto/arch/amd64/opensslconf.h268
-rw-r--r--src/lib/libcrypto/crypto/arch/arm/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/hppa/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/i386/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/m88k/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/mips64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sh/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sparc/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S436
-rw-r--r--src/lib/libcrypto/crypto/arch/vax/opensslconf.h273
14 files changed, 3978 insertions, 0 deletions
diff --git a/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h b/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h
new file mode 100644
index 0000000000..30f6acfbb1
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h
@@ -0,0 +1,271 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#endif
187
188#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
189#define CONFIG_HEADER_RC4_LOCL_H
190/* if this is defined data[i] is used instead of *data, this is a %20
191 * speedup on x86 */
192#undef RC4_INDEX
193#endif
194
195#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
196#define CONFIG_HEADER_BF_LOCL_H
197#define BF_PTR
198#endif /* HEADER_BF_LOCL_H */
199
200#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
201#define CONFIG_HEADER_DES_LOCL_H
202#ifndef DES_DEFAULT_OPTIONS
203/* the following is tweaked from a config script, that is why it is a
204 * protected undef/define */
205#ifndef DES_PTR
206#define DES_PTR
207#endif
208
209/* This helps C compiler generate the correct code for multiple functional
210 * units. It reduces register dependancies at the expense of 2 more
211 * registers */
212#ifndef DES_RISC1
213#undef DES_RISC1
214#endif
215
216#ifndef DES_RISC2
217#define DES_RISC2
218#endif
219
220#if defined(DES_RISC1) && defined(DES_RISC2)
221YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
222#endif
223
224/* Unroll the inner loop, this sometimes helps, sometimes hinders.
225 * Very mucy CPU dependant */
226#ifndef DES_UNROLL
227#undef DES_UNROLL
228#endif
229
230/* These default values were supplied by
231 * Peter Gutman <pgut001@cs.auckland.ac.nz>
232 * They are only used if nothing else has been defined */
233#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
234/* Special defines which change the way the code is built depending on the
235 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
236 even newer MIPS CPU's, but at the moment one size fits all for
237 optimization options. Older Sparc's work better with only UNROLL, but
238 there's no way to tell at compile time what it is you're running on */
239
240#if defined( sun ) /* Newer Sparc's */
241# define DES_PTR
242# define DES_RISC1
243# define DES_UNROLL
244#elif defined( __ultrix ) /* Older MIPS */
245# define DES_PTR
246# define DES_RISC2
247# define DES_UNROLL
248#elif defined( __osf1__ ) /* Alpha */
249# define DES_PTR
250# define DES_RISC2
251#elif defined ( _AIX ) /* RS6000 */
252 /* Unknown */
253#elif defined( __hpux ) /* HP-PA */
254 /* Unknown */
255#elif defined( __aux ) /* 68K */
256 /* Unknown */
257#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
258# define DES_UNROLL
259#elif defined( __sgi ) /* Newer MIPS */
260# define DES_PTR
261# define DES_RISC2
262# define DES_UNROLL
263#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
264# define DES_PTR
265# define DES_RISC1
266# define DES_UNROLL
267#endif /* Systems-specific speed defines */
268#endif
269
270#endif /* DES_DEFAULT_OPTIONS */
271#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h b/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h
new file mode 100644
index 0000000000..f969fd75e4
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h
@@ -0,0 +1,268 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180#define SIXTY_FOUR_BIT_LONG
181#undef SIXTY_FOUR_BIT
182#undef THIRTY_TWO_BIT
183#endif
184
185#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
186#define CONFIG_HEADER_RC4_LOCL_H
187/* if this is defined data[i] is used instead of *data, this is a %20
188 * speedup on x86 */
189#undef RC4_INDEX
190#endif
191
192#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
193#define CONFIG_HEADER_BF_LOCL_H
194#undef BF_PTR
195#endif /* HEADER_BF_LOCL_H */
196
197#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
198#define CONFIG_HEADER_DES_LOCL_H
199#ifndef DES_DEFAULT_OPTIONS
200/* the following is tweaked from a config script, that is why it is a
201 * protected undef/define */
202#ifndef DES_PTR
203#undef DES_PTR
204#endif
205
206/* This helps C compiler generate the correct code for multiple functional
207 * units. It reduces register dependancies at the expense of 2 more
208 * registers */
209#ifndef DES_RISC1
210#undef DES_RISC1
211#endif
212
213#ifndef DES_RISC2
214#undef DES_RISC2
215#endif
216
217#if defined(DES_RISC1) && defined(DES_RISC2)
218YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
219#endif
220
221/* Unroll the inner loop, this sometimes helps, sometimes hinders.
222 * Very mucy CPU dependant */
223#ifndef DES_UNROLL
224#define DES_UNROLL
225#endif
226
227/* These default values were supplied by
228 * Peter Gutman <pgut001@cs.auckland.ac.nz>
229 * They are only used if nothing else has been defined */
230#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
231/* Special defines which change the way the code is built depending on the
232 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
233 even newer MIPS CPU's, but at the moment one size fits all for
234 optimization options. Older Sparc's work better with only UNROLL, but
235 there's no way to tell at compile time what it is you're running on */
236
237#if defined( sun ) /* Newer Sparc's */
238# define DES_PTR
239# define DES_RISC1
240# define DES_UNROLL
241#elif defined( __ultrix ) /* Older MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined( __osf1__ ) /* Alpha */
246# define DES_PTR
247# define DES_RISC2
248#elif defined ( _AIX ) /* RS6000 */
249 /* Unknown */
250#elif defined( __hpux ) /* HP-PA */
251 /* Unknown */
252#elif defined( __aux ) /* 68K */
253 /* Unknown */
254#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
255# define DES_UNROLL
256#elif defined( __sgi ) /* Newer MIPS */
257# define DES_PTR
258# define DES_RISC2
259# define DES_UNROLL
260#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
261# define DES_PTR
262# define DES_RISC1
263# define DES_UNROLL
264#endif /* Systems-specific speed defines */
265#endif
266
267#endif /* DES_DEFAULT_OPTIONS */
268#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/arm/opensslconf.h b/src/lib/libcrypto/crypto/arch/arm/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/arm/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h b/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h b/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h
new file mode 100644
index 0000000000..f8f478ff52
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#define DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/i386/opensslconf.h b/src/lib/libcrypto/crypto/arch/i386/opensslconf.h
new file mode 100644
index 0000000000..f7b5a6dc38
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/i386/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned long
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#define DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h b/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h b/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h
new file mode 100644
index 0000000000..e55282fd63
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#undef RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#define BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#define DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#undef DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h b/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sh/opensslconf.h b/src/lib/libcrypto/crypto/arch/sh/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/sh/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h b/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h b/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h
new file mode 100644
index 0000000000..e55282fd63
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#undef RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#define BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#define DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#undef DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S b/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S
new file mode 100644
index 0000000000..2969ae9dac
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S
@@ -0,0 +1,436 @@
1# $OpenBSD: bn_asm_vax.S,v 1.1 2014/04/11 22:51:53 miod Exp $
2# $NetBSD: bn_asm_vax.S,v 1.1 2003/11/03 10:22:28 ragge Exp $
3
4#include <machine/asm.h>
5
6# w.j.m. 15-jan-1999
7#
8# it's magic ...
9#
10# ULONG bn_mul_add_words(ULONG r[],ULONG a[],int n,ULONG w) {
11# ULONG c = 0;
12# int i;
13# for(i = 0; i < n; i++) <c,r[i]> := r[i] + c + a[i] * w ;
14# return c;
15# }
16
17ENTRY(bn_mul_add_words,R6)
18 movl 4(%ap),%r2 # *r
19 movl 8(%ap),%r3 # *a
20 movl 12(%ap),%r4 # n
21 movl 16(%ap),%r5 # w
22 clrl %r6 # return value ("carry")
23
240: emul %r5,(%r3),(%r2),%r0 # w * a[0] + r[0] -> r0
25
26 # fixup for "negative" r[]
27 tstl (%r2)
28 bgeq 1f
29 incl %r1 # add 1 to highword
30
311: # add saved carry to result
32 addl2 %r6,%r0
33 adwc $0,%r1
34
35 # combined fixup for "negative" w, a[]
36 tstl %r5 # if w is negative...
37 bgeq 1f
38 addl2 (%r3),%r1 # ...add a[0] again to highword
391: tstl (%r3) # if a[0] is negative...
40 bgeq 1f
41 addl2 %r5,%r1 # ...add w again to highword
421:
43 movl %r0,(%r2)+ # save low word in dest & advance *r
44 addl2 $4,%r3 # advance *a
45 movl %r1,%r6 # high word in r6 for return value
46
47 sobgtr %r4,0b # loop?
48
49 movl %r6,%r0
50 ret
51
52# .title vax_bn_mul_words unsigned multiply & add, 32*32+32=>64
53#;
54#; w.j.m. 15-jan-1999
55#;
56#; it's magic ...
57#;
58#; ULONG bn_mul_words(ULONG r[],ULONG a[],int n,ULONG w) {
59#; ULONG c = 0;
60#; int i;
61#; for(i = 0; i < num; i++) <c,r[i]> := a[i] * w + c ;
62#; return(c);
63#; }
64#
65
66ENTRY(bn_mul_words,R6)
67 movl 4(%ap),%r2 # *r
68 movl 8(%ap),%r3 # *a
69 movl 12(%ap),%r4 # n
70 movl 16(%ap),%r5 # w
71 clrl %r6 # carry
72
730: emul %r5,(%r3),%r6,%r0 # w * a[0] + carry -> r0
74
75 # fixup for "negative" carry
76 tstl %r6
77 bgeq 1f
78 incl %r1
79
801: # combined fixup for "negative" w, a[]
81 tstl %r5
82 bgeq 1f
83 addl2 (%r3),%r1
841: tstl (%r3)
85 bgeq 1f
86 addl2 %r5,%r1
87
881: movl %r0,(%r2)+
89 addl2 $4,%r3
90 movl %r1,%r6
91
92 sobgtr %r4,0b
93
94 movl %r6,%r0
95 ret
96
97
98
99# .title vax_bn_sqr_words unsigned square, 32*32=>64
100#;
101#; w.j.m. 15-jan-1999
102#;
103#; it's magic ...
104#;
105#; void bn_sqr_words(ULONG r[],ULONG a[],int n) {
106#; int i;
107#; for(i = 0; i < n; i++) <r[2*i+1],r[2*i]> := a[i] * a[i] ;
108#; }
109#
110
111ENTRY(bn_sqr_words,0)
112 movl 4(%ap),%r2 # r
113 movl 8(%ap),%r3 # a
114 movl 12(%ap),%r4 # n
115
1160: movl (%r3)+,%r5 # r5 = a[] & advance
117
118 emul %r5,%r5,$0,%r0 # a[0] * a[0] + 0 -> r0
119
120 # fixup for "negative" a[]
121 tstl %r5
122 bgeq 1f
123 addl2 %r5,%r1
124 addl2 %r5,%r1
125
1261: movq %r0,(%r2)+ # store 64-bit result
127
128 sobgtr %r4,0b # loop
129
130 ret
131
132
133# .title vax_bn_div_words unsigned divide
134#;
135#; Richard Levitte 20-Nov-2000
136#;
137#; ULONG bn_div_words(ULONG h, ULONG l, ULONG d)
138#; {
139#; return ((ULONG)((((ULLONG)h)<<32)|l) / (ULLONG)d);
140#; }
141#;
142#; Using EDIV would be very easy, if it didn't do signed calculations.
143#; Any time any of the input numbers are signed, there are problems,
144#; usually with integer overflow, at which point it returns useless
145#; data (the quotient gets the value of l, and the remainder becomes 0).
146#;
147#; If it was just for the dividend, it would be very easy, just divide
148#; it by 2 (unsigned), do the division, multiply the resulting quotient
149#; and remainder by 2, add the bit that was dropped when dividing by 2
150#; to the remainder, and do some adjustment so the remainder doesn't
151#; end up larger than the divisor. For some cases when the divisor is
152#; negative (from EDIV's point of view, i.e. when the highest bit is set),
153#; dividing the dividend by 2 isn't enough, and since some operations
154#; might generate integer overflows even when the dividend is divided by
155#; 4 (when the high part of the shifted down dividend ends up being exactly
156#; half of the divisor, the result is the quotient 0x80000000, which is
157#; negative...) it needs to be divided by 8. Furthermore, the divisor needs
158#; to be divided by 2 (unsigned) as well, to avoid more problems with the sign.
159#; In this case, a little extra fiddling with the remainder is required.
160#;
161#; So, the simplest way to handle this is always to divide the dividend
162#; by 8, and to divide the divisor by 2 if it's highest bit is set.
163#; After EDIV has been used, the quotient gets multiplied by 8 if the
164#; original divisor was positive, otherwise 4. The remainder, oddly
165#; enough, is *always* multiplied by 8.
166#; NOTE: in the case mentioned above, where the high part of the shifted
167#; down dividend ends up being exactly half the shifted down divisor, we
168#; end up with a 33 bit quotient. That's no problem however, it usually
169#; means we have ended up with a too large remainder as well, and the
170#; problem is fixed by the last part of the algorithm (next paragraph).
171#;
172#; The routine ends with comparing the resulting remainder with the
173#; original divisor and if the remainder is larger, subtract the
174#; original divisor from it, and increase the quotient by 1. This is
175#; done until the remainder is smaller than the divisor.
176#;
177#; The complete algorithm looks like this:
178#;
179#; d' = d
180#; l' = l & 7
181#; [h,l] = [h,l] >> 3
182#; [q,r] = floor([h,l] / d) # This is the EDIV operation
183#; if (q < 0) q = -q # I doubt this is necessary any more
184#;
185#; r' = r >> 29
186#; if (d' >= 0)
187#; q' = q >> 29
188#; q = q << 3
189#; else
190#; q' = q >> 30
191#; q = q << 2
192#; r = (r << 3) + l'
193#;
194#; if (d' < 0)
195#; {
196#; [r',r] = [r',r] - q
197#; while ([r',r] < 0)
198#; {
199#; [r',r] = [r',r] + d
200#; [q',q] = [q',q] - 1
201#; }
202#; }
203#;
204#; while ([r',r] >= d')
205#; {
206#; [r',r] = [r',r] - d'
207#; [q',q] = [q',q] + 1
208#; }
209#;
210#; return q
211#
212#;r2 = l, q
213#;r3 = h, r
214#;r4 = d
215#;r5 = l'
216#;r6 = r'
217#;r7 = d'
218#;r8 = q'
219#
220
221ENTRY(bn_div_words,R6|R7|R8)
222 movl 4(%ap),%r3 # h
223 movl 8(%ap),%r2 # l
224 movl 12(%ap),%r4 # d
225
226 bicl3 $-8,%r2,%r5 # l' = l & 7
227 bicl3 $7,%r2,%r2
228
229 bicl3 $-8,%r3,%r6
230 bicl3 $7,%r3,%r3
231
232 addl2 %r6,%r2
233
234 rotl $-3,%r2,%r2 # l = l >> 3
235 rotl $-3,%r3,%r3 # h = h >> 3
236
237 movl %r4,%r7 # d' = d
238
239 clrl %r6 # r' = 0
240 clrl %r8 # q' = 0
241
242 tstl %r4
243 beql 0f # Uh-oh, the divisor is 0...
244 bgtr 1f
245 rotl $-1,%r4,%r4 # If d is negative, shift it right.
246 bicl2 $0x80000000,%r4 # Since d is then a large number, the
247 # lowest bit is insignificant
248 # (contradict that, and I'll fix the problem!)
2491:
250 ediv %r4,%r2,%r2,%r3 # Do the actual division
251
252 tstl %r2
253 bgeq 1f
254 mnegl %r2,%r2 # if q < 0, negate it
2551:
256 tstl %r7
257 blss 1f
258 rotl $3,%r2,%r2 # q = q << 3
259 bicl3 $-8,%r2,%r8 # q' gets the high bits from q
260 bicl3 $7,%r2,%r2
261 brb 2f
262
2631: # else
264 rotl $2,%r2,%r2 # q = q << 2
265 bicl3 $-4,%r2,%r8 # q' gets the high bits from q
266 bicl3 $3,%r2,%r2
2672:
268 rotl $3,%r3,%r3 # r = r << 3
269 bicl3 $-8,%r3,%r6 # r' gets the high bits from r
270 bicl3 $7,%r3,%r3
271 addl2 %r5,%r3 # r = r + l'
272
273 tstl %r7
274 bgeq 5f
275 bitl $1,%r7
276 beql 5f # if d' < 0 && d' & 1
277 subl2 %r2,%r3 # [r',r] = [r',r] - [q',q]
278 sbwc %r8,%r6
2793:
280 bgeq 5f # while r < 0
281 decl %r2 # [q',q] = [q',q] - 1
282 sbwc $0,%r8
283 addl2 %r7,%r3 # [r',r] = [r',r] + d'
284 adwc $0,%r6
285 brb 3b
286
287# The return points are placed in the middle to keep a short distance from
288# all the branch points
2891:
290# movl %r3,%r1
291 movl %r2,%r0
292 ret
2930:
294 movl $-1,%r0
295 ret
2965:
297 tstl %r6
298 bneq 6f
299 cmpl %r3,%r7
300 blssu 1b # while [r',r] >= d'
3016:
302 subl2 %r7,%r3 # [r',r] = [r',r] - d'
303 sbwc $0,%r6
304 incl %r2 # [q',q] = [q',q] + 1
305 adwc $0,%r8
306 brb 5b
307
308
309
310# .title vax_bn_add_words unsigned add of two arrays
311#;
312#; Richard Levitte 20-Nov-2000
313#;
314#; ULONG bn_add_words(ULONG r[], ULONG a[], ULONG b[], int n) {
315#; ULONG c = 0;
316#; int i;
317#; for (i = 0; i < n; i++) <c,r[i]> = a[i] + b[i] + c;
318#; return(c);
319#; }
320#
321
322ENTRY(bn_add_words,0)
323 movl 4(%ap),%r2 # r
324 movl 8(%ap),%r3 # a
325 movl 12(%ap),%r4 # b
326 movl 16(%ap),%r5 # n
327 clrl %r0
328
329 tstl %r5
330 bleq 1f
331
3320: movl (%r3)+,%r1 # carry untouched
333 adwc (%r4)+,%r1 # carry used and touched
334 movl %r1,(%r2)+ # carry untouched
335 sobgtr %r5,0b # carry untouched
336
337 adwc $0,%r0
3381: ret
339
340#;
341#; Richard Levitte 20-Nov-2000
342#;
343#; ULONG bn_sub_words(ULONG r[], ULONG a[], ULONG b[], int n) {
344#; ULONG c = 0;
345#; int i;
346#; for (i = 0; i < n; i++) <c,r[i]> = a[i] - b[i] - c;
347#; return(c);
348#; }
349#
350
351ENTRY(bn_sub_words,R6)
352 movl 4(%ap),%r2 # r
353 movl 8(%ap),%r3 # a
354 movl 12(%ap),%r4 # b
355 movl 16(%ap),%r5 # n
356 clrl %r0
357
358 tstl %r5
359 bleq 1f
360
3610: movl (%r3)+,%r6 # carry untouched
362 sbwc (%r4)+,%r6 # carry used and touched
363 movl %r6,(%r2)+ # carry untouched
364 sobgtr %r5,0b # carry untouched
365
3661: adwc $0,%r0
367 ret
368
369#
370# Ragge 20-Sep-2003
371#
372# Multiply a vector of 4/8 longword by another.
373# Uses two loops and 16/64 emuls.
374#
375
376ENTRY(bn_mul_comba4,R6|R7|R8|R9)
377 movl $4,%r9 # 4*4
378 brb 6f
379
380ENTRY(bn_mul_comba8,R6|R7|R8|R9)
381 movl $8,%r9 # 8*8
382
3836: movl 8(%ap),%r3 # a[]
384 movl 12(%ap),%r7 # b[]
385 brb 5f
386
387ENTRY(bn_sqr_comba4,R6|R7|R8|R9)
388 movl $4,%r9 # 4*4
389 brb 0f
390
391ENTRY(bn_sqr_comba8,R6|R7|R8|R9)
392 movl $8,%r9 # 8*8
393
3940:
395 movl 8(%ap),%r3 # a[]
396 movl %r3,%r7 # a[]
397
3985: movl 4(%ap),%r5 # r[]
399 movl %r9,%r8
400
401 clrq (%r5) # clear destinatino, for add.
402 clrq 8(%r5)
403 clrq 16(%r5) # these only needed for comba8
404 clrq 24(%r5)
405
4062: clrl %r4 # carry
407 movl %r9,%r6 # inner loop count
408 movl (%r7)+,%r2 # value to multiply with
409
4101: emul %r2,(%r3),%r4,%r0
411 tstl %r4
412 bgeq 3f
413 incl %r1
4143: tstl %r2
415 bgeq 3f
416 addl2 (%r3),%r1
4173: tstl (%r3)
418 bgeq 3f
419 addl2 %r2,%r1
420
4213: addl2 %r0,(%r5)+ # add to destination
422 adwc $0,%r1 # remember carry
423 movl %r1,%r4 # add carry in next emul
424 addl2 $4,%r3
425 sobgtr %r6,1b
426
427 movl %r4,(%r5) # save highest add result
428
429 ashl $2,%r9,%r4
430 subl2 %r4,%r3
431 subl2 $4,%r4
432 subl2 %r4,%r5
433
434 sobgtr %r8,2b
435
436 ret
diff --git a/src/lib/libcrypto/crypto/arch/vax/opensslconf.h b/src/lib/libcrypto/crypto/arch/vax/opensslconf.h
new file mode 100644
index 0000000000..fc5ea38470
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/vax/opensslconf.h
@@ -0,0 +1,273 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */