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