2000-11-15 07:45:23 +00:00
|
|
|
# $FreeBSD$
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2015-06-15 19:28:07 +00:00
|
|
|
SHLIBDIR?= /lib
|
2006-07-29 19:41:41 +00:00
|
|
|
SUBDIR= engines
|
2006-03-18 11:01:06 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2019-09-05 14:13:08 +00:00
|
|
|
PACKAGE= runtime
|
2000-01-14 05:49:29 +00:00
|
|
|
LIB= crypto
|
2018-10-25 13:37:57 +00:00
|
|
|
SHLIB_MAJOR= 111
|
2018-09-13 23:51:54 +00:00
|
|
|
VERSION_MAP= ${.CURDIR}/Version.map
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2004-12-21 09:33:47 +00:00
|
|
|
NO_LINT=
|
2002-09-25 09:58:00 +00:00
|
|
|
|
2003-02-10 19:57:56 +00:00
|
|
|
.include "Makefile.man"
|
2015-11-06 17:39:17 +00:00
|
|
|
.include "Makefile.inc"
|
|
|
|
|
2018-11-20 21:10:04 +00:00
|
|
|
SRCS= cpt_err.c cryptlib.c ctype.c cversion.c ex_data.c getenv.c init.c
|
|
|
|
SRCS+= mem.c mem_dbg.c mem_sec.c o_dir.c o_fips.c o_fopen.c o_init.c
|
|
|
|
SRCS+= o_str.c o_time.c threads_pthread.c uid.c
|
2018-09-22 02:43:24 +00:00
|
|
|
.if defined(ASM_aarch64)
|
2018-09-22 02:23:42 +00:00
|
|
|
SRCS+= arm64cpuid.S armcap.c
|
2018-09-22 06:50:56 +00:00
|
|
|
ACFLAGS.arm64cpuid.S= -march=armv8-a+crypto
|
2018-09-22 02:23:42 +00:00
|
|
|
.elif defined(ASM_amd64)
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= x86_64cpuid.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= armv4cpuid.S armcap.c
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= x86cpuid.S
|
2012-07-12 19:30:53 +00:00
|
|
|
.else
|
|
|
|
SRCS+= mem_clr.c
|
|
|
|
.endif
|
2003-01-28 22:58:14 +00:00
|
|
|
|
|
|
|
# aes
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes_cbc.c aes_cfb.c aes_ecb.c aes_ige.c aes_misc.c aes_ofb.c aes_wrap.c
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes_core.c aesv8-armx.S vpaes-armv8.S
|
2018-09-22 06:50:56 +00:00
|
|
|
ACFLAGS.aesv8-armx.S= -march=armv8-a+crypto
|
2018-09-22 02:23:42 +00:00
|
|
|
.elif defined(ASM_amd64)
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes_core.c aesni-mb-x86_64.S aesni-sha1-x86_64.S aesni-sha256-x86_64.S
|
|
|
|
SRCS+= aesni-x86_64.S vpaes-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes-armv4.S aesv8-armx.S bsaes-armv7.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes_core.c aesni-x86.S vpaes-x86.S
|
2012-07-12 19:30:53 +00:00
|
|
|
.else
|
2019-09-10 21:08:17 +00:00
|
|
|
SRCS+= aes_core.c
|
2012-07-12 19:30:53 +00:00
|
|
|
.endif
|
2018-09-19 00:07:09 +00:00
|
|
|
|
|
|
|
# aria
|
|
|
|
SRCS+= aria.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# asn1
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= a_bitstr.c a_d2i_fp.c a_digest.c a_dup.c a_gentm.c a_i2d_fp.c
|
|
|
|
SRCS+= a_int.c a_mbstr.c a_object.c a_octet.c a_print.c a_sign.c a_strex.c
|
|
|
|
SRCS+= a_strnid.c a_time.c a_type.c a_utctm.c a_utf8.c a_verify.c
|
|
|
|
SRCS+= ameth_lib.c asn1_err.c asn1_gen.c asn1_item_list.c asn1_lib.c
|
|
|
|
SRCS+= asn1_par.c asn_mime.c asn_moid.c asn_mstbl.c asn_pack.c bio_asn1.c
|
|
|
|
SRCS+= bio_ndef.c d2i_pr.c d2i_pu.c evp_asn1.c f_int.c f_string.c i2d_pr.c
|
|
|
|
SRCS+= i2d_pu.c n_pkey.c nsseq.c p5_pbe.c p5_pbev2.c p5_scrypt.c p8_pkey.c
|
|
|
|
SRCS+= t_bitst.c t_pkey.c t_spki.c tasn_dec.c tasn_enc.c tasn_fre.c
|
|
|
|
SRCS+= tasn_new.c tasn_prn.c tasn_scn.c tasn_typ.c tasn_utl.c x_algor.c
|
|
|
|
SRCS+= x_bignum.c x_info.c x_int64.c x_long.c x_pkey.c x_sig.c x_spki.c
|
|
|
|
SRCS+= x_val.c
|
|
|
|
|
|
|
|
# async
|
|
|
|
SRCS+= async.c async_err.c async_posix.c async_wait.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# bf
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= bf_cfb64.c bf_ecb.c bf_ofb64.c bf_skey.c
|
|
|
|
.if defined(ASM_i386)
|
|
|
|
SRCS+= bf-586.S
|
|
|
|
.else
|
|
|
|
SRCS+= bf_enc.c
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# bio
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= b_addr.c b_dump.c b_print.c b_sock.c b_sock2.c bf_buff.c bf_lbuf.c
|
|
|
|
SRCS+= bf_nbio.c bf_null.c bio_cb.c bio_err.c bio_lib.c bio_meth.c
|
|
|
|
SRCS+= bss_acpt.c bss_bio.c bss_conn.c bss_dgram.c bss_fd.c bss_file.c
|
|
|
|
SRCS+= bss_log.c bss_mem.c bss_null.c bss_sock.c
|
|
|
|
|
|
|
|
# blake2
|
|
|
|
SRCS+= blake2b.c blake2s.c m_blake2b.c m_blake2s.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# bn
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_dh.c bn_div.c
|
|
|
|
SRCS+= bn_err.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_intern.c bn_kron.c
|
|
|
|
SRCS+= bn_lib.c bn_mod.c bn_mont.c bn_mpi.c bn_mul.c bn_nist.c bn_prime.c
|
|
|
|
SRCS+= bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c bn_sqrt.c
|
|
|
|
SRCS+= bn_srp.c bn_word.c bn_x931p.c
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= armv8-mont.S bn_asm.c
|
|
|
|
.elif defined(ASM_amd64)
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= rsaz-avx2.S rsaz-x86_64.S rsaz_exp.c x86_64-gcc.c x86_64-gf2m.S
|
|
|
|
SRCS+= x86_64-mont.S x86_64-mont5.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= armv4-gf2m.S armv4-mont.S bn_asm.c
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= bn-586.S co-586.S x86-gf2m.S x86-mont.S
|
2004-03-23 08:32:29 +00:00
|
|
|
.else
|
|
|
|
SRCS+= bn_asm.c
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# buffer
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= buf_err.c buffer.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# camellia
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_amd64)
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= cmll-x86_64.S cmll_misc.c
|
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= cmll-x86.S
|
2004-03-23 08:32:29 +00:00
|
|
|
.else
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= camellia.c cmll_cbc.c cmll_misc.c
|
2004-03-23 08:32:29 +00:00
|
|
|
.endif
|
2012-07-12 19:30:53 +00:00
|
|
|
|
|
|
|
# cast
|
|
|
|
SRCS+= c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c
|
2018-09-19 00:07:09 +00:00
|
|
|
|
|
|
|
# chacha
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= chacha-armv8.S
|
|
|
|
.elif defined(ASM_amd64)
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= chacha-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= chacha-armv4.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= chacha-x86.S
|
2018-09-19 00:07:09 +00:00
|
|
|
.else
|
|
|
|
SRCS+= chacha_enc.c
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# cmac
|
|
|
|
SRCS+= cm_ameth.c cm_pmeth.c cmac.c
|
|
|
|
|
|
|
|
# cms
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= cms_asn1.c cms_att.c cms_dd.c cms_enc.c cms_env.c cms_err.c
|
|
|
|
SRCS+= cms_ess.c cms_io.c cms_kari.c cms_lib.c cms_pwri.c cms_sd.c
|
|
|
|
SRCS+= cms_smime.c
|
2007-05-09 19:37:02 +00:00
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# comp
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= c_zlib.c comp_err.c comp_lib.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# conf
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c
|
|
|
|
SRCS+= conf_sap.c conf_ssl.c
|
|
|
|
|
|
|
|
# ct
|
|
|
|
SRCS+= ct_b64.c ct_err.c ct_log.c ct_oct.c ct_policy.c ct_prn.c ct_sct.c
|
|
|
|
SRCS+= ct_sct_ctx.c ct_vfy.c ct_x509v3.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# des
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c ecb3_enc.c
|
|
|
|
SRCS+= ecb_enc.c fcrypt.c ofb64ede.c ofb64enc.c ofb_enc.c pcbc_enc.c
|
|
|
|
SRCS+= qud_cksm.c rand_key.c set_key.c str2key.c xcbc_enc.c
|
|
|
|
.if defined(ASM_i386)
|
|
|
|
SRCS+= crypt586.S des-586.S
|
|
|
|
.else
|
|
|
|
SRCS+= des_enc.c fcrypt_b.c
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# dh
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= dh_ameth.c dh_asn1.c dh_check.c dh_depr.c dh_err.c dh_gen.c dh_kdf.c
|
|
|
|
SRCS+= dh_key.c dh_lib.c dh_meth.c dh_pmeth.c dh_prn.c dh_rfc5114.c
|
|
|
|
SRCS+= dh_rfc7919.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# dsa
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= dsa_ameth.c dsa_asn1.c dsa_depr.c dsa_err.c dsa_gen.c dsa_key.c
|
|
|
|
SRCS+= dsa_lib.c dsa_meth.c dsa_ossl.c dsa_pmeth.c dsa_prn.c dsa_sign.c
|
|
|
|
SRCS+= dsa_vrf.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2000-11-13 02:21:38 +00:00
|
|
|
# dso
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= dso_dlfcn.c dso_err.c dso_lib.c
|
2003-01-28 22:58:14 +00:00
|
|
|
|
|
|
|
# ec
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= curve25519.c curve448.c curve448_tables.c ec2_oct.c ec2_smpl.c
|
|
|
|
SRCS+= ec_ameth.c ec_asn1.c ec_check.c ec_curve.c ec_cvt.c ec_err.c
|
|
|
|
SRCS+= ec_key.c ec_kmeth.c ec_lib.c ec_mult.c ec_oct.c ec_pmeth.c
|
|
|
|
SRCS+= ec_print.c ecdh_kdf.c ecdh_ossl.c ecdsa_ossl.c ecdsa_sign.c
|
|
|
|
SRCS+= ecdsa_vrf.c eck_prn.c ecp_mont.c ecp_nist.c ecp_oct.c ecp_smpl.c
|
|
|
|
SRCS+= ecx_meth.c eddsa.c f_generic.c f_impl.c scalar.c
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= ecp_nistz256-armv8.S ecp_nistz256.c
|
|
|
|
.elif defined(ASM_amd64)
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= ecp_nistz256-x86_64.S ecp_nistz256.c x25519-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= ecp_nistz256-armv4.S ecp_nistz256.c
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
2018-09-20 22:45:42 +00:00
|
|
|
SRCS+= ecp_nistz256-x86.S ecp_nistz256.c
|
2015-10-30 20:51:33 +00:00
|
|
|
.endif
|
2006-07-29 19:41:41 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# engine
|
2018-12-12 21:56:47 +00:00
|
|
|
SRCS+= eng_all.c eng_cnf.c eng_ctrl.c eng_devcrypto.c eng_dyn.c eng_err.c
|
|
|
|
SRCS+= eng_fat.c eng_init.c eng_lib.c eng_list.c eng_openssl.c eng_pkey.c
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= eng_rdrand.c eng_table.c tb_asnmth.c tb_cipher.c tb_dh.c tb_digest.c
|
|
|
|
SRCS+= tb_dsa.c tb_eckey.c tb_pkmeth.c tb_rand.c tb_rsa.c
|
2000-11-13 02:21:38 +00:00
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# err
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= err.c err_all.c err_prn.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# evp
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_allc.c c_alld.c cmeth_lib.c
|
|
|
|
SRCS+= digest.c e_aes.c e_aes_cbc_hmac_sha1.c e_aes_cbc_hmac_sha256.c
|
|
|
|
SRCS+= e_aria.c e_bf.c e_camellia.c e_cast.c e_chacha20_poly1305.c e_des.c
|
|
|
|
SRCS+= e_des3.c e_idea.c e_null.c e_old.c e_rc2.c e_rc4.c e_rc4_hmac_md5.c
|
|
|
|
SRCS+= e_rc5.c e_seed.c e_sm4.c e_xcbc_d.c encode.c evp_cnf.c evp_enc.c
|
|
|
|
SRCS+= evp_err.c evp_key.c evp_lib.c evp_pbe.c evp_pkey.c m_md4.c m_md5.c
|
|
|
|
SRCS+= m_md5_sha1.c m_mdc2.c m_null.c m_ripemd.c m_sha1.c m_sha3.c
|
|
|
|
SRCS+= m_sigver.c m_wp.c names.c p5_crpt.c p5_crpt2.c p_dec.c p_enc.c
|
|
|
|
SRCS+= p_lib.c p_open.c p_seal.c p_sign.c p_verify.c pbe_scrypt.c
|
|
|
|
SRCS+= pmeth_fn.c pmeth_gn.c pmeth_lib.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# hmac
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= hm_ameth.c hm_pmeth.c hmac.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2000-06-24 06:50:58 +00:00
|
|
|
# idea
|
2003-01-28 22:58:14 +00:00
|
|
|
SRCS+= i_cbc.c i_cfb64.c i_ecb.c i_ofb64.c i_skey.c
|
2000-06-24 06:50:58 +00:00
|
|
|
|
2018-09-19 00:07:09 +00:00
|
|
|
# kdf
|
|
|
|
SRCS+= hkdf.c kdf_err.c scrypt.c tls1_prf.c
|
2003-01-28 22:58:14 +00:00
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# lhash
|
|
|
|
SRCS+= lh_stats.c lhash.c
|
|
|
|
|
2000-11-13 02:21:38 +00:00
|
|
|
# md4
|
|
|
|
SRCS+= md4_dgst.c md4_one.c
|
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# md5
|
|
|
|
SRCS+= md5_dgst.c md5_one.c
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_amd64)
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= md5-x86_64.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= md5-586.S
|
2004-03-23 08:32:29 +00:00
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# mdc2
|
2003-01-28 22:58:14 +00:00
|
|
|
SRCS+= mdc2_one.c mdc2dgst.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# modes
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= cbc128.c ccm128.c cfb128.c ctr128.c cts128.c gcm128.c ocb128.c
|
|
|
|
SRCS+= ofb128.c wrap128.c xts128.c
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= ghashv8-armx.S
|
2018-09-22 06:50:56 +00:00
|
|
|
ACFLAGS.ghashv8-armx.S= -march=armv8-a+crypto
|
2018-09-22 02:23:42 +00:00
|
|
|
.elif defined(ASM_amd64)
|
2015-10-30 20:51:33 +00:00
|
|
|
SRCS+= aesni-gcm-x86_64.S ghash-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= ghash-armv4.S ghashv8-armx.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= ghash-x86.S
|
2012-07-12 19:30:53 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# objects
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c obj_xref.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# ocsp
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= ocsp_asn.c ocsp_cl.c ocsp_err.c ocsp_ext.c ocsp_ht.c ocsp_lib.c
|
|
|
|
SRCS+= ocsp_prn.c ocsp_srv.c ocsp_vfy.c v3_ocsp.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# pem
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= pem_all.c pem_err.c pem_info.c pem_lib.c pem_oth.c pem_pk8.c
|
|
|
|
SRCS+= pem_pkey.c pem_sign.c pem_x509.c pem_xaux.c pvkfmt.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# pkcs12
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
|
|
|
|
SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c p12_npas.c p12_p8d.c
|
|
|
|
SRCS+= p12_p8e.c p12_sbag.c p12_utl.c pk12err.c
|
2003-01-28 22:58:14 +00:00
|
|
|
|
|
|
|
# pkcs7
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= bio_pk7.c pk7_asn1.c pk7_attr.c pk7_doit.c pk7_lib.c pk7_mime.c
|
|
|
|
SRCS+= pk7_smime.c pkcs7err.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2018-09-19 00:07:09 +00:00
|
|
|
# poly1305
|
|
|
|
SRCS+= poly1305.c poly1305_ameth.c poly1305_pmeth.c
|
2018-09-22 23:02:45 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= poly1305-armv8.S
|
|
|
|
.elif defined(ASM_amd64)
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= poly1305-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= poly1305-armv4.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= poly1305-x86.S
|
2018-09-19 00:07:09 +00:00
|
|
|
.endif
|
2006-07-29 19:41:41 +00:00
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# rand
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= drbg_ctr.c drbg_lib.c rand_err.c rand_lib.c rand_unix.c randfile.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# rc2
|
2003-01-28 22:58:14 +00:00
|
|
|
SRCS+= rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# rc4
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_amd64)
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= rc4-md5-x86_64.S rc4-x86_64.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= rc4-586.S
|
2004-03-23 08:32:29 +00:00
|
|
|
.else
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= rc4_enc.c rc4_skey.c
|
2004-03-23 08:32:29 +00:00
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# rc5
|
2018-09-20 21:36:52 +00:00
|
|
|
SRCS+= rc5_ecb.c rc5_skey.c rc5cfb64.c rc5ofb64.c
|
|
|
|
.if defined(ASM_i386)
|
|
|
|
SRCS+= rc5-586.S
|
|
|
|
.else
|
|
|
|
SRCS+= rc5_enc.c
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
# ripemd
|
|
|
|
SRCS+= rmd_dgst.c rmd_one.c
|
2018-09-20 21:36:52 +00:00
|
|
|
.if defined(ASM_i386)
|
|
|
|
SRCS+= rmd-586.S
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2000-01-16 05:19:27 +00:00
|
|
|
# rsa
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= rsa_ameth.c rsa_asn1.c rsa_chk.c rsa_crpt.c rsa_depr.c rsa_err.c
|
|
|
|
SRCS+= rsa_gen.c rsa_lib.c rsa_meth.c rsa_mp.c rsa_none.c rsa_oaep.c
|
|
|
|
SRCS+= rsa_ossl.c rsa_pk1.c rsa_pmeth.c rsa_prn.c rsa_pss.c rsa_saos.c
|
|
|
|
SRCS+= rsa_sign.c rsa_ssl.c rsa_x931.c rsa_x931g.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# seed
|
|
|
|
SRCS+= seed.c seed_cbc.c seed_cfb.c seed_ecb.c seed_ofb.c
|
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# sha
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= sha1_one.c sha1dgst.c sha256.c sha512.c
|
2018-09-22 02:23:42 +00:00
|
|
|
.if defined(ASM_aarch64)
|
|
|
|
SRCS+= keccak1600-armv8.S sha1-armv8.S sha256-armv8.S sha512-armv8.S
|
|
|
|
.elif defined(ASM_amd64)
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= keccak1600-x86_64.S sha1-mb-x86_64.S sha1-x86_64.S
|
|
|
|
SRCS+= sha256-mb-x86_64.S sha256-x86_64.S sha512-x86_64.S
|
2018-09-22 02:43:24 +00:00
|
|
|
.elif defined(ASM_arm)
|
|
|
|
SRCS+= keccak1600-armv4.S sha1-armv4-large.S sha256-armv4.S sha512-armv4.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= keccak1600.c sha1-586.S sha256-586.S sha512-586.S
|
2018-09-22 05:30:55 +00:00
|
|
|
.else
|
|
|
|
SRCS+= keccak1600.c
|
2004-03-23 08:32:29 +00:00
|
|
|
.endif
|
2018-09-19 00:07:09 +00:00
|
|
|
|
|
|
|
# siphash
|
|
|
|
SRCS+= siphash.c siphash_ameth.c siphash_pmeth.c
|
|
|
|
|
|
|
|
# sm2
|
|
|
|
SRCS+= sm2_crypt.c sm2_err.c sm2_pmeth.c sm2_sign.c
|
|
|
|
|
|
|
|
# sm3
|
|
|
|
SRCS+= m_sm3.c sm3.c
|
|
|
|
|
|
|
|
# sm4
|
|
|
|
SRCS+= sm4.c
|
2000-01-14 05:49:29 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# srp
|
|
|
|
SRCS+= srp_lib.c srp_vfy.c
|
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# stack
|
|
|
|
SRCS+= stack.c
|
2018-09-19 00:07:09 +00:00
|
|
|
|
|
|
|
# store
|
|
|
|
SRCS+= loader_file.c store_err.c store_init.c store_lib.c store_register.c
|
|
|
|
SRCS+= store_strings.c
|
2006-07-29 19:41:41 +00:00
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
# ts
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= ts_asn1.c ts_conf.c ts_err.c ts_lib.c ts_req_print.c ts_req_utils.c
|
|
|
|
SRCS+= ts_rsp_print.c ts_rsp_sign.c ts_rsp_utils.c ts_rsp_verify.c
|
|
|
|
SRCS+= ts_verify_ctx.c
|
2003-01-28 22:58:14 +00:00
|
|
|
|
2000-01-14 05:49:29 +00:00
|
|
|
# txt_db
|
|
|
|
SRCS+= txt_db.c
|
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# ui
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= ui_err.c ui_lib.c ui_null.c ui_openssl.c ui_util.c
|
2012-07-12 19:30:53 +00:00
|
|
|
|
|
|
|
# whrlpool
|
|
|
|
SRCS+= wp_dgst.c
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_amd64)
|
2012-07-12 19:30:53 +00:00
|
|
|
SRCS+= wp-x86_64.S
|
2018-09-20 21:36:52 +00:00
|
|
|
.elif defined(ASM_i386)
|
|
|
|
SRCS+= wp-mmx.S wp_block.c
|
2012-07-12 19:30:53 +00:00
|
|
|
.else
|
|
|
|
SRCS+= wp_block.c
|
|
|
|
.endif
|
2001-02-25 21:42:12 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# x509
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= by_dir.c by_file.c t_crl.c t_req.c t_x509.c x509_att.c x509_cmp.c
|
|
|
|
SRCS+= x509_d2.c x509_def.c x509_err.c x509_ext.c x509_lu.c x509_meth.c
|
|
|
|
SRCS+= x509_obj.c x509_r2x.c x509_req.c x509_set.c x509_trs.c x509_txt.c
|
|
|
|
SRCS+= x509_v3.c x509_vfy.c x509_vpm.c x509cset.c x509name.c x509rset.c
|
|
|
|
SRCS+= x509spki.c x509type.c x_all.c x_attrib.c x_crl.c x_exten.c x_name.c
|
|
|
|
SRCS+= x_pubkey.c x_req.c x_x509.c x_x509a.c
|
2000-03-02 06:06:35 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
# x509v3
|
2018-09-19 00:07:09 +00:00
|
|
|
SRCS+= pcy_cache.c pcy_data.c pcy_lib.c pcy_map.c pcy_node.c pcy_tree.c
|
|
|
|
SRCS+= v3_addr.c v3_admis.c v3_akey.c v3_akeya.c v3_alt.c v3_asid.c
|
|
|
|
SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_cpols.c v3_crld.c v3_enum.c
|
|
|
|
SRCS+= v3_extku.c v3_genn.c v3_ia5.c v3_info.c v3_int.c v3_lib.c v3_ncons.c
|
|
|
|
SRCS+= v3_pci.c v3_pcia.c v3_pcons.c v3_pku.c v3_pmaps.c v3_prn.c v3_purp.c
|
|
|
|
SRCS+= v3_skey.c v3_sxnet.c v3_tlsf.c v3_utl.c v3err.c
|
|
|
|
|
|
|
|
INCS= aes.h asn1.h asn1_mac.h asn1err.h asn1t.h async.h asyncerr.h bio.h
|
|
|
|
INCS+= bioerr.h blowfish.h bn.h bnerr.h buffer.h buffererr.h camellia.h
|
|
|
|
INCS+= cast.h cmac.h cms.h cmserr.h comp.h comperr.h conf.h conf_api.h
|
|
|
|
INCS+= conferr.h crypto.h cryptoerr.h ct.h cterr.h des.h dh.h dherr.h dsa.h
|
|
|
|
INCS+= dsaerr.h dtls1.h e_os2.h ebcdic.h ec.h ecdh.h ecdsa.h ecerr.h
|
|
|
|
INCS+= engine.h engineerr.h err.h evp.h evperr.h hmac.h idea.h kdf.h
|
|
|
|
INCS+= kdferr.h lhash.h md2.h md4.h md5.h mdc2.h modes.h obj_mac.h
|
|
|
|
INCS+= objects.h objectserr.h ocsp.h ocsperr.h opensslconf.h opensslv.h
|
|
|
|
INCS+= ossl_typ.h pem.h pem2.h pemerr.h pkcs12.h pkcs12err.h pkcs7.h
|
|
|
|
INCS+= pkcs7err.h rand.h rand_drbg.h randerr.h rc2.h rc4.h rc5.h ripemd.h
|
|
|
|
INCS+= rsa.h rsaerr.h safestack.h seed.h sha.h srp.h srtp.h ssl.h ssl2.h
|
|
|
|
INCS+= ssl3.h sslerr.h stack.h store.h storeerr.h symhacks.h tls1.h ts.h
|
|
|
|
INCS+= tserr.h txt_db.h ui.h uierr.h whrlpool.h x509.h x509_vfy.h x509err.h
|
|
|
|
INCS+= x509v3.h x509v3err.h
|
|
|
|
|
2002-07-22 10:59:22 +00:00
|
|
|
INCSDIR= ${INCLUDEDIR}/openssl
|
2001-03-04 06:51:51 +00:00
|
|
|
|
2018-09-20 00:20:04 +00:00
|
|
|
LIBADD= pthread
|
|
|
|
|
2018-09-22 04:32:44 +00:00
|
|
|
CFLAGS+= -I${LCRYPTO_SRC}/crypto
|
2018-09-19 00:07:09 +00:00
|
|
|
CFLAGS+= -I${LCRYPTO_SRC}/crypto/ec/curve448
|
|
|
|
CFLAGS+= -I${LCRYPTO_SRC}/crypto/ec/curve448/arch_32
|
2012-07-12 19:30:53 +00:00
|
|
|
CFLAGS+= -I${LCRYPTO_SRC}/crypto/modes
|
2018-09-19 00:07:09 +00:00
|
|
|
CFLAGS+= -I${.OBJDIR}
|
2012-07-12 19:30:53 +00:00
|
|
|
|
|
|
|
.if !empty(SRCS:M*.S)
|
|
|
|
ACFLAGS+= -Wa,--noexecstack
|
|
|
|
.endif
|
2011-02-15 22:03:09 +00:00
|
|
|
|
2018-09-25 22:15:47 +00:00
|
|
|
SRCS+= buildinf.h
|
2018-09-19 00:07:09 +00:00
|
|
|
|
|
|
|
CLEANDIRS= openssl
|
2018-09-25 22:14:52 +00:00
|
|
|
CLEANFILES= buildinf.h opensslconf.h opensslconf.h.tmp
|
2003-02-27 23:07:26 +00:00
|
|
|
|
2018-10-05 20:49:54 +00:00
|
|
|
buildinf.h: Makefile
|
2018-09-19 00:07:09 +00:00
|
|
|
( echo "/*"; \
|
|
|
|
echo " * WARNING: do not edit!"; \
|
|
|
|
echo " * Generated by ${.ALLSRC}"; \
|
|
|
|
echo " */"; \
|
|
|
|
echo "#define PLATFORM \"platform: FreeBSD-${MACHINE_ARCH}\""; \
|
|
|
|
echo "#define DATE \"built on: reproducible build, date unspecified\""; \
|
|
|
|
echo "static const char compiler_flags[] = \"compiler: ${COMPILER_TYPE}\";" ) \
|
|
|
|
> ${.TARGET}
|
|
|
|
|
2018-09-25 22:15:47 +00:00
|
|
|
beforedepend: openssl_opensslconf.h
|
|
|
|
beforebuild: openssl_opensslconf.h
|
|
|
|
|
|
|
|
openssl_opensslconf.h: opensslconf.h
|
2018-09-19 00:07:09 +00:00
|
|
|
mkdir -p openssl
|
2018-09-25 22:15:47 +00:00
|
|
|
ln -fs ${.OBJDIR}/${.ALLSRC} openssl/${.ALLSRC}
|
2003-02-27 23:07:26 +00:00
|
|
|
|
2018-09-21 22:26:00 +00:00
|
|
|
opensslconf.h: opensslconf.h.in
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_${MACHINE_CPUARCH})
|
|
|
|
sed 's/%%ASM%%//; /%%NO_ASM%%/d' ${.ALLSRC} > ${.TARGET}.tmp
|
|
|
|
.else
|
|
|
|
sed '/%%ASM%%/d; s/%%NO_ASM%%//' ${.ALLSRC} > ${.TARGET}.tmp
|
|
|
|
.endif
|
2018-09-19 00:07:09 +00:00
|
|
|
mv -f ${.TARGET}.tmp ${.TARGET}
|
2003-02-27 23:07:26 +00:00
|
|
|
|
2003-01-28 22:58:14 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
2018-09-19 00:07:09 +00:00
|
|
|
PICFLAG+= -DOPENSSL_PIC
|
|
|
|
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_${MACHINE_CPUARCH})
|
2015-11-06 17:39:17 +00:00
|
|
|
.PATH: ${.CURDIR}/${MACHINE_CPUARCH}
|
2016-08-17 22:13:39 +00:00
|
|
|
.if defined(ASM_amd64)
|
|
|
|
.PATH: ${LCRYPTO_SRC}/crypto/bn/asm
|
|
|
|
.endif
|
2004-04-14 23:26:26 +00:00
|
|
|
.endif
|
|
|
|
|
2012-07-12 19:30:53 +00:00
|
|
|
.PATH: ${LCRYPTO_SRC}/crypto \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/aes \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/aria \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/asn1 \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/async \
|
|
|
|
${LCRYPTO_SRC}/crypto/async/arch \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/bf \
|
|
|
|
${LCRYPTO_SRC}/crypto/bio \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/blake2 \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/bn \
|
|
|
|
${LCRYPTO_SRC}/crypto/buffer \
|
2007-05-09 19:37:02 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/camellia \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/cast \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/chacha \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/cmac \
|
2009-06-14 19:46:18 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/cms \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/comp \
|
|
|
|
${LCRYPTO_SRC}/crypto/conf \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/ct \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/des \
|
|
|
|
${LCRYPTO_SRC}/crypto/dh \
|
|
|
|
${LCRYPTO_SRC}/crypto/dsa \
|
|
|
|
${LCRYPTO_SRC}/crypto/dso \
|
|
|
|
${LCRYPTO_SRC}/crypto/ec \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/ec/curve448 \
|
|
|
|
${LCRYPTO_SRC}/crypto/ec/curve448/arch_32 \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/engine \
|
|
|
|
${LCRYPTO_SRC}/crypto/err \
|
|
|
|
${LCRYPTO_SRC}/crypto/evp \
|
|
|
|
${LCRYPTO_SRC}/crypto/hmac \
|
2013-04-27 05:44:39 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/idea \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/kdf \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/lhash \
|
|
|
|
${LCRYPTO_SRC}/crypto/md4 \
|
|
|
|
${LCRYPTO_SRC}/crypto/md5 \
|
|
|
|
${LCRYPTO_SRC}/crypto/mdc2 \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/modes \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/objects \
|
|
|
|
${LCRYPTO_SRC}/crypto/ocsp \
|
|
|
|
${LCRYPTO_SRC}/crypto/pem \
|
|
|
|
${LCRYPTO_SRC}/crypto/pkcs12 \
|
|
|
|
${LCRYPTO_SRC}/crypto/pkcs7 \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/poly1305 \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/rand \
|
|
|
|
${LCRYPTO_SRC}/crypto/rc2 \
|
|
|
|
${LCRYPTO_SRC}/crypto/rc4 \
|
|
|
|
${LCRYPTO_SRC}/crypto/rc5 \
|
|
|
|
${LCRYPTO_SRC}/crypto/ripemd \
|
|
|
|
${LCRYPTO_SRC}/crypto/rsa \
|
2009-06-14 19:46:18 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/seed \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/sha \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/siphash \
|
|
|
|
${LCRYPTO_SRC}/crypto/sm2 \
|
|
|
|
${LCRYPTO_SRC}/crypto/sm3 \
|
|
|
|
${LCRYPTO_SRC}/crypto/sm4 \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/srp \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/stack \
|
2018-09-19 00:07:09 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/store \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/ts \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/txt_db \
|
|
|
|
${LCRYPTO_SRC}/crypto/ui \
|
2012-07-12 19:30:53 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/whrlpool \
|
2003-01-28 22:58:14 +00:00
|
|
|
${LCRYPTO_SRC}/crypto/x509 \
|
|
|
|
${LCRYPTO_SRC}/crypto/x509v3 \
|
2020-01-22 01:15:57 +00:00
|
|
|
${LCRYPTO_SRC}/include/openssl
|