2019-06-17 01:57:52 +08:00
|
|
|
$ECASM=
|
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$ECASM_x86=ecp_nistz256.c ecp_nistz256-x86.s
|
|
|
|
$ECDEF_x86=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_x86_64=ecp_nistz256.c ecp_nistz256-x86_64.s x25519-x86_64.s
|
|
|
|
$ECDEF_x86_64=ECP_NISTZ256_ASM X25519_ASM
|
|
|
|
|
|
|
|
$ECASM_ia64=
|
|
|
|
|
|
|
|
$ECASM_sparcv9=ecp_nistz256.c ecp_nistz256-sparcv9.S
|
|
|
|
$ECDEF_sparcv9=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_sparcv8=
|
|
|
|
|
|
|
|
$ECASM_alpha=
|
|
|
|
|
|
|
|
$ECASM_mips32=
|
|
|
|
$ECASM_mips64=
|
|
|
|
|
2019-07-09 16:25:04 +08:00
|
|
|
$ECASM_s390x=ecp_s390x_nistp.c
|
2019-09-19 21:31:27 +08:00
|
|
|
$ECDEF_s390x=S390X_EC_ASM
|
2019-06-17 01:57:52 +08:00
|
|
|
|
|
|
|
$ECASM_armv4=ecp_nistz256.c ecp_nistz256-armv4.S
|
|
|
|
$ECDEF_armv4=ECP_NISTZ256_ASM
|
|
|
|
$ECASM_aarch64=ecp_nistz256.c ecp_nistz256-armv8.S
|
|
|
|
$ECDEF_aarch64=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_parisc11=
|
|
|
|
$ECASM_parisc20_64=
|
|
|
|
|
|
|
|
$ECASM_ppc32=
|
|
|
|
$ECASM_ppc64=ecp_nistz256.c ecp_nistz256-ppc64.s x25519-ppc64.s
|
|
|
|
$ECDEF_ppc64=ECP_NISTZ256_ASM X25519_ASM
|
|
|
|
|
|
|
|
$ECASM_c64xplus=
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$ECASM_{- $target{asm_arch} -}]
|
|
|
|
$ECASM=$ECASM_{- $target{asm_arch} -}
|
|
|
|
$ECDEF=$ECDEF_{- $target{asm_arch} -}
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2019-07-04 00:30:03 +08:00
|
|
|
$COMMON=ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c \
|
|
|
|
ec_curve.c ec_check.c ec_print.c ec_key.c ec_asn1.c \
|
|
|
|
ec2_smpl.c \
|
2016-01-30 06:33:10 +08:00
|
|
|
ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c \
|
2019-07-04 00:30:03 +08:00
|
|
|
ecp_oct.c ec2_oct.c ec_oct.c ec_kmeth.c ecdh_ossl.c \
|
|
|
|
ecdsa_ossl.c ecdsa_sign.c ecdsa_vrf.c curve25519.c \
|
2017-12-06 00:59:42 +08:00
|
|
|
curve448/arch_32/f_impl.c curve448/f_generic.c curve448/scalar.c \
|
|
|
|
curve448/curve448_tables.c curve448/eddsa.c curve448/curve448.c \
|
2020-03-23 12:40:47 +08:00
|
|
|
$ECASM ecdsa_aid.c ec_backend.c ecx_backend.c
|
2020-01-28 00:50:47 +08:00
|
|
|
SOURCE[../../libcrypto]=$COMMON ec_ameth.c ec_pmeth.c ecx_meth.c ecx_key.c \
|
2019-12-15 06:20:53 +08:00
|
|
|
ec_err.c ecdh_kdf.c eck_prn.c ec_evp_lib.c
|
2019-10-04 07:38:17 +08:00
|
|
|
SOURCE[../../providers/libfips.a]=$COMMON
|
2019-10-15 10:35:41 +08:00
|
|
|
|
|
|
|
# Implementations are now spread across several libraries, so the defines
|
|
|
|
# need to be applied to all affected libraries and modules.
|
|
|
|
DEFINE[../../libcrypto]=$ECDEF
|
2019-10-04 07:38:17 +08:00
|
|
|
DEFINE[../../providers/libfips.a]=$ECDEF
|
2019-10-15 10:35:41 +08:00
|
|
|
DEFINE[../../providers/libimplementations.a]=$ECDEF
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-x86.s]=asm/ecp_nistz256-x86.pl
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-x86_64.s]=asm/ecp_nistz256-x86_64.pl
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-avx2.s]=asm/ecp_nistz256-avx2.pl
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-sparcv9.S]=asm/ecp_nistz256-sparcv9.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[ecp_nistz256-sparcv9.o]=..
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2019-11-01 04:41:30 +08:00
|
|
|
INCLUDE[ecp_s390x_nistp.o]=..
|
|
|
|
INCLUDE[ecx_meth.o]=..
|
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-armv4.S]=asm/ecp_nistz256-armv4.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[ecp_nistz256-armv4.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-armv8.S]=asm/ecp_nistz256-armv8.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[ecp_nistz256-armv8.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[ecp_nistz256-ppc64.s]=asm/ecp_nistz256-ppc64.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[x25519-x86_64.s]=asm/x25519-x86_64.pl
|
|
|
|
GENERATE[x25519-ppc64.s]=asm/x25519-ppc64.pl
|
2018-02-19 22:09:33 +08:00
|
|
|
|
2017-11-29 00:19:57 +08:00
|
|
|
INCLUDE[curve448/arch_32/f_impl.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/f_generic.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/scalar.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/curve448_tables.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/eddsa.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/curve448.o]=curve448/arch_32 curve448
|