blob: 262abb2cec73a8b14c5d4ff722032108baa06ab8 [file] [log] [blame]
Raymond Mao87010c32024-10-03 14:50:15 -07001choice
2 prompt "Select crypto libraries"
3 default LEGACY_CRYPTO
4 help
5 Select crypto libraries.
6 LEGACY_CRYPTO for legacy crypto libraries,
7 MBEDTLS_LIB for MbedTLS libraries.
8
9config LEGACY_CRYPTO
10 bool "legacy crypto libraries"
11 select LEGACY_CRYPTO_BASIC
12 select LEGACY_CRYPTO_CERT
13
14config MBEDTLS_LIB
15 bool "MbedTLS libraries"
16 select MBEDTLS_LIB_X509
17endchoice
18
19if LEGACY_CRYPTO || MBEDTLS_LIB_CRYPTO_ALT
20
21config LEGACY_CRYPTO_BASIC
22 bool "legacy basic crypto libraries"
Raymond Maoa571b982024-10-03 14:50:16 -070023 select MD5_LEGACY if MD5
24 select SHA1_LEGACY if SHA1
25 select SHA256_LEGACY if SHA256
26 select SHA512_LEGACY if SHA512
27 select SHA384_LEGACY if SHA384
28 select SPL_MD5_LEGACY if SPL_MD5
29 select SPL_SHA1_LEGACY if SPL_SHA1
30 select SPL_SHA256_LEGACY if SPL_SHA256
31 select SPL_SHA512_LEGACY if SPL_SHA512
32 select SPL_SHA384_LEGACY if SPL_SHA384
Raymond Mao87010c32024-10-03 14:50:15 -070033 help
34 Enable legacy basic crypto libraries.
35
Raymond Maoa571b982024-10-03 14:50:16 -070036if LEGACY_CRYPTO_BASIC
37
38config SHA1_LEGACY
39 bool "Enable SHA1 support with legacy crypto library"
40 depends on LEGACY_CRYPTO_BASIC && SHA1
41 help
42 This option enables support of hashing using SHA1 algorithm
43 with legacy crypto library.
44
45config SHA256_LEGACY
46 bool "Enable SHA256 support with legacy crypto library"
47 depends on LEGACY_CRYPTO_BASIC && SHA256
48 help
49 This option enables support of hashing using SHA256 algorithm
50 with legacy crypto library.
51
52config SHA512_LEGACY
53 bool "Enable SHA512 support with legacy crypto library"
54 depends on LEGACY_CRYPTO_BASIC && SHA512
55 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
56 help
57 This option enables support of hashing using SHA512 algorithm
58 with legacy crypto library.
59
60config SHA384_LEGACY
61 bool "Enable SHA384 support with legacy crypto library"
62 depends on LEGACY_CRYPTO_BASIC && SHA384
63 select SHA512_LEGACY
64 help
65 This option enables support of hashing using SHA384 algorithm
66 with legacy crypto library.
67
68config MD5_LEGACY
69 bool "Enable MD5 support with legacy crypto library"
70 depends on LEGACY_CRYPTO_BASIC && MD5
71 help
72 This option enables support of hashing using MD5 algorithm
73 with legacy crypto library.
74
75if SPL
76
77config SPL_SHA1_LEGACY
78 bool "Enable SHA1 support in SPL with legacy crypto library"
79 depends on LEGACY_CRYPTO_BASIC && SPL_SHA1
80 help
81 This option enables support of hashing using SHA1 algorithm
82 with legacy crypto library.
83
84config SPL_SHA256_LEGACY
85 bool "Enable SHA256 support in SPL with legacy crypto library"
86 depends on LEGACY_CRYPTO_BASIC && SPL_SHA256
87 help
88 This option enables support of hashing using SHA256 algorithm
89 with legacy crypto library.
90
91config SPL_SHA512_LEGACY
92 bool "Enable SHA512 support in SPL with legacy crypto library"
93 depends on LEGACY_CRYPTO_BASIC && SPL_SHA512
94 help
95 This option enables support of hashing using SHA512 algorithm
96 with legacy crypto library.
97
98config SPL_SHA384_LEGACY
99 bool "Enable SHA384 support in SPL with legacy crypto library"
100 depends on LEGACY_CRYPTO_BASIC && SPL_SHA384
101 select SPL_SHA512_LEGACY
102 help
103 This option enables support of hashing using SHA384 algorithm
104 with legacy crypto library.
105
106config SPL_MD5_LEGACY
107 bool "Enable MD5 support in SPL with legacy crypto library"
108 depends on LEGACY_CRYPTO_BASIC && SPL_MD5
109 help
110 This option enables support of hashing using MD5 algorithm
111 with legacy crypto library.
112
113endif # SPL
114
115endif # LEGACY_CRYPTO_BASIC
116
Raymond Mao87010c32024-10-03 14:50:15 -0700117config LEGACY_CRYPTO_CERT
118 bool "legacy certificate libraries"
119 help
120 Enable legacy certificate libraries.
121
122endif # LEGACY_CRYPTO
123
124if MBEDTLS_LIB
125
126config MBEDTLS_LIB_CRYPTO_ALT
127 bool "MbedTLS crypto alternatives"
128 depends on MBEDTLS_LIB && !MBEDTLS_LIB_CRYPTO
129 select LEGACY_CRYPTO_BASIC
130 default y if MBEDTLS_LIB && !MBEDTLS_LIB_CRYPTO
131 help
132 Enable MbedTLS crypto alternatives.
133 Mutually incompatible with MBEDTLS_LIB_CRYPTO.
134
135config MBEDTLS_LIB_CRYPTO
136 bool "MbedTLS crypto libraries"
Raymond Maof51f3552024-10-03 14:50:19 -0700137 select MD5_MBEDTLS if MD5
138 select SHA1_MBEDTLS if SHA1
139 select SHA256_MBEDTLS if SHA256
140 select SHA512_MBEDTLS if SHA512
141 select SHA384_MBEDTLS if SHA384
142 select SPL_MD5_MBEDTLS if SPL_MD5
143 select SPL_SHA1_MBEDTLS if SPL_SHA1
144 select SPL_SHA256_MBEDTLS if SPL_SHA256
145 select SPL_SHA512_MBEDTLS if SPL_SHA512
146 select SPL_SHA384_MBEDTLS if SPL_SHA384
Raymond Mao87010c32024-10-03 14:50:15 -0700147 help
148 Enable MbedTLS crypto libraries.
149 Mutually incompatible with MBEDTLS_LIB_CRYPTO_ALT.
150
Raymond Maof51f3552024-10-03 14:50:19 -0700151if MBEDTLS_LIB_CRYPTO
152
153config SHA1_MBEDTLS
154 bool "Enable SHA1 support with MbedTLS crypto library"
155 depends on MBEDTLS_LIB_CRYPTO && SHA1
156 help
157 This option enables support of hashing using SHA1 algorithm
158 with MbedTLS crypto library.
159
160config SHA256_MBEDTLS
161 bool "Enable SHA256 support with MbedTLS crypto library"
162 depends on MBEDTLS_LIB_CRYPTO && SHA256
163 help
164 This option enables support of hashing using SHA256 algorithm
165 with MbedTLS crypto library.
166
167config SHA512_MBEDTLS
168 bool "Enable SHA512 support with MbedTLS crypto library"
169 depends on MBEDTLS_LIB_CRYPTO && SHA512
170 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
171 help
172 This option enables support of hashing using SHA512 algorithm
173 with MbedTLS crypto library.
174
175config SHA384_MBEDTLS
176 bool "Enable SHA384 support with MbedTLS crypto library"
177 depends on MBEDTLS_LIB_CRYPTO && SHA384
178 select SHA512_MBEDTLS
179 help
180 This option enables support of hashing using SHA384 algorithm
181 with MbedTLS crypto library.
182
183config MD5_MBEDTLS
184 bool "Enable MD5 support with MbedTLS crypto library"
185 depends on MBEDTLS_LIB_CRYPTO && MD5
186 help
187 This option enables support of hashing using MD5 algorithm
188 with MbedTLS crypto library.
189
190if SPL
191
192config SPL_SHA1_MBEDTLS
193 bool "Enable SHA1 support in SPL with MbedTLS crypto library"
194 depends on MBEDTLS_LIB_CRYPTO && SPL_SHA1
195 help
196 This option enables support of hashing using SHA1 algorithm
197 with MbedTLS crypto library.
198
199config SPL_SHA256_MBEDTLS
200 bool "Enable SHA256 support in SPL with MbedTLS crypto library"
201 depends on MBEDTLS_LIB_CRYPTO && SPL_SHA256
202 help
203 This option enables support of hashing using SHA256 algorithm
204 with MbedTLS crypto library.
205
206config SPL_SHA512_MBEDTLS
207 bool "Enable SHA512 support in SPL with MbedTLS crypto library"
208 depends on MBEDTLS_LIB_CRYPTO && SPL_SHA512
209 help
210 This option enables support of hashing using SHA512 algorithm
211 with MbedTLS crypto library.
212
213config SPL_SHA384_MBEDTLS
214 bool "Enable SHA384 support in SPL with MbedTLS crypto library"
215 depends on MBEDTLS_LIB_CRYPTO && SPL_SHA384
216 select SPL_SHA512
217 help
218 This option enables support of hashing using SHA384 algorithm
219 with MbedTLS crypto library.
220
221config SPL_MD5_MBEDTLS
222 bool "Enable MD5 support in SPL with MbedTLS crypto library"
223 depends on MBEDTLS_LIB_CRYPTO && SPL_MD5
224 help
225 This option enables support of hashing using MD5 algorithm
226 with MbedTLS crypto library.
227
228endif # SPL
229
230endif # MBEDTLS_LIB_CRYPTO
Raymond Mao87010c32024-10-03 14:50:15 -0700231
232config MBEDTLS_LIB_X509
233 bool "MbedTLS certificate libraries"
234 help
235 Enable MbedTLS certificate libraries.
236
237endif # MBEDTLS_LIB