c45ea00f163b26f927db7259f935fb813458da34
[openssl.git] / providers / implementations / ciphers / build.info
1 # We make separate GOAL variables for each algorithm, to make it easy to
2 # switch each to the Legacy provider when needed.
3 #
4 # $TDES_1_GOAL and $TDES_2_GOAL separate FIPSable and non-FIPSable TDES.
5 # The latter may become legacy sooner, so it's comfortable to have two
6 # variables already now, to switch the non-FIPSable TDES to legacy if needed.
7
8 $COMMON_GOAL=../../libcommon.a
9
10 $NULL_GOAL=../../libimplementations.a
11 $AES_GOAL=../../libimplementations.a
12 $TDES_1_GOAL=../../libimplementations.a
13 $TDES_2_GOAL=../../libimplementations.a
14 $DES_GOAL=../../libimplementations.a
15 $ARIA_GOAL=../../libimplementations.a
16 $CAMELLIA_GOAL=../../libimplementations.a
17 $BLOWFISH_GOAL=../../libimplementations.a
18 $IDEA_GOAL=../../libimplementations.a
19 $CAST5_GOAL=../../libimplementations.a
20 $SEED_GOAL=../../libimplementations.a
21 $SM4_GOAL=../../libimplementations.a
22 $RC4_GOAL=../../libimplementations.a
23 $RC5_GOAL=../../libimplementations.a
24 $RC2_GOAL=../../libimplementations.a
25 $CHACHA_GOAL=../../libimplementations.a
26 $CHACHAPOLY_GOAL=../../libimplementations.a
27 $SIV_GOAL=../../libimplementations.a
28
29 # This source is common building blocks for all ciphers in all our providers.
30 SOURCE[$COMMON_GOAL]=\
31         ciphercommon.c ciphercommon_hw.c ciphercommon_block.c \
32         ciphercommon_gcm.c ciphercommon_gcm_hw.c \
33         ciphercommon_ccm.c ciphercommon_ccm_hw.c
34
35 IF[{- !$disabled{des} -}]
36   SOURCE[$TDES_1_GOAL]=cipher_tdes.c cipher_tdes_hw.c
37 ENDIF
38
39 SOURCE[$NULL_GOAL]=\
40         cipher_null.c
41
42 SOURCE[$AES_GOAL]=\
43         cipher_aes.c cipher_aes_hw.c \
44         cipher_aes_xts.c cipher_aes_xts_hw.c \
45         cipher_aes_gcm.c cipher_aes_gcm_hw.c \
46         cipher_aes_ccm.c cipher_aes_ccm_hw.c \
47         cipher_aes_wrp.c \
48         cipher_aes_cbc_hmac_sha.c \
49         cipher_aes_cbc_hmac_sha256_hw.c cipher_aes_cbc_hmac_sha1_hw.c
50
51 # Extra code to satisfy the FIPS and non-FIPS separation.
52 # When the AES-xxx-XTS moves to legacy, this can be removed.
53 SOURCE[../../libfips.a]=cipher_aes_xts_fips.c
54 SOURCE[../../libnonfips.a]=cipher_aes_xts_fips.c
55
56 IF[{- !$disabled{siv} -}]
57   SOURCE[$SIV_GOAL]=\
58       cipher_aes_siv.c cipher_aes_siv_hw.c
59 ENDIF
60
61 IF[{- !$disabled{des} -}]
62   SOURCE[$TDES_2_GOAL]=\
63       cipher_tdes_default.c cipher_tdes_default_hw.c \
64       cipher_tdes_wrap.c cipher_tdes_wrap_hw.c
65   SOURCE[$DES_GOAL]=\
66       cipher_desx.c cipher_desx_hw.c \
67       cipher_des.c cipher_des_hw.c
68 ENDIF
69
70 IF[{- !$disabled{aria} -}]
71   SOURCE[$ARIA_GOAL]=\
72       cipher_aria.c cipher_aria_hw.c \
73       cipher_aria_gcm.c cipher_aria_gcm_hw.c \
74       cipher_aria_ccm.c cipher_aria_ccm_hw.c
75 ENDIF
76
77 IF[{- !$disabled{camellia} -}]
78   SOURCE[$CAMELLIA_GOAL]=\
79       cipher_camellia.c cipher_camellia_hw.c
80 ENDIF
81
82 IF[{- !$disabled{bf} -}]
83   SOURCE[$BLOWFISH_GOAL]=\
84       cipher_blowfish.c cipher_blowfish_hw.c
85 ENDIF
86
87 IF[{- !$disabled{idea} -}]
88   SOURCE[$IDEA_GOAL]=\
89       cipher_idea.c cipher_idea_hw.c
90 ENDIF
91
92 IF[{- !$disabled{cast} -}]
93   SOURCE[$CAST5_GOAL]=\
94       cipher_cast5.c cipher_cast5_hw.c
95 ENDIF
96
97 IF[{- !$disabled{seed} -}]
98   SOURCE[$SEED_GOAL]=\
99       cipher_seed.c cipher_seed_hw.c
100 ENDIF
101
102 IF[{- !$disabled{sm4} -}]
103   SOURCE[$SM4_GOAL]=\
104       cipher_sm4.c cipher_sm4_hw.c
105 ENDIF
106
107 IF[{- !$disabled{ocb} -}]
108   SOURCE[$AES_GOAL]=\
109        cipher_aes_ocb.c cipher_aes_ocb_hw.c
110 ENDIF
111
112 IF[{- !$disabled{rc4} -}]
113   SOURCE[$RC4_GOAL]=\
114       cipher_rc4.c cipher_rc4_hw.c
115  IF[{- !$disabled{md5} -}]
116    SOURCE[$RC4_GOAL]=\
117        cipher_rc4_hmac_md5.c cipher_rc4_hmac_md5_hw.c
118  ENDIF
119 ENDIF
120
121 IF[{- !$disabled{rc5} -}]
122   SOURCE[$RC5_GOAL]=\
123       cipher_rc5.c cipher_rc5_hw.c
124 ENDIF
125
126 IF[{- !$disabled{rc2} -}]
127   SOURCE[$RC2_GOAL]=\
128       cipher_rc2.c cipher_rc2_hw.c
129 ENDIF
130
131 IF[{- !$disabled{chacha} -}]
132   SOURCE[$CHACHA_GOAL]=\
133       cipher_chacha20.c cipher_chacha20_hw.c
134  IF[{- !$disabled{poly1305} -}]
135   SOURCE[$CHACHAPOLY_GOAL]=\
136       cipher_chacha20_poly1305.c cipher_chacha20_poly1305_hw.c
137  ENDIF
138 ENDIF