Providers: move all ciphers
[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 $AES_GOAL=../../libimplementations.a
9 $TDES_1_GOAL=../../libimplementations.a
10 $TDES_2_GOAL=../../libimplementations.a
11 $DES_GOAL=../../libimplementations.a
12 $ARIA_GOAL=../../libimplementations.a
13 $CAMELLIA_GOAL=../../libimplementations.a
14 $BLOWFISH_GOAL=../../libimplementations.a
15 $IDEA_GOAL=../../libimplementations.a
16 $CAST5_GOAL=../../libimplementations.a
17 $SEED_GOAL=../../libimplementations.a
18 $SM4_GOAL=../../libimplementations.a
19 $RC4_GOAL=../../libimplementations.a
20 $RC5_GOAL=../../libimplementations.a
21 $RC2_GOAL=../../libimplementations.a
22
23 IF[{- !$disabled{des} -}]
24   SOURCE[$TDES_1_GOAL]=cipher_tdes.c cipher_tdes_hw.c
25 ENDIF
26
27 SOURCE[$AES_GOAL]=\
28         cipher_aes.c cipher_aes_hw.c \
29         cipher_aes_xts.c cipher_aes_xts_hw.c \
30         cipher_aes_gcm.c cipher_aes_gcm_hw.c \
31         cipher_aes_ccm.c cipher_aes_ccm_hw.c \
32         cipher_aes_wrp.c
33 # Extra code to satisfy the FIPS and non-FIPS separation.
34 # When the AES-xxx-XTS moves to legacy, this can be removed.
35 SOURCE[../../libfips.a]=cipher_aes_xts_fips.c
36 SOURCE[../../libnonfips.a]=cipher_aes_xts_fips.c
37
38 IF[{- !$disabled{des} -}]
39   SOURCE[$TDES_2_GOAL]=\
40       cipher_tdes_default.c cipher_tdes_default_hw.c \
41       cipher_tdes_wrap.c cipher_tdes_wrap_hw.c
42   SOURCE[$DES_GOAL]=\
43       cipher_desx.c cipher_desx_hw.c \
44       cipher_des.c cipher_des_hw.c
45 ENDIF
46
47 IF[{- !$disabled{aria} -}]
48   SOURCE[$ARIA_GOAL]=\
49       cipher_aria.c cipher_aria_hw.c \
50       cipher_aria_gcm.c cipher_aria_gcm_hw.c \
51       cipher_aria_ccm.c cipher_aria_ccm_hw.c
52 ENDIF
53
54 IF[{- !$disabled{camellia} -}]
55   SOURCE[$CAMELLIA_GOAL]=\
56       cipher_camellia.c cipher_camellia_hw.c
57 ENDIF
58
59 IF[{- !$disabled{bf} -}]
60   SOURCE[$BLOWFISH_GOAL]=\
61       cipher_blowfish.c cipher_blowfish_hw.c
62 ENDIF
63
64 IF[{- !$disabled{idea} -}]
65   SOURCE[$IDEA_GOAL]=\
66       cipher_idea.c cipher_idea_hw.c
67 ENDIF
68
69 IF[{- !$disabled{cast} -}]
70   SOURCE[$CAST5_GOAL]=\
71       cipher_cast5.c cipher_cast5_hw.c
72 ENDIF
73
74 IF[{- !$disabled{seed} -}]
75   SOURCE[$SEED_GOAL]=\
76       cipher_seed.c cipher_seed_hw.c
77 ENDIF
78
79 IF[{- !$disabled{sm4} -}]
80   SOURCE[$SM4_GOAL]=\
81       cipher_sm4.c cipher_sm4_hw.c
82 ENDIF
83
84 IF[{- !$disabled{ocb} -}]
85   SOURCE[$AES_GOAL]=\
86        cipher_aes_ocb.c cipher_aes_ocb_hw.c
87 ENDIF
88
89 IF[{- !$disabled{rc4} -}]
90   SOURCE[$RC4_GOAL]=\
91       cipher_rc4.c cipher_rc4_hw.c
92 ENDIF
93
94 IF[{- !$disabled{rc5} -}]
95   SOURCE[$RC5_GOAL]=\
96       cipher_rc5.c cipher_rc5_hw.c
97 ENDIF
98
99 IF[{- !$disabled{rc2} -}]
100   SOURCE[$RC2_GOAL]=\
101       cipher_rc2.c cipher_rc2_hw.c
102 ENDIF