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