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