1 | LIBS=../../libcrypto
|
---|
2 |
|
---|
3 | $AESASM=aes_core.c aes_cbc.c
|
---|
4 | IF[{- !$disabled{asm} -}]
|
---|
5 | $AESASM_x86=aes-586.s
|
---|
6 | $AESDEF_x86=AES_ASM
|
---|
7 | $AESASM_x86_sse2=vpaes-x86.s aesni-x86.s
|
---|
8 | $AESDEF_x86_sse2=VPAES_ASM OPENSSL_IA32_SSE2
|
---|
9 |
|
---|
10 | $AESASM_x86_64=\
|
---|
11 | aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s \
|
---|
12 | aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s
|
---|
13 | $AESDEF_x86_64=AES_ASM VPAES_ASM BSAES_ASM
|
---|
14 |
|
---|
15 | $AESASM_ia64=aes_core.c aes_cbc.c aes-ia64.s
|
---|
16 | $AESDEF_ia64=AES_ASM
|
---|
17 |
|
---|
18 | $AESASM_sparcv9=\
|
---|
19 | aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S
|
---|
20 | $AESDEF_sparcv9=AES_ASM
|
---|
21 |
|
---|
22 | $AESASM_mips32=aes_cbc.c aes-mips.S
|
---|
23 | $AESDEF_mips32=AES_ASM
|
---|
24 | $AESASM_mips64=$AESASM_mips32
|
---|
25 | $AESDEF_mips64=$AESDEF_mips32
|
---|
26 |
|
---|
27 | $AESASM_s390x=aes-s390x.S
|
---|
28 | # aes-390x.S implements AES_ctr32_encrypt and AES_xts_[en|de]crypt
|
---|
29 | $AESDEF_s390x=AES_ASM AES_CTR_ASM AES_XTS_ASM
|
---|
30 |
|
---|
31 | $AESASM_armv4=aes_cbc.c aes-armv4.S bsaes-armv7.S aesv8-armx.S
|
---|
32 | $AESDEF_armv4=AES_ASM BSAES_ASM
|
---|
33 | $AESASM_aarch64=aes_core.c aes_cbc.c aesv8-armx.S vpaes-armv8.S
|
---|
34 | $AESDEF_aarch64=VPAES_ASM
|
---|
35 |
|
---|
36 | $AESASM_parisc11=aes_core.c aes_cbc.c aes-parisc.s
|
---|
37 | $AESDEF_parisc11=AES_ASM
|
---|
38 | $AESASM_parisc20_64=$AESASM_parisc11
|
---|
39 | $AESDEF_parisc20_64=$AESDEF_parisc11
|
---|
40 |
|
---|
41 | $AESASM_ppc32=aes_core.c aes_cbc.c aes-ppc.s vpaes-ppc.s aesp8-ppc.s
|
---|
42 | $AESDEF_ppc32=AES_ASM VPAES_ASM
|
---|
43 | $AESASM_ppc64=$AESASM_ppc32
|
---|
44 | $AESDEF_ppc64=$AESDEF_ppc32
|
---|
45 |
|
---|
46 | $AESASM_c64xplus=aes-c64xplus.s aes_cbc.c
|
---|
47 | # aes-c64xplus.s implements AES_ctr32_encrypt
|
---|
48 | $AESDEF_c64xplus=AES_ASM AES_CTR_ASM
|
---|
49 |
|
---|
50 | # Now that we have defined all the arch specific variables, use the
|
---|
51 | # appropriate one, and define the appropriate macros
|
---|
52 | IF[$AESASM_{- $target{asm_arch} -}]
|
---|
53 | $AESASM=$AESASM_{- $target{asm_arch} -}
|
---|
54 | $AESDEF=$AESDEF_{- $target{asm_arch} -}
|
---|
55 | IF[{- !$disabled{sse2} -}]
|
---|
56 | $AESASM=$AESASM $AESASM_{- $target{asm_arch} -}_sse2
|
---|
57 | $AESDEF=$AESDEF $AESDEF_{- $target{asm_arch} -}_sse2
|
---|
58 | ENDIF
|
---|
59 | ENDIF
|
---|
60 | ENDIF
|
---|
61 |
|
---|
62 | $COMMON=aes_misc.c aes_ecb.c $AESASM
|
---|
63 | SOURCE[../../libcrypto]=$COMMON aes_cfb.c aes_ofb.c aes_wrap.c
|
---|
64 | IF[{- !$disabled{'deprecated-3.0'} -}]
|
---|
65 | SOURCE[../../libcrypto]=aes_ige.c
|
---|
66 | ENDIF
|
---|
67 | SOURCE[../../providers/libfips.a]=$COMMON
|
---|
68 |
|
---|
69 | # Implementations are now spread across several libraries, so the defines
|
---|
70 | # need to be applied to all affected libraries and modules.
|
---|
71 | DEFINE[../../libcrypto]=$AESDEF
|
---|
72 | DEFINE[../../providers/libfips.a]=$AESDEF
|
---|
73 | DEFINE[../../providers/libdefault.a]=$AESDEF
|
---|
74 | # We only need to include the AESDEF stuff in the legacy provider when it's a
|
---|
75 | # separate module and it's dynamically linked with libcrypto. Otherwise, it
|
---|
76 | # already gets everything that the static libcrypto.a has, and doesn't need it
|
---|
77 | # added again.
|
---|
78 | IF[{- !$disabled{module} && !$disabled{shared} -}]
|
---|
79 | DEFINE[../providers/liblegacy.a]=$AESDEF
|
---|
80 | ENDIF
|
---|
81 |
|
---|
82 | GENERATE[aes-ia64.s]=asm/aes-ia64.S
|
---|
83 |
|
---|
84 | GENERATE[aes-586.s]=asm/aes-586.pl
|
---|
85 | DEPEND[aes-586.s]=../perlasm/x86asm.pl
|
---|
86 | GENERATE[vpaes-x86.s]=asm/vpaes-x86.pl
|
---|
87 | DEPEND[vpaes-586.s]=../perlasm/x86asm.pl
|
---|
88 | GENERATE[aesni-x86.s]=asm/aesni-x86.pl
|
---|
89 | DEPEND[aesni-586.s]=../perlasm/x86asm.pl
|
---|
90 |
|
---|
91 | GENERATE[aes-x86_64.s]=asm/aes-x86_64.pl
|
---|
92 | GENERATE[vpaes-x86_64.s]=asm/vpaes-x86_64.pl
|
---|
93 | GENERATE[bsaes-x86_64.s]=asm/bsaes-x86_64.pl
|
---|
94 | GENERATE[aesni-x86_64.s]=asm/aesni-x86_64.pl
|
---|
95 | GENERATE[aesni-sha1-x86_64.s]=asm/aesni-sha1-x86_64.pl
|
---|
96 | GENERATE[aesni-sha256-x86_64.s]=asm/aesni-sha256-x86_64.pl
|
---|
97 | GENERATE[aesni-mb-x86_64.s]=asm/aesni-mb-x86_64.pl
|
---|
98 |
|
---|
99 | GENERATE[aes-sparcv9.S]=asm/aes-sparcv9.pl
|
---|
100 | INCLUDE[aes-sparcv9.o]=..
|
---|
101 | GENERATE[aest4-sparcv9.S]=asm/aest4-sparcv9.pl
|
---|
102 | INCLUDE[aest4-sparcv9.o]=..
|
---|
103 | DEPEND[aest4-sparcv9.S]=../perlasm/sparcv9_modes.pl
|
---|
104 | GENERATE[aesfx-sparcv9.S]=asm/aesfx-sparcv9.pl
|
---|
105 | INCLUDE[aesfx-sparcv9.o]=..
|
---|
106 |
|
---|
107 | GENERATE[aes-ppc.s]=asm/aes-ppc.pl
|
---|
108 | GENERATE[vpaes-ppc.s]=asm/vpaes-ppc.pl
|
---|
109 | GENERATE[aesp8-ppc.s]=asm/aesp8-ppc.pl
|
---|
110 |
|
---|
111 | GENERATE[aes-parisc.s]=asm/aes-parisc.pl
|
---|
112 |
|
---|
113 | GENERATE[aes-mips.S]=asm/aes-mips.pl
|
---|
114 | INCLUDE[aes-mips.o]=..
|
---|
115 |
|
---|
116 | GENERATE[aesv8-armx.S]=asm/aesv8-armx.pl
|
---|
117 | INCLUDE[aesv8-armx.o]=..
|
---|
118 | GENERATE[vpaes-armv8.S]=asm/vpaes-armv8.pl
|
---|
119 |
|
---|
120 | GENERATE[aes-armv4.S]=asm/aes-armv4.pl
|
---|
121 | INCLUDE[aes-armv4.o]=..
|
---|
122 | GENERATE[bsaes-armv7.S]=asm/bsaes-armv7.pl
|
---|
123 | INCLUDE[bsaes-armv7.o]=..
|
---|
124 |
|
---|
125 | GENERATE[aes-s390x.S]=asm/aes-s390x.pl
|
---|
126 | INCLUDE[aes-s390x.o]=..
|
---|
127 |
|
---|
128 | GENERATE[aes-c64xplus.S]=asm/aes-c64xplus.pl
|
---|