summaryrefslogtreecommitdiff
path: root/src/lib/libssl/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/crypto')
-rw-r--r--src/lib/libssl/crypto/Makefile563
-rw-r--r--src/lib/libssl/crypto/arch/alpha/opensslconf.h251
-rw-r--r--src/lib/libssl/crypto/arch/amd64/opensslconf.h251
-rw-r--r--src/lib/libssl/crypto/arch/arm/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/hppa/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/hppa64/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/i386/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/m68k/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/m88k/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/mips64/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/powerpc/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/sh/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/sparc/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/sparc64/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/arch/vax/bn_asm_vax.S436
-rw-r--r--src/lib/libssl/crypto/arch/vax/opensslconf.h253
-rw-r--r--src/lib/libssl/crypto/shlib_version2
17 files changed, 4539 insertions, 0 deletions
diff --git a/src/lib/libssl/crypto/Makefile b/src/lib/libssl/crypto/Makefile
new file mode 100644
index 0000000000..38fc8620ca
--- /dev/null
+++ b/src/lib/libssl/crypto/Makefile
@@ -0,0 +1,563 @@
1# $OpenBSD: Makefile,v 1.60 2011/07/08 21:30:10 mpf Exp $
2
3LIB= crypto
4WANTLINT=
5
6SSLEAYDIST= src
7SSL_SRC= ${.CURDIR}/../${SSLEAYDIST}
8LCRYPTO_SRC= ${SSL_SRC}/crypto
9
10# arm and sh default to little endian, mips defaults to big endian
11.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
12 ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \
13 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "sh" || \
14 ${MACHINE_ARCH} == "vax"
15CFLAGS+= -DL_ENDIAN
16.else
17CFLAGS+= -DB_ENDIAN
18.endif
19
20.include <bsd.own.mk> # for 'NOPIC' definition
21.if !defined(NOPIC)
22CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H
23.endif
24
25.if ${MACHINE_ARCH} == "sparc"
26PICFLAG=-fPIC
27.endif
28
29CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_ERR -DNO_WINDOWS_BRAINDEATH
30# Patented algorithms
31CFLAGS+= -DOPENSSL_NO_IDEA
32CFLAGS+= -DOPENSSL_NO_RC5
33CFLAGS+= -DOPENSSL_NO_KRB5
34# NB. MDC2 is off patent now, we can add it whenever we want to
35CFLAGS+= -DOPENSSL_NO_MDC2
36CFLAGS+= -DOPENSSL_NO_GOST
37
38# Hardware engines
39CFLAGS+= -DOPENSSL_NO_HW_4758_CCA
40CFLAGS+= -DOPENSSL_NO_HW_AEP
41CFLAGS+= -DOPENSSL_NO_HW_ATALLA
42CFLAGS+= -DOPENSSL_NO_CAPIENG
43CFLAGS+= -DOPENSSL_NO_HW_CSWIFT
44CFLAGS+= -DOPENSSL_NO_HW_NCIPHER
45CFLAGS+= -DOPENSSL_NO_HW_NURON
46CFLAGS+= -DOPENSSL_NO_HW_PADLOCK # XXX enable this?
47CFLAGS+= -DOPENSSL_NO_HW_SUREWARE
48CFLAGS+= -DOPENSSL_NO_HW_UBSEC
49
50CFLAGS+= -I${.CURDIR}/../${SSLEAYDIST}
51CFLAGS+= -I${LCRYPTO_SRC}
52CFLAGS+= -I${LCRYPTO_SRC}/asn1 -I${LCRYPTO_SRC}/evp
53
54# crypto/
55SRCS+= cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c cpt_err.c
56SRCS+= ebcdic.c uid.c o_time.c o_str.c o_dir.c
57
58# acss/
59SRCS+= acss_skey.c acss_enc.c
60
61# aes/
62SRCS+= aes_misc.c aes_ecb.c aes_cfb.c aes_ofb.c aes_ctr.c aes_ige.c aes_wrap.c
63
64# asn1/
65SRCS+= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c
66SRCS+= a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c
67SRCS+= a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c
68SRCS+= x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c
69SRCS+= x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c
70SRCS+= x_nx509.c d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c
71SRCS+= t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c
72SRCS+= tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c
73SRCS+= tasn_prn.c ameth_lib.c
74SRCS+= f_int.c f_string.c n_pkey.c
75SRCS+= f_enum.c x_pkey.c a_bool.c x_exten.c bio_asn1.c bio_ndef.c asn_mime.c
76SRCS+= asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_bytes.c a_strnid.c
77SRCS+= evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c
78
79# bf/
80SRCS+= bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c
81
82# bio/
83SRCS+= bio_lib.c bio_cb.c bio_err.c
84SRCS+= bss_mem.c bss_null.c bss_fd.c
85SRCS+= bss_file.c bss_sock.c bss_conn.c
86SRCS+= bf_null.c bf_buff.c b_print.c b_dump.c
87SRCS+= b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c
88SRCS+= bss_dgram.c
89
90# bn/
91SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c
92SRCS+= bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c
93SRCS+= bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c
94SRCS+= bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c
95SRCS+= bn_depr.c bn_const.c
96
97# buffer/
98SRCS+= buffer.c buf_err.c
99
100# camellia/
101#SRCS+= cmll_ecb.c cmll_ofb.c cmll_cfb.c cmll_ctr.c
102
103# cast/
104SRCS+= c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
105
106# cms/
107#SRCS+= cms_lib.c cms_asn1.c cms_att.c cms_io.c cms_smime.c cms_err.c
108#SRCS+= cms_sd.c cms_dd.c cms_cd.c cms_env.c cms_enc.c cms_ess.c
109
110# comp/
111SRCS+= comp_lib.c comp_err.c c_rle.c c_zlib.c
112
113# conf/
114SRCS+= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c
115SRCS+= conf_mall.c conf_sap.c
116
117# des/
118SRCS+= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c
119SRCS+= ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c
120SRCS+= fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c
121SRCS+= qud_cksm.c rand_key.c rpc_enc.c set_key.c xcbc_enc.c
122SRCS+= str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c
123SRCS+= read2pwd.c
124
125# dh/
126SRCS+= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c dh_depr.c
127SRCS+= dh_ameth.c dh_pmeth.c dh_prn.c
128
129# dsa/
130SRCS+= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c
131SRCS+= dsa_err.c dsa_ossl.c dsa_depr.c dsa_ameth.c dsa_pmeth.c dsa_prn.c
132
133# dso/
134SRCS+= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
135SRCS+= dso_openssl.c dso_win32.c dso_vms.c dso_beos.c
136
137# ec/
138SRCS+= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
139SRCS+= ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
140SRCS+= ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c
141
142# ecdh/
143SRCS+= ech_lib.c ech_ossl.c ech_key.c ech_err.c
144
145# ecdsa/
146SRCS+= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
147
148# engine/
149SRCS+= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
150SRCS+= eng_table.c eng_pkey.c eng_fat.c eng_all.c
151SRCS+= tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
152SRCS+= tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c
153SRCS+= eng_openssl.c eng_cnf.c eng_dyn.c hw_cryptodev.c
154SRCS+= eng_aesni.c # local addition
155
156# err/
157SRCS+= err.c err_all.c err_prn.c
158
159# evp/
160SRCS+= encode.c digest.c evp_enc.c evp_key.c evp_acnf.c
161SRCS+= e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
162SRCS+= e_rc4.c e_aes.c names.c e_seed.c
163SRCS+= e_xcbc_d.c e_rc2.c e_cast.c e_rc5.c
164SRCS+= m_null.c m_md2.c m_md4.c m_md5.c m_sha.c m_sha1.c m_wp.c
165SRCS+= m_dss.c m_dss1.c m_mdc2.c m_ripemd.c m_ecdsa.c
166SRCS+= p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
167SRCS+= bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
168SRCS+= c_all.c c_allc.c c_alld.c evp_lib.c bio_ok.c
169SRCS+= evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
170SRCS+= e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c
171SRCS+= e_acss.c # Local addition
172
173# hmac/
174SRCS+= hmac.c hm_ameth.c hm_pmeth.c
175
176# idea/
177#SRCS+= i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
178
179# jpake/
180#SRCS+= jpake.c jpake_err.c
181
182# krb5/
183SRCS+= krb5_asn.c
184
185# lhash/
186SRCS+= lhash.c lh_stats.c
187
188# md2
189##SRCS+= md2_dgst.c md2_one.c
190
191# md4/
192SRCS+= md4_dgst.c md4_one.c
193
194# md5/
195SRCS+= md5_dgst.c md5_one.c
196
197# mdc2/
198#SRCS+= mdc2dgst.c mdc2_one.c
199
200# modes/
201SRCS+= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c
202
203# objects/
204SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
205
206# ocsp/
207SRCS+= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
208SRCS+= ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
209
210# pem/
211SRCS+= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
212SRCS+= pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
213
214# pkcs12/
215SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
216SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c
217SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
218
219# pkcs7/
220SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
221SRCS+= pk7_mime.c bio_pk7.c
222
223# pqueue/
224SRCS+= pqueue.c
225
226# rand/
227SRCS+= md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c
228SRCS+= rand_win.c rand_unix.c rand_os2.c rand_nw.c
229
230# rc2/
231SRCS+= rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
232
233# rc5/
234#SRCS+= rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c
235
236# ripemd/
237SRCS+= rmd_dgst.c rmd_one.c
238
239# rsa/
240SRCS+= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
241SRCS+= rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c rsa_null.c
242SRCS+= rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
243SRCS+= rsa_pmeth.c
244
245# seed/
246#SRCS+= seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c
247
248# sha/
249SRCS+= sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
250
251# stack/
252SRCS+= stack.c
253
254# store/
255#SRCS+= str_err.c str_lib.c str_meth.c str_mem.c
256
257# ts/
258SRCS+= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
259SRCS+= ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
260SRCS+= ts_asn1.c
261
262# txt_db/
263SRCS+=txt_db.c
264
265# ui/
266SRCS+= ui_err.c ui_lib.c ui_openssl.c ui_util.c ui_compat.c
267
268# whrlpool/
269SRCS+= wp_dgst.c
270
271# x509/
272SRCS+= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
273SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c
274SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c
275SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c
276SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c
277SRCS+= x509_trs.c by_file.c by_dir.c x509_vpm.c
278
279# x509v3/
280SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c
281SRCS+= v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c
282SRCS+= v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c
283SRCS+= v3_ocsp.c v3_akeya.c v3_pmaps.c v3_pcons.c v3_ncons.c v3_pcia.c v3_pci.c
284SRCS+= pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
285SRCS+= v3_asid.c v3_addr.c
286
287.PATH: ${.CURDIR}/arch/${MACHINE_CPU} \
288 ${LCRYPTO_SRC} \
289 ${LCRYPTO_SRC}/acss \
290 ${LCRYPTO_SRC}/aes \
291 ${LCRYPTO_SRC}/asn1 \
292 ${LCRYPTO_SRC}/bf \
293 ${LCRYPTO_SRC}/bio \
294 ${LCRYPTO_SRC}/bn \
295 ${LCRYPTO_SRC}/bn/asm \
296 ${LCRYPTO_SRC}/buffer \
297 ${LCRYPTO_SRC}/camellia \
298 ${LCRYPTO_SRC}/cast \
299 ${LCRYPTO_SRC}/cms \
300 ${LCRYPTO_SRC}/comp \
301 ${LCRYPTO_SRC}/conf \
302 ${LCRYPTO_SRC}/des \
303 ${LCRYPTO_SRC}/dh \
304 ${LCRYPTO_SRC}/dsa \
305 ${LCRYPTO_SRC}/dso \
306 ${LCRYPTO_SRC}/ec \
307 ${LCRYPTO_SRC}/ecdh \
308 ${LCRYPTO_SRC}/ecdsa \
309 ${LCRYPTO_SRC}/engine \
310 ${LCRYPTO_SRC}/err \
311 ${LCRYPTO_SRC}/evp \
312 ${LCRYPTO_SRC}/md2 \
313 ${LCRYPTO_SRC}/hmac \
314 ${LCRYPTO_SRC}/idea \
315 ${LCRYPTO_SRC}/jpake \
316 ${LCRYPTO_SRC}/krb5 \
317 ${LCRYPTO_SRC}/lhash \
318 ${LCRYPTO_SRC}/md4 \
319 ${LCRYPTO_SRC}/md5 \
320 ${LCRYPTO_SRC}/mdc2 \
321 ${LCRYPTO_SRC}/modes \
322 ${LCRYPTO_SRC}/objects \
323 ${LCRYPTO_SRC}/ocsp \
324 ${LCRYPTO_SRC}/pem \
325 ${LCRYPTO_SRC}/perlasm \
326 ${LCRYPTO_SRC}/pkcs12 \
327 ${LCRYPTO_SRC}/pkcs7 \
328 ${LCRYPTO_SRC}/pqueue \
329 ${LCRYPTO_SRC}/rand \
330 ${LCRYPTO_SRC}/rc2 \
331 ${LCRYPTO_SRC}/rc4 \
332 ${LCRYPTO_SRC}/rc5 \
333 ${LCRYPTO_SRC}/ripemd \
334 ${LCRYPTO_SRC}/rsa \
335 ${LCRYPTO_SRC}/seed \
336 ${LCRYPTO_SRC}/sha \
337 ${LCRYPTO_SRC}/stack \
338 ${LCRYPTO_SRC}/store \
339 ${LCRYPTO_SRC}/threads \
340 ${LCRYPTO_SRC}/ts \
341 ${LCRYPTO_SRC}/txt_db \
342 ${LCRYPTO_SRC}/ui \
343 ${LCRYPTO_SRC}/whrlpool \
344 ${LCRYPTO_SRC}/x509 \
345 ${LCRYPTO_SRC}/x509v3
346
347HDRS=\
348 e_os.h \
349 e_os2.h \
350 crypto/acss/acss.h \
351 crypto/aes/aes.h \
352 crypto/asn1/asn1.h \
353 crypto/asn1/asn1_mac.h \
354 crypto/asn1/asn1t.h \
355 crypto/bf/blowfish.h \
356 crypto/bio/bio.h \
357 crypto/bn/bn.h \
358 crypto/buffer/buffer.h \
359 crypto/camellia/camellia.h \
360 crypto/cast/cast.h \
361 crypto/cms/cms.h \
362 crypto/comp/comp.h \
363 crypto/conf/conf.h \
364 crypto/conf/conf_api.h \
365 crypto/crypto.h \
366 crypto/des/des.h \
367 crypto/des/des_old.h \
368 crypto/dh/dh.h \
369 crypto/dsa/dsa.h \
370 crypto/dso/dso.h \
371 crypto/ebcdic.h \
372 crypto/ec/ec.h \
373 crypto/ecdh/ecdh.h \
374 crypto/ecdsa/ecdsa.h \
375 crypto/engine/engine.h \
376 crypto/err/err.h \
377 crypto/evp/evp.h \
378 crypto/hmac/hmac.h \
379 crypto/idea/idea.h \
380 crypto/krb5/krb5_asn.h \
381 crypto/lhash/lhash.h \
382 crypto/md2/md2.h \
383 crypto/md4/md4.h \
384 crypto/md5/md5.h \
385 crypto/mdc2/mdc2.h \
386 crypto/modes/modes.h \
387 crypto/objects/objects.h \
388 crypto/ocsp/ocsp.h \
389 crypto/opensslv.h \
390 crypto/ossl_typ.h \
391 crypto/pem/pem.h \
392 crypto/pem/pem2.h \
393 crypto/pkcs12/pkcs12.h \
394 crypto/pkcs7/pkcs7.h \
395 crypto/pqueue/pqueue.h \
396 crypto/rand/rand.h \
397 crypto/rc2/rc2.h \
398 crypto/rc4/rc4.h \
399 crypto/rc5/rc5.h \
400 crypto/ripemd/ripemd.h \
401 crypto/rsa/rsa.h \
402 crypto/seed/seed.h \
403 crypto/sha/sha.h \
404 crypto/stack/safestack.h \
405 crypto/stack/stack.h \
406 crypto/store/store.h \
407 crypto/symhacks.h \
408 crypto/ts/ts.h \
409 crypto/txt_db/txt_db.h \
410 crypto/ui/ui.h \
411 crypto/ui/ui_compat.h \
412 crypto/whrlpool/whrlpool.h \
413 crypto/x509/x509.h \
414 crypto/x509/x509_vfy.h \
415 crypto/x509v3/x509v3.h
416
417HDRS_GEN=\
418 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
419 ${.OBJDIR}/obj_mac.h
420
421includes: obj_mac.h
422 @test -d ${DESTDIR}/usr/include/openssl || \
423 mkdir ${DESTDIR}/usr/include/openssl
424 @cd ${SSL_SRC}; \
425 for i in $(HDRS); do \
426 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
427 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
428 ${DESTDIR}/usr/include/openssl"; \
429 echo $$j; \
430 eval "$$j"; \
431 done; \
432 for i in $(HDRS_GEN); do \
433 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
434 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
435 ${DESTDIR}/usr/include/openssl"; \
436 echo $$j; \
437 eval "$$j"; \
438 done;
439
440# generated
441CFLAGS+= -I${.OBJDIR}
442
443GENERATED=obj_mac.h obj_dat.h
444CLEANFILES=${GENERATED} obj_mac.num.tmp
445SSL_OBJECTS=${SSL_SRC}/crypto/objects
446
447obj_mac.h: ${SSL_OBJECTS}/objects.h ${SSL_OBJECTS}/obj_mac.num ${SSL_OBJECTS}/objects.txt
448 cat ${SSL_OBJECTS}/obj_mac.num > obj_mac.num.tmp
449 /usr/bin/perl ${SSL_OBJECTS}/objects.pl ${SSL_OBJECTS}/objects.txt obj_mac.num.tmp obj_mac.h
450
451obj_dat.h: obj_mac.h
452 /usr/bin/perl ${SSL_OBJECTS}/obj_dat.pl obj_mac.h obj_dat.h
453
454.if (${MACHINE_ARCH} == "vax")
455# egcs bombs optimising these files
456a_strnid.o:
457 ${CC} ${CFLAGS} -O0 ${CPPFLAGS} -c ${.IMPSRC}
458a_strnid.po:
459 ${CC} ${CFLAGS} -O0 ${CPPFLAGS} -c ${.IMPSRC} -o $@
460des_enc.o:
461 ${CC} ${CFLAGS} -O1 ${CPPFLAGS} -c ${.IMPSRC}
462des_enc.po:
463 ${CC} ${CFLAGS} -O1 ${CPPFLAGS} -c ${.IMPSRC} -o $@
464.endif
465
466.if (${MACHINE_ARCH} == "i386")
467SRCS+= wp_block.c
468CFLAGS+= -DAES_ASM
469CFLAGS+= -DMD5_ASM
470CFLAGS+= -DSHA1_ASM
471CFLAGS+= -DSHA256_ASM
472CFLAGS+= -DSHA512_ASM
473CFLAGS+= -DRMD160_ASM
474CFLAGS+= -DOPENBSD_DES_ASM
475CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS
476CFLAGS+= -DOPENSSL_BN_ASM_MONT
477CFLAGS+= -DOPENSSL_CPUID_OBJ
478CFLAGS+= -DWHIRLPOOL_ASM
479CFLAGS+= -DOPENSSL_IA32_SSE2
480# XXX bad relocation in CAST ASM code leads to TEXTREL for shared libcrypto
481#CFLAGS+= -DOPENBSD_CAST_ASM
482SSLASM=\
483 aes aes-586 \
484 bf bf-586 \
485 bn bn-586 \
486 bn co-586 \
487 bn x86-mont \
488 des crypt586 \
489 des des-586 \
490 md5 md5-586 \
491 rc4 rc4-586 \
492 ripemd rmd-586 \
493 sha sha1-586 \
494 sha sha256-586 \
495 sha sha512-586 \
496 whrlpool wp-mmx
497.for dir f in ${SSLASM}
498SRCS+= ${f}.S
499GENERATED+=${f}.S
500${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
501 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \
502 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \
503 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
504.endfor
505SRCS+= x86cpuid.S
506GENERATED+=x86cpuid.S
507x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
508 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \
509 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
510SRCS+= bf_cbc.c
511.elif (${MACHINE_ARCH} == "amd64")
512SRCS+= bf_enc.c des_enc.c
513SRCS+= x86_64-gcc.c
514SRCS+= fcrypt_b.c
515CFLAGS+= -DAES_ASM
516CFLAGS+= -DMD5_ASM
517CFLAGS+= -DSHA1_ASM
518CFLAGS+= -DSHA256_ASM
519CFLAGS+= -DSHA512_ASM
520CFLAGS+= -DOPENSSL_CPUID_OBJ
521CFLAGS+= -DOPENSSL_BN_ASM_MONT
522CFLAGS+= -DWHIRLPOOL_ASM
523SSLASM=\
524 aes aes-x86_64 \
525 aes aesni-x86_64 \
526 bn x86_64-mont \
527 md5 md5-x86_64 \
528 rc4 rc4-x86_64 \
529 sha sha1-x86_64 \
530 whrlpool wp-x86_64
531.for dir f in ${SSLASM}
532SRCS+= ${f}.S
533GENERATED+=${f}.S
534${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
535 (cd ${LCRYPTO_SRC}/${dir} ; \
536 /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET}
537.endfor
538SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
539GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
540x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl
541 (cd ${LCRYPTO_SRC}/${dir} ; \
542 /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET}
543sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
544 cd ${LCRYPTO_SRC}/sha/asm ; \
545 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
546sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
547 cd ${LCRYPTO_SRC}/sha/asm ; \
548 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
549.else
550# XXX ppccpuid.pl
551CFLAGS+=-DOPENSSL_NO_ASM
552SRCS+= mem_clr.c
553SRCS+= aes_core.c aes_cbc.c
554SRCS+= bf_enc.c
555SRCS+= bn_asm.c
556SRCS+= des_enc.c fcrypt_b.c
557SRCS+= rc4_enc.c rc4_skey.c
558SRCS+= wp_block.c
559.endif
560
561all beforedepend: ${GENERATED}
562
563.include <bsd.lib.mk>
diff --git a/src/lib/libssl/crypto/arch/alpha/opensslconf.h b/src/lib/libssl/crypto/arch/alpha/opensslconf.h
new file mode 100644
index 0000000000..a49bd23031
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/alpha/opensslconf.h
@@ -0,0 +1,251 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#define RC4_CHUNK unsigned long
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#undef BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#define SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#undef THIRTY_TWO_BIT
166#endif
167
168#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
169#define CONFIG_HEADER_RC4_LOCL_H
170/* if this is defined data[i] is used instead of *data, this is a %20
171 * speedup on x86 */
172#undef RC4_INDEX
173#endif
174
175#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
176#define CONFIG_HEADER_BF_LOCL_H
177#define BF_PTR
178#endif /* HEADER_BF_LOCL_H */
179
180#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
181#define CONFIG_HEADER_DES_LOCL_H
182#ifndef DES_DEFAULT_OPTIONS
183/* the following is tweaked from a config script, that is why it is a
184 * protected undef/define */
185#ifndef DES_PTR
186#define DES_PTR
187#endif
188
189/* This helps C compiler generate the correct code for multiple functional
190 * units. It reduces register dependancies at the expense of 2 more
191 * registers */
192#ifndef DES_RISC1
193#undef DES_RISC1
194#endif
195
196#ifndef DES_RISC2
197#define DES_RISC2
198#endif
199
200#if defined(DES_RISC1) && defined(DES_RISC2)
201YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
202#endif
203
204/* Unroll the inner loop, this sometimes helps, sometimes hinders.
205 * Very mucy CPU dependant */
206#ifndef DES_UNROLL
207#undef DES_UNROLL
208#endif
209
210/* These default values were supplied by
211 * Peter Gutman <pgut001@cs.auckland.ac.nz>
212 * They are only used if nothing else has been defined */
213#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
214/* Special defines which change the way the code is built depending on the
215 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
216 even newer MIPS CPU's, but at the moment one size fits all for
217 optimization options. Older Sparc's work better with only UNROLL, but
218 there's no way to tell at compile time what it is you're running on */
219
220#if defined( sun ) /* Newer Sparc's */
221# define DES_PTR
222# define DES_RISC1
223# define DES_UNROLL
224#elif defined( __ultrix ) /* Older MIPS */
225# define DES_PTR
226# define DES_RISC2
227# define DES_UNROLL
228#elif defined( __osf1__ ) /* Alpha */
229# define DES_PTR
230# define DES_RISC2
231#elif defined ( _AIX ) /* RS6000 */
232 /* Unknown */
233#elif defined( __hpux ) /* HP-PA */
234 /* Unknown */
235#elif defined( __aux ) /* 68K */
236 /* Unknown */
237#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
238# define DES_UNROLL
239#elif defined( __sgi ) /* Newer MIPS */
240# define DES_PTR
241# define DES_RISC2
242# define DES_UNROLL
243#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
244# define DES_PTR
245# define DES_RISC1
246# define DES_UNROLL
247#endif /* Systems-specific speed defines */
248#endif
249
250#endif /* DES_DEFAULT_OPTIONS */
251#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/amd64/opensslconf.h b/src/lib/libssl/crypto/arch/amd64/opensslconf.h
new file mode 100644
index 0000000000..16314dbc1e
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/amd64/opensslconf.h
@@ -0,0 +1,251 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#define RC4_CHUNK unsigned long
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#undef BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#define SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#undef THIRTY_TWO_BIT
166#endif
167
168#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
169#define CONFIG_HEADER_RC4_LOCL_H
170/* if this is defined data[i] is used instead of *data, this is a %20
171 * speedup on x86 */
172#undef RC4_INDEX
173#endif
174
175#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
176#define CONFIG_HEADER_BF_LOCL_H
177#undef BF_PTR
178#endif /* HEADER_BF_LOCL_H */
179
180#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
181#define CONFIG_HEADER_DES_LOCL_H
182#ifndef DES_DEFAULT_OPTIONS
183/* the following is tweaked from a config script, that is why it is a
184 * protected undef/define */
185#ifndef DES_PTR
186#undef DES_PTR
187#endif
188
189/* This helps C compiler generate the correct code for multiple functional
190 * units. It reduces register dependancies at the expense of 2 more
191 * registers */
192#ifndef DES_RISC1
193#undef DES_RISC1
194#endif
195
196#ifndef DES_RISC2
197#undef DES_RISC2
198#endif
199
200#if defined(DES_RISC1) && defined(DES_RISC2)
201YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
202#endif
203
204/* Unroll the inner loop, this sometimes helps, sometimes hinders.
205 * Very mucy CPU dependant */
206#ifndef DES_UNROLL
207#define DES_UNROLL
208#endif
209
210/* These default values were supplied by
211 * Peter Gutman <pgut001@cs.auckland.ac.nz>
212 * They are only used if nothing else has been defined */
213#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
214/* Special defines which change the way the code is built depending on the
215 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
216 even newer MIPS CPU's, but at the moment one size fits all for
217 optimization options. Older Sparc's work better with only UNROLL, but
218 there's no way to tell at compile time what it is you're running on */
219
220#if defined( sun ) /* Newer Sparc's */
221# define DES_PTR
222# define DES_RISC1
223# define DES_UNROLL
224#elif defined( __ultrix ) /* Older MIPS */
225# define DES_PTR
226# define DES_RISC2
227# define DES_UNROLL
228#elif defined( __osf1__ ) /* Alpha */
229# define DES_PTR
230# define DES_RISC2
231#elif defined ( _AIX ) /* RS6000 */
232 /* Unknown */
233#elif defined( __hpux ) /* HP-PA */
234 /* Unknown */
235#elif defined( __aux ) /* 68K */
236 /* Unknown */
237#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
238# define DES_UNROLL
239#elif defined( __sgi ) /* Newer MIPS */
240# define DES_PTR
241# define DES_RISC2
242# define DES_UNROLL
243#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
244# define DES_PTR
245# define DES_RISC1
246# define DES_UNROLL
247#endif /* Systems-specific speed defines */
248#endif
249
250#endif /* DES_DEFAULT_OPTIONS */
251#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/arm/opensslconf.h b/src/lib/libssl/crypto/arch/arm/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/arm/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/hppa/opensslconf.h b/src/lib/libssl/crypto/arch/hppa/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/hppa/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/hppa64/opensslconf.h b/src/lib/libssl/crypto/arch/hppa64/opensslconf.h
new file mode 100644
index 0000000000..38a4f1ca9f
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/hppa64/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#undef BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#define SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#undef THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#define DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/i386/opensslconf.h b/src/lib/libssl/crypto/arch/i386/opensslconf.h
new file mode 100644
index 0000000000..91993d7a3f
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/i386/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#define DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#define DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/m68k/opensslconf.h b/src/lib/libssl/crypto/arch/m68k/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/m68k/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/m88k/opensslconf.h b/src/lib/libssl/crypto/arch/m88k/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/m88k/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/mips64/opensslconf.h b/src/lib/libssl/crypto/arch/mips64/opensslconf.h
new file mode 100644
index 0000000000..10cb4e721d
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/mips64/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#define RC4_CHUNK unsigned long
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#undef BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#define SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#undef THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#undef RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#define BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#define DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#define DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#undef DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/powerpc/opensslconf.h b/src/lib/libssl/crypto/arch/powerpc/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/powerpc/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/sh/opensslconf.h b/src/lib/libssl/crypto/arch/sh/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/sh/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/sparc/opensslconf.h b/src/lib/libssl/crypto/arch/sparc/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/sparc/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/sparc64/opensslconf.h b/src/lib/libssl/crypto/arch/sparc64/opensslconf.h
new file mode 100644
index 0000000000..10cb4e721d
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/sparc64/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#define RC4_CHUNK unsigned long
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#undef BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#define SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#undef THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#undef RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#define BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#define DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#define DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#undef DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/arch/vax/bn_asm_vax.S b/src/lib/libssl/crypto/arch/vax/bn_asm_vax.S
new file mode 100644
index 0000000000..bd067a55d3
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/vax/bn_asm_vax.S
@@ -0,0 +1,436 @@
1# $OpenBSD: bn_asm_vax.S,v 1.1 2003/11/18 12:39:05 markus 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/libssl/crypto/arch/vax/opensslconf.h b/src/lib/libssl/crypto/arch/vax/opensslconf.h
new file mode 100644
index 0000000000..c1fc4e5d11
--- /dev/null
+++ b/src/lib/libssl/crypto/arch/vax/opensslconf.h
@@ -0,0 +1,253 @@
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#ifndef OPENSSL_NO_CAMELLIA
8# define OPENSSL_NO_CAMELLIA
9#endif
10#ifndef OPENSSL_NO_CMS
11# define OPENSSL_NO_CMS
12#endif
13#ifndef OPENSSL_NO_GMP
14# define OPENSSL_NO_GMP
15#endif
16#ifndef OPENSSL_NO_GOST
17# define OPENSSL_NO_GOST
18#endif
19#ifndef OPENSSL_NO_JPAKE
20# define OPENSSL_NO_JPAKE
21#endif
22#ifndef OPENSSL_NO_KRB5
23# define OPENSSL_NO_KRB5
24#endif
25#ifndef OPENSSL_NO_MD2
26# define OPENSSL_NO_MD2
27#endif
28#ifndef OPENSSL_NO_MDC2
29# define OPENSSL_NO_MDC2
30#endif
31#ifndef OPENSSL_NO_RC5
32# define OPENSSL_NO_RC5
33#endif
34#ifndef OPENSSL_NO_RFC3779
35# define OPENSSL_NO_RFC3779
36#endif
37#ifndef OPENSSL_NO_SEED
38# define OPENSSL_NO_SEED
39#endif
40#ifndef OPENSSL_NO_STORE
41# define OPENSSL_NO_STORE
42#endif
43
44#endif /* OPENSSL_DOING_MAKEDEPEND */
45#ifndef OPENSSL_THREADS
46# define OPENSSL_THREADS
47#endif
48#ifndef OPENSSL_NO_DYNAMIC_ENGINE
49# define OPENSSL_NO_DYNAMIC_ENGINE
50#endif
51
52/* The OPENSSL_NO_* macros are also defined as NO_* if the application
53 asks for it. This is a transient feature that is provided for those
54 who haven't had the time to do the appropriate changes in their
55 applications. */
56#ifdef OPENSSL_ALGORITHM_DEFINES
57# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
58# define NO_CAMELLIA
59# endif
60# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
61# define NO_CMS
62# endif
63# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
64# define NO_GMP
65# endif
66# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
67# define NO_GOST
68# endif
69# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
70# define NO_JPAKE
71# endif
72# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
73# define NO_KRB5
74# endif
75# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
76# define NO_MD2
77# endif
78# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
79# define NO_MDC2
80# endif
81# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
82# define NO_RC5
83# endif
84# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
85# define NO_RFC3779
86# endif
87# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
88# define NO_SEED
89# endif
90# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
91# define NO_STORE
92# endif
93#endif
94
95/* crypto/opensslconf.h.in */
96
97/* Generate 80386 code? */
98#undef I386_ONLY
99
100#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
101#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
102#define ENGINESDIR "/usr/lib/engines"
103#define OPENSSLDIR "/etc/ssl"
104#endif
105#endif
106
107#undef OPENSSL_UNISTD
108#define OPENSSL_UNISTD <unistd.h>
109
110#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
111
112#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
113#define IDEA_INT unsigned int
114#endif
115
116#if defined(HEADER_MD2_H) && !defined(MD2_INT)
117#define MD2_INT unsigned int
118#endif
119
120#if defined(HEADER_RC2_H) && !defined(RC2_INT)
121/* I need to put in a mod for the alpha - eay */
122#define RC2_INT unsigned int
123#endif
124
125#if defined(HEADER_RC4_H)
126#if !defined(RC4_INT)
127/* using int types make the structure larger but make the code faster
128 * on most boxes I have tested - up to %20 faster. */
129/*
130 * I don't know what does "most" mean, but declaring "int" is a must on:
131 * - Intel P6 because partial register stalls are very expensive;
132 * - elder Alpha because it lacks byte load/store instructions;
133 */
134#define RC4_INT unsigned int
135#endif
136#if !defined(RC4_CHUNK)
137/*
138 * This enables code handling data aligned at natural CPU word
139 * boundary. See crypto/rc4/rc4_enc.c for further details.
140 */
141#undef RC4_CHUNK
142#endif
143#endif
144
145#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
146/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
147 * %20 speed up (longs are 8 bytes, int's are 4). */
148#ifndef DES_LONG
149#define DES_LONG unsigned int
150#endif
151#endif
152
153#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
154#define CONFIG_HEADER_BN_H
155#define BN_LLONG
156
157/* Should we define BN_DIV2W here? */
158
159/* Only one for the following should be defined */
160/* The prime number generation stuff may not work when
161 * EIGHT_BIT but I don't care since I've only used this mode
162 * for debuging the bignum libraries */
163#undef SIXTY_FOUR_BIT_LONG
164#undef SIXTY_FOUR_BIT
165#define THIRTY_TWO_BIT
166#undef SIXTEEN_BIT
167#undef EIGHT_BIT
168#endif
169
170#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
171#define CONFIG_HEADER_RC4_LOCL_H
172/* if this is defined data[i] is used instead of *data, this is a %20
173 * speedup on x86 */
174#define RC4_INDEX
175#endif
176
177#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
178#define CONFIG_HEADER_BF_LOCL_H
179#undef BF_PTR
180#endif /* HEADER_BF_LOCL_H */
181
182#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
183#define CONFIG_HEADER_DES_LOCL_H
184#ifndef DES_DEFAULT_OPTIONS
185/* the following is tweaked from a config script, that is why it is a
186 * protected undef/define */
187#ifndef DES_PTR
188#undef DES_PTR
189#endif
190
191/* This helps C compiler generate the correct code for multiple functional
192 * units. It reduces register dependancies at the expense of 2 more
193 * registers */
194#ifndef DES_RISC1
195#undef DES_RISC1
196#endif
197
198#ifndef DES_RISC2
199#undef DES_RISC2
200#endif
201
202#if defined(DES_RISC1) && defined(DES_RISC2)
203YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
204#endif
205
206/* Unroll the inner loop, this sometimes helps, sometimes hinders.
207 * Very mucy CPU dependant */
208#ifndef DES_UNROLL
209#define DES_UNROLL
210#endif
211
212/* These default values were supplied by
213 * Peter Gutman <pgut001@cs.auckland.ac.nz>
214 * They are only used if nothing else has been defined */
215#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
216/* Special defines which change the way the code is built depending on the
217 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
218 even newer MIPS CPU's, but at the moment one size fits all for
219 optimization options. Older Sparc's work better with only UNROLL, but
220 there's no way to tell at compile time what it is you're running on */
221
222#if defined( sun ) /* Newer Sparc's */
223# define DES_PTR
224# define DES_RISC1
225# define DES_UNROLL
226#elif defined( __ultrix ) /* Older MIPS */
227# define DES_PTR
228# define DES_RISC2
229# define DES_UNROLL
230#elif defined( __osf1__ ) /* Alpha */
231# define DES_PTR
232# define DES_RISC2
233#elif defined ( _AIX ) /* RS6000 */
234 /* Unknown */
235#elif defined( __hpux ) /* HP-PA */
236 /* Unknown */
237#elif defined( __aux ) /* 68K */
238 /* Unknown */
239#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
240# define DES_UNROLL
241#elif defined( __sgi ) /* Newer MIPS */
242# define DES_PTR
243# define DES_RISC2
244# define DES_UNROLL
245#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
246# define DES_PTR
247# define DES_RISC1
248# define DES_UNROLL
249#endif /* Systems-specific speed defines */
250#endif
251
252#endif /* DES_DEFAULT_OPTIONS */
253#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libssl/crypto/shlib_version b/src/lib/libssl/crypto/shlib_version
new file mode 100644
index 0000000000..0aab0406bf
--- /dev/null
+++ b/src/lib/libssl/crypto/shlib_version
@@ -0,0 +1,2 @@
1major=19
2minor=0