22 #ifndef MBEDTLS_SSL_CIPHERSUITES_H
23 #define MBEDTLS_SSL_CIPHERSUITES_H
39 #define MBEDTLS_TLS_RSA_WITH_NULL_MD5 0x01
40 #define MBEDTLS_TLS_RSA_WITH_NULL_SHA 0x02
42 #define MBEDTLS_TLS_PSK_WITH_NULL_SHA 0x2C
43 #define MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA 0x2D
44 #define MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA 0x2E
45 #define MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA 0x2F
47 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA 0x33
48 #define MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA 0x35
49 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA 0x39
51 #define MBEDTLS_TLS_RSA_WITH_NULL_SHA256 0x3B
52 #define MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256 0x3C
53 #define MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256 0x3D
55 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA 0x41
56 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA 0x45
58 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 0x67
59 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 0x6B
61 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA 0x84
62 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA 0x88
64 #define MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA 0x8C
65 #define MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA 0x8D
67 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA 0x90
68 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA 0x91
70 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA 0x94
71 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA 0x95
73 #define MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256 0x9C
74 #define MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384 0x9D
75 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 0x9E
76 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 0x9F
78 #define MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256 0xA8
79 #define MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384 0xA9
80 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 0xAA
81 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 0xAB
82 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 0xAC
83 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 0xAD
85 #define MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256 0xAE
86 #define MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384 0xAF
87 #define MBEDTLS_TLS_PSK_WITH_NULL_SHA256 0xB0
88 #define MBEDTLS_TLS_PSK_WITH_NULL_SHA384 0xB1
90 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 0xB2
91 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 0xB3
92 #define MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA256 0xB4
93 #define MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA384 0xB5
95 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 0xB6
96 #define MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 0xB7
97 #define MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA256 0xB8
98 #define MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA384 0xB9
100 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 0xBA
101 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0xBE
103 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 0xC0
104 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0xC4
106 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_NULL_SHA 0xC001
107 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA 0xC004
108 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA 0xC005
110 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_NULL_SHA 0xC006
111 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 0xC009
112 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA 0xC00A
114 #define MBEDTLS_TLS_ECDH_RSA_WITH_NULL_SHA 0xC00B
115 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA 0xC00E
116 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA 0xC00F
118 #define MBEDTLS_TLS_ECDHE_RSA_WITH_NULL_SHA 0xC010
119 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA 0xC013
120 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA 0xC014
122 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 0xC023
123 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 0xC024
124 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 0xC025
125 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 0xC026
126 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 0xC027
127 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 0xC028
128 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 0xC029
129 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 0xC02A
131 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0xC02B
132 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 0xC02C
133 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0xC02D
134 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 0xC02E
135 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0xC02F
136 #define MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 0xC030
137 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 0xC031
138 #define MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 0xC032
140 #define MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA 0xC035
141 #define MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA 0xC036
142 #define MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 0xC037
143 #define MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 0xC038
144 #define MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA 0xC039
145 #define MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA256 0xC03A
146 #define MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA384 0xC03B
148 #define MBEDTLS_TLS_RSA_WITH_ARIA_128_CBC_SHA256 0xC03C
149 #define MBEDTLS_TLS_RSA_WITH_ARIA_256_CBC_SHA384 0xC03D
150 #define MBEDTLS_TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256 0xC044
151 #define MBEDTLS_TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384 0xC045
152 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256 0xC048
153 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384 0xC049
154 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256 0xC04A
155 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384 0xC04B
156 #define MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256 0xC04C
157 #define MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384 0xC04D
158 #define MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256 0xC04E
159 #define MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384 0xC04F
160 #define MBEDTLS_TLS_RSA_WITH_ARIA_128_GCM_SHA256 0xC050
161 #define MBEDTLS_TLS_RSA_WITH_ARIA_256_GCM_SHA384 0xC051
162 #define MBEDTLS_TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256 0xC052
163 #define MBEDTLS_TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384 0xC053
164 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 0xC05C
165 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 0xC05D
166 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 0xC05E
167 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 0xC05F
168 #define MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 0xC060
169 #define MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 0xC061
170 #define MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 0xC062
171 #define MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 0xC063
172 #define MBEDTLS_TLS_PSK_WITH_ARIA_128_CBC_SHA256 0xC064
173 #define MBEDTLS_TLS_PSK_WITH_ARIA_256_CBC_SHA384 0xC065
174 #define MBEDTLS_TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256 0xC066
175 #define MBEDTLS_TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384 0xC067
176 #define MBEDTLS_TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256 0xC068
177 #define MBEDTLS_TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384 0xC069
178 #define MBEDTLS_TLS_PSK_WITH_ARIA_128_GCM_SHA256 0xC06A
179 #define MBEDTLS_TLS_PSK_WITH_ARIA_256_GCM_SHA384 0xC06B
180 #define MBEDTLS_TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256 0xC06C
181 #define MBEDTLS_TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384 0xC06D
182 #define MBEDTLS_TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256 0xC06E
183 #define MBEDTLS_TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384 0xC06F
184 #define MBEDTLS_TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256 0xC070
185 #define MBEDTLS_TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384 0xC071
187 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0xC072
188 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0xC073
189 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0xC074
190 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0xC075
191 #define MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0xC076
192 #define MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 0xC077
193 #define MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0xC078
194 #define MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 0xC079
196 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 0xC07A
197 #define MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 0xC07B
198 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 0xC07C
199 #define MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 0xC07D
200 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 0xC086
201 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 0xC087
202 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 0xC088
203 #define MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 0xC089
204 #define MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 0xC08A
205 #define MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 0xC08B
206 #define MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 0xC08C
207 #define MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 0xC08D
209 #define MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 0xC08E
210 #define MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 0xC08F
211 #define MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256 0xC090
212 #define MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384 0xC091
213 #define MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 0xC092
214 #define MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 0xC093
216 #define MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 0xC094
217 #define MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 0xC095
218 #define MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0xC096
219 #define MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0xC097
220 #define MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 0xC098
221 #define MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 0xC099
222 #define MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0xC09A
223 #define MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0xC09B
225 #define MBEDTLS_TLS_RSA_WITH_AES_128_CCM 0xC09C
226 #define MBEDTLS_TLS_RSA_WITH_AES_256_CCM 0xC09D
227 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM 0xC09E
228 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM 0xC09F
229 #define MBEDTLS_TLS_RSA_WITH_AES_128_CCM_8 0xC0A0
230 #define MBEDTLS_TLS_RSA_WITH_AES_256_CCM_8 0xC0A1
231 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM_8 0xC0A2
232 #define MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM_8 0xC0A3
233 #define MBEDTLS_TLS_PSK_WITH_AES_128_CCM 0xC0A4
234 #define MBEDTLS_TLS_PSK_WITH_AES_256_CCM 0xC0A5
235 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM 0xC0A6
236 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM 0xC0A7
237 #define MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8 0xC0A8
238 #define MBEDTLS_TLS_PSK_WITH_AES_256_CCM_8 0xC0A9
239 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM_8 0xC0AA
240 #define MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM_8 0xC0AB
243 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM 0xC0AC
244 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM 0xC0AD
245 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 0xC0AE
246 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8 0xC0AF
248 #define MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 0xC0FF
251 #define MBEDTLS_TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 0xCCA8
252 #define MBEDTLS_TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 0xCCA9
253 #define MBEDTLS_TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 0xCCAA
254 #define MBEDTLS_TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 0xCCAB
255 #define MBEDTLS_TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 0xCCAC
256 #define MBEDTLS_TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256 0xCCAD
257 #define MBEDTLS_TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256 0xCCAE
260 #define MBEDTLS_TLS1_3_AES_128_GCM_SHA256 0x1301
261 #define MBEDTLS_TLS1_3_AES_256_GCM_SHA384 0x1302
262 #define MBEDTLS_TLS1_3_CHACHA20_POLY1305_SHA256 0x1303
263 #define MBEDTLS_TLS1_3_AES_128_CCM_SHA256 0x1304
264 #define MBEDTLS_TLS1_3_AES_128_CCM_8_SHA256 0x1305
285 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED) || \
286 defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
287 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
288 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) || \
289 defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED) || \
290 defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED) || \
291 defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
292 #define MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED
296 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED) || \
297 defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
298 defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED) || \
299 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
300 defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) || \
301 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
302 #define MBEDTLS_KEY_EXCHANGE_CERT_REQ_ALLOWED_ENABLED
306 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
307 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
308 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
309 #define MBEDTLS_KEY_EXCHANGE_WITH_SERVER_SIGNATURE_ENABLED
313 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED) || \
314 defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
315 #define MBEDTLS_KEY_EXCHANGE_SOME_ECDH_ENABLED
319 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED) || \
320 defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) || \
321 defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED) || \
322 defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDH_ENABLED)
323 #define MBEDTLS_KEY_EXCHANGE_SOME_NON_PFS_ENABLED
327 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
328 defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED) || \
329 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
330 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED) || \
331 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) || \
332 defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
333 #define MBEDTLS_KEY_EXCHANGE_SOME_PFS_ENABLED
337 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) || \
338 defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED) || \
339 defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED) || \
340 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
341 #define MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED
345 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
346 defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
347 #define MBEDTLS_KEY_EXCHANGE_SOME_DHE_ENABLED
351 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
352 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) || \
353 defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
354 #define MBEDTLS_KEY_EXCHANGE_SOME_ECDHE_ENABLED
359 #define MBEDTLS_CIPHERSUITE_WEAK 0x01
360 #define MBEDTLS_CIPHERSUITE_SHORT_TAG 0x02
362 #define MBEDTLS_CIPHERSUITE_NODTLS 0x04
367 struct mbedtls_ssl_ciphersuite_t
389 #if defined(MBEDTLS_PK_C)
397 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PFS_ENABLED)
400 switch( info->MBEDTLS_PRIVATE(key_exchange) )
416 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_NON_PFS_ENABLED)
419 switch( info->MBEDTLS_PRIVATE(key_exchange) )
434 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDH_ENABLED)
437 switch( info->MBEDTLS_PRIVATE(key_exchange) )
451 switch( info->MBEDTLS_PRIVATE(key_exchange) )
468 switch( info->MBEDTLS_PRIVATE(key_exchange) )
484 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_DHE_ENABLED)
487 switch( info->MBEDTLS_PRIVATE(key_exchange) )
499 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDHE_ENABLED)
502 switch( info->MBEDTLS_PRIVATE(key_exchange) )
515 #if defined(MBEDTLS_KEY_EXCHANGE_WITH_SERVER_SIGNATURE_ENABLED)
518 switch( info->MBEDTLS_PRIVATE(key_exchange) )
const mbedtls_ssl_ciphersuite_t * mbedtls_ssl_ciphersuite_from_id(int ciphersuite_id)
int mbedtls_ssl_ciphersuite_uses_psk(const mbedtls_ssl_ciphersuite_t *info)
#define MBEDTLS_PRIVATE(member)
mbedtls_pk_type_t
Public key types.
static int mbedtls_ssl_ciphersuite_uses_ecdhe(const mbedtls_ssl_ciphersuite_t *info)
static int mbedtls_ssl_ciphersuite_uses_server_signature(const mbedtls_ssl_ciphersuite_t *info)
mbedtls_cipher_type_t
Supported {cipher type, cipher mode} pairs.
const int * mbedtls_ssl_list_ciphersuites(void)
Public Key abstraction layer.
static int mbedtls_ssl_ciphersuite_cert_req_allowed(const mbedtls_ssl_ciphersuite_t *info)
static int mbedtls_ssl_ciphersuite_uses_dhe(const mbedtls_ssl_ciphersuite_t *info)
mbedtls_key_exchange_type_t
Macro wrapper for struct's memebrs.
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
static int mbedtls_ssl_ciphersuite_uses_srv_cert(const mbedtls_ssl_ciphersuite_t *info)
Build-time configuration info.
This structure is used for storing ciphersuite information.
This file contains the generic message-digest wrapper.
static int mbedtls_ssl_ciphersuite_has_pfs(const mbedtls_ssl_ciphersuite_t *info)
static int mbedtls_ssl_ciphersuite_no_pfs(const mbedtls_ssl_ciphersuite_t *info)
int mbedtls_ssl_ciphersuite_uses_ec(const mbedtls_ssl_ciphersuite_t *info)
mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_alg(const mbedtls_ssl_ciphersuite_t *info)
mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_pk_alg(const mbedtls_ssl_ciphersuite_t *info)
const mbedtls_ssl_ciphersuite_t * mbedtls_ssl_ciphersuite_from_string(const char *ciphersuite_name)
mbedtls_md_type_t
Supported message digests.
static int mbedtls_ssl_ciphersuite_uses_ecdh(const mbedtls_ssl_ciphersuite_t *info)