2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../../libcrypto
|
2019-05-28 18:25:08 +08:00
|
|
|
|
2019-06-17 03:03:07 +08:00
|
|
|
$AESASM=aes_core.c aes_cbc.c
|
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$AESASM_x86=aes-586.s
|
2019-06-18 22:04:12 +08:00
|
|
|
$AESDEF_x86=AES_ASM
|
2019-06-17 03:03:07 +08:00
|
|
|
$AESASM_x86_sse2=vpaes-x86.s aesni-x86.s
|
2019-06-18 22:04:12 +08:00
|
|
|
$AESDEF_x86_sse2=VPAES_ASM
|
2019-06-17 03:03:07 +08:00
|
|
|
|
|
|
|
$AESASM_x86_64=\
|
2019-06-18 22:04:12 +08:00
|
|
|
aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s \
|
2019-06-17 03:03:07 +08:00
|
|
|
aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s
|
2019-06-18 22:04:12 +08:00
|
|
|
$AESDEF_x86_64=AES_ASM VPAES_ASM BSAES_ASM
|
2019-06-17 03:03:07 +08:00
|
|
|
|
|
|
|
$AESASM_ia64=aes_core.c aes_cbc.c aes-ia64.s
|
|
|
|
$AESDEF_ia64=AES_ASM
|
|
|
|
|
|
|
|
$AESASM_sparcv9=\
|
|
|
|
aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S
|
|
|
|
$AESDEF_sparcv9=AES_ASM
|
|
|
|
|
|
|
|
$AESASM_mips32=aes_cbc.c aes-mips.S
|
|
|
|
$AESDEF_mips32=AES_ASM
|
|
|
|
$AESASM_mips64=$AESASM_mips32
|
|
|
|
$AESDEF_mips64=$AESDEF_mips32
|
|
|
|
|
|
|
|
$AESASM_s390x=aes-s390x.S
|
|
|
|
# aes-390x.S implements AES_ctr32_encrypt and AES_xts_[en|de]crypt
|
|
|
|
$AESDEF_s390x=AES_ASM AES_CTR_ASM AES_XTS_ASM
|
|
|
|
|
|
|
|
$AESASM_armv4=aes_cbc.c aes-armv4.S bsaes-armv7.S aesv8-armx.S
|
|
|
|
$AESDEF_armv4=AES_ASM BSAES_ASM
|
|
|
|
$AESASM_aarch64=aes_core.c aes_cbc.c aesv8-armx.S vpaes-armv8.S
|
|
|
|
$AESDEF_aarch64=VPAES_ASM
|
|
|
|
|
|
|
|
$AESASM_parisc11=aes_core.c aes_cbc.c aes-parisc.s
|
|
|
|
$AESDEF_parisc11=AES_ASM
|
|
|
|
$AESASM_parisc20_64=$AESASM_parisc11
|
|
|
|
$AESDEF_parisc20_64=$AESDEF_parisc11
|
|
|
|
|
|
|
|
$AESASM_ppc32=aes_core.c aes_cbc.c aes-ppc.s vpaes-ppc.s aesp8-ppc.s
|
|
|
|
$AESDEF_ppc32=AES_ASM VPAES_ASM
|
|
|
|
$AESASM_ppc64=$AESASM_ppc32
|
|
|
|
$AESDEF_ppc64=$AESDEF_ppc32
|
|
|
|
|
|
|
|
$AESASM_c64xplus=aes-c64xplus.s aes_cbc.c
|
|
|
|
# aes-c64xplus.s implements AES_ctr32_encrypt
|
|
|
|
$AESDEF_c64xplus=AES_ASM AES_CTR_ASM
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$AESASM_{- $target{asm_arch} -}]
|
|
|
|
$AESASM=$AESASM_{- $target{asm_arch} -}
|
|
|
|
$AESDEF=$AESDEF_{- $target{asm_arch} -}
|
|
|
|
IF[{- !$disabled{sse2} -}]
|
|
|
|
$AESASM=$AESASM $AESASM_{- $target{asm_arch} -}_sse2
|
|
|
|
$AESDEF=$AESDEF $AESDEF_{- $target{asm_arch} -}_sse2
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
$COMMON=aes_misc.c aes_ecb.c $AESASM
|
2020-03-06 01:50:31 +08:00
|
|
|
SOURCE[../../libcrypto]=$COMMON aes_cfb.c aes_ofb.c aes_wrap.c
|
|
|
|
IF[{- !$disabled{'deprecated-3.0'} -}]
|
|
|
|
SOURCE[../../libcrypto]=aes_ige.c
|
|
|
|
ENDIF
|
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]=$AESDEF
|
2019-10-04 07:38:17 +08:00
|
|
|
DEFINE[../../providers/libfips.a]=$AESDEF
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-03-07 22:07:35 +08:00
|
|
|
GENERATE[aes-ia64.s]=asm/aes-ia64.S
|
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-586.s]=asm/aes-586.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
DEPEND[aes-586.s]=../perlasm/x86asm.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[vpaes-x86.s]=asm/vpaes-x86.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
DEPEND[vpaes-586.s]=../perlasm/x86asm.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aesni-x86.s]=asm/aesni-x86.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
DEPEND[aesni-586.s]=../perlasm/x86asm.pl
|
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-x86_64.s]=asm/aes-x86_64.pl
|
|
|
|
GENERATE[vpaes-x86_64.s]=asm/vpaes-x86_64.pl
|
|
|
|
GENERATE[bsaes-x86_64.s]=asm/bsaes-x86_64.pl
|
|
|
|
GENERATE[aesni-x86_64.s]=asm/aesni-x86_64.pl
|
|
|
|
GENERATE[aesni-sha1-x86_64.s]=asm/aesni-sha1-x86_64.pl
|
|
|
|
GENERATE[aesni-sha256-x86_64.s]=asm/aesni-sha256-x86_64.pl
|
|
|
|
GENERATE[aesni-mb-x86_64.s]=asm/aesni-mb-x86_64.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-sparcv9.S]=asm/aes-sparcv9.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[aes-sparcv9.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aest4-sparcv9.S]=asm/aest4-sparcv9.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[aest4-sparcv9.o]=..
|
2016-03-07 22:07:35 +08:00
|
|
|
DEPEND[aest4-sparcv9.S]=../perlasm/sparcv9_modes.pl
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aesfx-sparcv9.S]=asm/aesfx-sparcv9.pl
|
2016-04-19 19:06:18 +08:00
|
|
|
INCLUDE[aesfx-sparcv9.o]=..
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-ppc.s]=asm/aes-ppc.pl
|
|
|
|
GENERATE[vpaes-ppc.s]=asm/vpaes-ppc.pl
|
|
|
|
GENERATE[aesp8-ppc.s]=asm/aesp8-ppc.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-parisc.s]=asm/aes-parisc.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-mips.S]=asm/aes-mips.pl
|
2016-09-01 16:39:15 +08:00
|
|
|
INCLUDE[aes-mips.o]=..
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aesv8-armx.S]=asm/aesv8-armx.pl
|
2016-03-11 03:05:52 +08:00
|
|
|
INCLUDE[aesv8-armx.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[vpaes-armv8.S]=asm/vpaes-armv8.pl
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-armv4.S]=asm/aes-armv4.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[aes-armv4.o]=..
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[bsaes-armv7.S]=asm/bsaes-armv7.pl
|
2016-03-11 20:44:46 +08:00
|
|
|
INCLUDE[bsaes-armv7.o]=..
|
2016-03-07 22:07:35 +08:00
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-s390x.S]=asm/aes-s390x.pl
|
2017-10-02 17:24:02 +08:00
|
|
|
INCLUDE[aes-s390x.o]=..
|
|
|
|
|
2019-09-13 06:05:26 +08:00
|
|
|
GENERATE[aes-c64xplus.S]=asm/aes-c64xplus.pl
|