Debian Codegraph @

crt/s2n/tls/s2n_cipher_preferences.c

raw symbols SCIP
1 /*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 #include "tls/s2n_cipher_preferences.h"
17
18 #include <stdint.h>
19 #include <strings.h>
20
21 #include "api/s2n.h"
22 #include "error/s2n_errno.h"
23 #include "tls/s2n_config.h"
24 #include "tls/s2n_kem.h"
25 #include "tls/s2n_kex.h"
26 #include "utils/s2n_safety.h"
27
28 /* clang-format off */
29 /* TLS 1.3 cipher suites, in order of preference.
30 * Can be added to other ciphers suite lists to enable
31 * TLS1.3 compatibility. */
32 #define S2N_TLS13_CIPHER_SUITES_20190801 \
33 &s2n_tls13_aes_256_gcm_sha384, \
34 &s2n_tls13_aes_128_gcm_sha256, \
35 &s2n_tls13_chacha20_poly1305_sha256
36
37 #define S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716 \
38 &s2n_tls13_aes_128_gcm_sha256, \
39 &s2n_tls13_aes_256_gcm_sha384, \
40 &s2n_tls13_chacha20_poly1305_sha256
41
42 /* s2n's list of cipher suites, in order of preferences, as of 2019-08-01 */
43 struct s2n_cipher_suite *cipher_suites_20190801[] = {
44 S2N_TLS13_CIPHER_SUITES_20190801,
45 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
46 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
47 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
48 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
49 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
50 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
51 &s2n_rsa_with_aes_128_gcm_sha256,
52 &s2n_rsa_with_aes_128_cbc_sha256,
53 &s2n_rsa_with_aes_128_cbc_sha
54 };
55
56 const struct s2n_cipher_preferences cipher_preferences_20190801 = {
57 .count = s2n_array_len(cipher_suites_20190801),
58 .suites = cipher_suites_20190801,
59 .allow_chacha20_boosting = false,
60 };
61
62 /* Same as 20190801, but with ECDSA for TLS 1.2 added */
63 struct s2n_cipher_suite *cipher_suites_20210831[] = {
64 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
65 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
66 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
67 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
68 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
69 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
70 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
71 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
72 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
73 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
74 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
75 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
76 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
77 &s2n_rsa_with_aes_128_gcm_sha256,
78 &s2n_rsa_with_aes_128_cbc_sha256,
79 &s2n_rsa_with_aes_128_cbc_sha
80 };
81
82 const struct s2n_cipher_preferences cipher_preferences_20210831 = {
83 .count = s2n_array_len(cipher_suites_20210831),
84 .suites = cipher_suites_20210831,
85 .allow_chacha20_boosting = false,
86 };
87
88 /*
89 * These cipher suites were chosen based on the following specification:
90 * https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf
91 */
92 struct s2n_cipher_suite *cipher_suites_default_fips[] = {
93 /* tls1.2 with ECDSA */
94 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
95 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
96 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
97 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
98
99 /* tls1.2 with RSA */
100 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
101 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
102 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
103 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
104 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
105 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
106 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
107 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
108 };
109
110 const struct s2n_cipher_preferences cipher_preferences_default_fips = {
111 .count = s2n_array_len(cipher_suites_default_fips),
112 .suites = cipher_suites_default_fips,
113 .allow_chacha20_boosting = false,
114 };
115
116 /* s2n's list of cipher suites, in order of preference, as of 2014-06-01 */
117 struct s2n_cipher_suite *cipher_suites_20140601[] = {
118 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
119 &s2n_dhe_rsa_with_aes_128_cbc_sha,
120 &s2n_dhe_rsa_with_3des_ede_cbc_sha,
121 &s2n_rsa_with_aes_128_cbc_sha256,
122 &s2n_rsa_with_aes_128_cbc_sha,
123 &s2n_rsa_with_3des_ede_cbc_sha,
124 &s2n_rsa_with_rc4_128_sha,
125 &s2n_rsa_with_rc4_128_md5
126 };
127
128 const struct s2n_cipher_preferences cipher_preferences_20140601 = {
129 .count = s2n_array_len(cipher_suites_20140601),
130 .suites = cipher_suites_20140601,
131 .allow_chacha20_boosting = false,
132 };
133
134 /* Disable SSLv3 due to POODLE */
135 const struct s2n_cipher_preferences cipher_preferences_20141001 = {
136 .count = s2n_array_len(cipher_suites_20140601),
137 .suites = cipher_suites_20140601,
138 .allow_chacha20_boosting = false,
139 };
140
141 /* Disable RC4 */
142 struct s2n_cipher_suite *cipher_suites_20150202[] = {
143 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
144 &s2n_dhe_rsa_with_aes_128_cbc_sha,
145 &s2n_dhe_rsa_with_3des_ede_cbc_sha,
146 &s2n_rsa_with_aes_128_cbc_sha256,
147 &s2n_rsa_with_aes_128_cbc_sha,
148 &s2n_rsa_with_3des_ede_cbc_sha
149 };
150
151 const struct s2n_cipher_preferences cipher_preferences_20150202 = {
152 .count = s2n_array_len(cipher_suites_20150202),
153 .suites = cipher_suites_20150202,
154 .allow_chacha20_boosting = false,
155 };
156
157 /* Support AES-GCM modes */
158 struct s2n_cipher_suite *cipher_suites_20150214[] = {
159 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
160 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
161 &s2n_dhe_rsa_with_aes_128_cbc_sha,
162 &s2n_dhe_rsa_with_3des_ede_cbc_sha,
163 &s2n_rsa_with_aes_128_gcm_sha256,
164 &s2n_rsa_with_aes_128_cbc_sha256,
165 &s2n_rsa_with_aes_128_cbc_sha,
166 &s2n_rsa_with_3des_ede_cbc_sha
167 };
168
169 const struct s2n_cipher_preferences cipher_preferences_20150214 = {
170 .count = s2n_array_len(cipher_suites_20150214),
171 .suites = cipher_suites_20150214,
172 .allow_chacha20_boosting = false,
173 };
174
175 /* Make a CBC cipher #1 to avoid negotiating GCM with buggy Java clients */
176 struct s2n_cipher_suite *cipher_suites_20160411[] = {
177 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
178 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
179 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
180 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
181 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
182 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
183 &s2n_rsa_with_aes_128_cbc_sha,
184 &s2n_rsa_with_aes_128_gcm_sha256,
185 &s2n_rsa_with_aes_256_gcm_sha384,
186 &s2n_rsa_with_aes_128_cbc_sha256,
187 &s2n_rsa_with_aes_256_cbc_sha,
188 &s2n_rsa_with_aes_256_cbc_sha256,
189 &s2n_rsa_with_3des_ede_cbc_sha,
190 };
191
192 const struct s2n_cipher_preferences cipher_preferences_20160411 = {
193 .count = s2n_array_len(cipher_suites_20160411),
194 .suites = cipher_suites_20160411,
195 .allow_chacha20_boosting = false,
196 };
197
198 /* Use ECDHE instead of plain DHE. Prioritize ECDHE in favour of non ECDHE; GCM in favour of CBC; AES128 in favour of AES256. */
199 struct s2n_cipher_suite *cipher_suites_20150306[] = {
200 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
201 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
202 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
203 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
204 &s2n_ecdhe_rsa_with_3des_ede_cbc_sha,
205 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
206 &s2n_rsa_with_aes_128_gcm_sha256,
207 &s2n_rsa_with_aes_128_cbc_sha256,
208 &s2n_rsa_with_aes_128_cbc_sha,
209 &s2n_rsa_with_3des_ede_cbc_sha
210 };
211
212 const struct s2n_cipher_preferences cipher_preferences_20150306 = {
213 .count = s2n_array_len(cipher_suites_20150306),
214 .suites = cipher_suites_20150306,
215 .allow_chacha20_boosting = false,
216 };
217
218 struct s2n_cipher_suite *cipher_suites_20160804[] = {
219 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
220 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
221 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
222 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
223 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
224 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
225 &s2n_rsa_with_aes_128_gcm_sha256,
226 &s2n_rsa_with_aes_256_gcm_sha384,
227 &s2n_rsa_with_aes_128_cbc_sha,
228 &s2n_rsa_with_aes_128_cbc_sha256,
229 &s2n_rsa_with_aes_256_cbc_sha,
230 &s2n_rsa_with_aes_256_cbc_sha256,
231 &s2n_rsa_with_3des_ede_cbc_sha
232 };
233
234 const struct s2n_cipher_preferences cipher_preferences_20160804 = {
235 .count = s2n_array_len(cipher_suites_20160804),
236 .suites = cipher_suites_20160804,
237 .allow_chacha20_boosting = false,
238 };
239
240 struct s2n_cipher_suite *cipher_suites_20160824[] = {
241 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
242 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
243 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
244 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
245 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
246 &s2n_rsa_with_aes_128_gcm_sha256,
247 &s2n_rsa_with_aes_128_cbc_sha256,
248 &s2n_rsa_with_aes_128_cbc_sha
249 };
250
251 const struct s2n_cipher_preferences cipher_preferences_20160824 = {
252 .count = s2n_array_len(cipher_suites_20160824),
253 .suites = cipher_suites_20160824,
254 .allow_chacha20_boosting = false,
255 };
256
257 /* Add ChaCha20 suite */
258 struct s2n_cipher_suite *cipher_suites_20170210[] = {
259 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
260 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
261 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
262 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
263 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
264 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
265 &s2n_rsa_with_aes_128_gcm_sha256,
266 &s2n_rsa_with_aes_128_cbc_sha256,
267 &s2n_rsa_with_aes_128_cbc_sha
268 };
269
270 const struct s2n_cipher_preferences cipher_preferences_20170210 = {
271 .count = s2n_array_len(cipher_suites_20170210),
272 .suites = cipher_suites_20170210,
273 .allow_chacha20_boosting = false,
274 };
275
276 /*
277 * TLS1.3 support.
278 * FIPS compliant.
279 * No DHE (would require extra setup with s2n_config_add_dhparams)
280 */
281 struct s2n_cipher_suite *cipher_suites_20230317[] = {
282 /* TLS1.2 with ECDSA */
283 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
284 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
285 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
286 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
287
288 /* TLS1.2 with RSA */
289 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
290 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
291 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
292 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
293
294 /* TLS1.3 */
295 &s2n_tls13_aes_128_gcm_sha256,
296 &s2n_tls13_aes_256_gcm_sha384,
297 };
298
299 const struct s2n_cipher_preferences cipher_preferences_20230317 = {
300 .count = s2n_array_len(cipher_suites_20230317),
301 .suites = cipher_suites_20230317,
302 .allow_chacha20_boosting = false,
303 };
304
305 /*
306 * TLS1.3 support.
307 */
308 struct s2n_cipher_suite *cipher_suites_20251014[] = {
309 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
310
311 /* TLS1.2 with ECDSA */
312 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
313 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
314
315 /* TLS1.2 with RSA */
316 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
317 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
318 };
319
320 const struct s2n_cipher_preferences cipher_preferences_20251014 = {
321 .count = s2n_array_len(cipher_suites_20251014),
322 .suites = cipher_suites_20251014,
323 .allow_chacha20_boosting = false,
324 };
325
326 /*
327 * FIPS
328 * TLS1.3 support.
329 * Same as 20251014 but without chachapoly
330 */
331 struct s2n_cipher_suite *cipher_suites_20251015[] = {
332 &s2n_tls13_aes_128_gcm_sha256,
333 &s2n_tls13_aes_256_gcm_sha384,
334
335 /* TLS1.2 with ECDSA */
336 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
337 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
338
339 /* TLS1.2 with RSA */
340 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
341 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
342 };
343
344 const struct s2n_cipher_preferences cipher_preferences_20251015 = {
345 .count = s2n_array_len(cipher_suites_20251015),
346 .suites = cipher_suites_20251015,
347 .allow_chacha20_boosting = false,
348 };
349
350 /*
351 * No TLS1.3 support.
352 * FIPS compliant.
353 * No DHE (would require extra setup with s2n_config_add_dhparams)
354 */
355 struct s2n_cipher_suite *cipher_suites_20240331[] = {
356 /* TLS1.2 with ECDSA */
357 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
358 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
359 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
360 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
361
362 /* TLS1.2 with RSA */
363 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
364 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
365 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
366 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
367 };
368
369 const struct s2n_cipher_preferences cipher_preferences_20240331 = {
370 .count = s2n_array_len(cipher_suites_20240331),
371 .suites = cipher_suites_20240331,
372 .allow_chacha20_boosting = false,
373 };
374
375 /* Same as 20160411, but with ChaCha20 added as 1st in Preference List */
376 struct s2n_cipher_suite *cipher_suites_20190122[] = {
377 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
378 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
379 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
380 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
381 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
382 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
383 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
384 &s2n_rsa_with_aes_128_cbc_sha,
385 &s2n_rsa_with_aes_128_gcm_sha256,
386 &s2n_rsa_with_aes_256_gcm_sha384,
387 &s2n_rsa_with_aes_128_cbc_sha256,
388 &s2n_rsa_with_aes_256_cbc_sha,
389 &s2n_rsa_with_aes_256_cbc_sha256,
390 &s2n_rsa_with_3des_ede_cbc_sha,
391 };
392
393 const struct s2n_cipher_preferences cipher_preferences_20190122 = {
394 .count = s2n_array_len(cipher_suites_20190122),
395 .suites = cipher_suites_20190122,
396 .allow_chacha20_boosting = false,
397 };
398
399 /* Same as 20160804, but with ChaCha20 added as 2nd in Preference List */
400 struct s2n_cipher_suite *cipher_suites_20190121[] = {
401 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
402 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
403 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
404 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
405 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
406 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
407 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
408 &s2n_rsa_with_aes_128_gcm_sha256,
409 &s2n_rsa_with_aes_256_gcm_sha384,
410 &s2n_rsa_with_aes_128_cbc_sha,
411 &s2n_rsa_with_aes_128_cbc_sha256,
412 &s2n_rsa_with_aes_256_cbc_sha,
413 &s2n_rsa_with_aes_256_cbc_sha256,
414 &s2n_rsa_with_3des_ede_cbc_sha
415 };
416
417 const struct s2n_cipher_preferences cipher_preferences_20190121 = {
418 .count = s2n_array_len(cipher_suites_20190121),
419 .suites = cipher_suites_20190121,
420 .allow_chacha20_boosting = false,
421 };
422
423 /* Same as 20160411, but with ChaCha20 in 3rd Place after CBC and GCM */
424 struct s2n_cipher_suite *cipher_suites_20190120[] = {
425 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
426 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
427 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
428 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
429 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
430 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
431 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
432 &s2n_rsa_with_aes_128_cbc_sha,
433 &s2n_rsa_with_aes_128_gcm_sha256,
434 &s2n_rsa_with_aes_256_gcm_sha384,
435 &s2n_rsa_with_aes_128_cbc_sha256,
436 &s2n_rsa_with_aes_256_cbc_sha,
437 &s2n_rsa_with_aes_256_cbc_sha256,
438 &s2n_rsa_with_3des_ede_cbc_sha,
439 };
440
441 const struct s2n_cipher_preferences cipher_preferences_20190120 = {
442 .count = s2n_array_len(cipher_suites_20190120),
443 .suites = cipher_suites_20190120,
444 .allow_chacha20_boosting = false,
445 };
446
447 /* Preferences optimized for interop, includes ECDSA priortitized. DHE and 3DES are added(at the lowest preference). */
448 struct s2n_cipher_suite *cipher_suites_20190214[] = {
449 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
450 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
451 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
452 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
453 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
454 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
455 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
456 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
457 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
458 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
459 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
460 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
461 &s2n_rsa_with_aes_128_cbc_sha,
462 &s2n_rsa_with_aes_128_gcm_sha256,
463 &s2n_rsa_with_aes_256_gcm_sha384,
464 &s2n_rsa_with_aes_128_cbc_sha256,
465 &s2n_rsa_with_aes_256_cbc_sha,
466 &s2n_rsa_with_aes_256_cbc_sha256,
467 &s2n_rsa_with_3des_ede_cbc_sha,
468 &s2n_dhe_rsa_with_aes_128_cbc_sha,
469 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
470 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
471 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
472 &s2n_dhe_rsa_with_aes_256_cbc_sha,
473 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
474 };
475
476 const struct s2n_cipher_preferences cipher_preferences_20190214 = {
477 .count = s2n_array_len(cipher_suites_20190214),
478 .suites = cipher_suites_20190214,
479 .allow_chacha20_boosting = false,
480 };
481
482 /* 20190214 with aes-gcm prioritized above aes-cbc */
483 struct s2n_cipher_suite *cipher_suites_20190214_gcm[] = {
484 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
485 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
486 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
487 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
488 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
489 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
490 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
491 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
492 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
493 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
494 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
495 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
496 &s2n_rsa_with_aes_128_gcm_sha256,
497 &s2n_rsa_with_aes_256_gcm_sha384,
498 &s2n_rsa_with_aes_128_cbc_sha,
499 &s2n_rsa_with_aes_128_cbc_sha256,
500 &s2n_rsa_with_aes_256_cbc_sha,
501 &s2n_rsa_with_aes_256_cbc_sha256,
502 &s2n_rsa_with_3des_ede_cbc_sha,
503 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
504 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
505 &s2n_dhe_rsa_with_aes_128_cbc_sha,
506 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
507 &s2n_dhe_rsa_with_aes_256_cbc_sha,
508 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
509 };
510
511 const struct s2n_cipher_preferences cipher_preferences_20190214_gcm = {
512 .count = s2n_array_len(cipher_suites_20190214_gcm),
513 .suites = cipher_suites_20190214_gcm,
514 .allow_chacha20_boosting = false,
515 };
516
517 /* Same as cipher_suites_20190214, but with TLS 1.3 Ciphers */
518 struct s2n_cipher_suite *cipher_suites_20210825[] = {
519 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
520 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
521 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
522 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
523 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
524 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
525 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
526 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
527 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
528 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
529 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
530 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
531 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
532 &s2n_rsa_with_aes_128_cbc_sha,
533 &s2n_rsa_with_aes_128_gcm_sha256,
534 &s2n_rsa_with_aes_256_gcm_sha384,
535 &s2n_rsa_with_aes_128_cbc_sha256,
536 &s2n_rsa_with_aes_256_cbc_sha,
537 &s2n_rsa_with_aes_256_cbc_sha256,
538 &s2n_rsa_with_3des_ede_cbc_sha,
539 &s2n_dhe_rsa_with_aes_128_cbc_sha,
540 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
541 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
542 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
543 &s2n_dhe_rsa_with_aes_256_cbc_sha,
544 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
545 };
546
547 const struct s2n_cipher_preferences cipher_preferences_20210825 = {
548 .count = s2n_array_len(cipher_suites_20210825),
549 .suites = cipher_suites_20210825,
550 .allow_chacha20_boosting = false,
551 };
552
553 /* Same as cipher_suites_20190214_gcm, but with TLS 1.3 Ciphers */
554 struct s2n_cipher_suite *cipher_suites_20210825_gcm[] = {
555 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
556 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
557 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
558 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
559 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
560 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
561 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
562 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
563 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
564 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
565 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
566 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
567 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
568 &s2n_rsa_with_aes_128_gcm_sha256,
569 &s2n_rsa_with_aes_256_gcm_sha384,
570 &s2n_rsa_with_aes_128_cbc_sha,
571 &s2n_rsa_with_aes_128_cbc_sha256,
572 &s2n_rsa_with_aes_256_cbc_sha,
573 &s2n_rsa_with_aes_256_cbc_sha256,
574 &s2n_rsa_with_3des_ede_cbc_sha,
575 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
576 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
577 &s2n_dhe_rsa_with_aes_128_cbc_sha,
578 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
579 &s2n_dhe_rsa_with_aes_256_cbc_sha,
580 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
581 };
582
583 const struct s2n_cipher_preferences cipher_preferences_20210825_gcm = {
584 .count = s2n_array_len(cipher_suites_20210825_gcm),
585 .suites = cipher_suites_20210825_gcm,
586 .allow_chacha20_boosting = false,
587 };
588
589 /* Same as cipher_suites_20210825, but with 3DES removed */
590 struct s2n_cipher_suite *cipher_suites_20241008[] = {
591 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
592 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
593 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
594 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
595 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
596 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
597 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
598 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
599 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
600 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
601 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
602 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
603 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
604 &s2n_rsa_with_aes_128_cbc_sha,
605 &s2n_rsa_with_aes_128_gcm_sha256,
606 &s2n_rsa_with_aes_256_gcm_sha384,
607 &s2n_rsa_with_aes_128_cbc_sha256,
608 &s2n_rsa_with_aes_256_cbc_sha,
609 &s2n_rsa_with_aes_256_cbc_sha256,
610 &s2n_dhe_rsa_with_aes_128_cbc_sha,
611 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
612 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
613 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
614 &s2n_dhe_rsa_with_aes_256_cbc_sha,
615 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
616 };
617
618 const struct s2n_cipher_preferences cipher_preferences_20241008 = {
619 .count = s2n_array_len(cipher_suites_20241008),
620 .suites = cipher_suites_20241008,
621 .allow_chacha20_boosting = false,
622 };
623
624 /* Same as cipher_suites_20210825_gcm and cipher_suites_pq_tls_1_0_2021_05_26, but with 3DES removed */
625 struct s2n_cipher_suite *cipher_suites_20241008_gcm[] = {
626 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
627 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
628 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
629 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
630 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
631 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
632 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
633 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
634 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
635 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
636 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
637 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
638 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
639 &s2n_rsa_with_aes_128_gcm_sha256,
640 &s2n_rsa_with_aes_256_gcm_sha384,
641 &s2n_rsa_with_aes_128_cbc_sha,
642 &s2n_rsa_with_aes_128_cbc_sha256,
643 &s2n_rsa_with_aes_256_cbc_sha,
644 &s2n_rsa_with_aes_256_cbc_sha256,
645 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
646 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
647 &s2n_dhe_rsa_with_aes_128_cbc_sha,
648 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
649 &s2n_dhe_rsa_with_aes_256_cbc_sha,
650 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
651 };
652
653 const struct s2n_cipher_preferences cipher_preferences_20241008_gcm = {
654 .count = s2n_array_len(cipher_suites_20241008_gcm),
655 .suites = cipher_suites_20241008_gcm,
656 .allow_chacha20_boosting = false,
657 };
658
659 struct s2n_cipher_suite *cipher_suites_20241009[] = {
660 S2N_TLS13_CIPHER_SUITES_20190801,
661 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
662 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
663 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
664 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
665 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
666 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
667 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
668 &s2n_dhe_rsa_with_aes_256_cbc_sha,
669 &s2n_dhe_rsa_with_aes_128_cbc_sha,
670 };
671
672 const struct s2n_cipher_preferences cipher_preferences_20241009 = {
673 .count = s2n_array_len(cipher_suites_20241009),
674 .suites = cipher_suites_20241009,
675 .allow_chacha20_boosting = false,
676 };
677
678 struct s2n_cipher_suite *cipher_suites_null[] = {
679 &s2n_null_cipher_suite
680 };
681
682 const struct s2n_cipher_preferences cipher_preferences_null = {
683 .count = s2n_array_len(cipher_suites_null),
684 .suites = cipher_suites_null,
685 .allow_chacha20_boosting = false,
686 };
687
688 /* Preferences optimized for interop. DHE and 3DES are added(at the lowest preference). */
689 struct s2n_cipher_suite *cipher_suites_20170328[] = {
690 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
691 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
692 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
693 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
694 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
695 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
696 &s2n_rsa_with_aes_128_cbc_sha,
697 &s2n_rsa_with_aes_128_gcm_sha256,
698 &s2n_rsa_with_aes_256_gcm_sha384,
699 &s2n_rsa_with_aes_128_cbc_sha256,
700 &s2n_rsa_with_aes_256_cbc_sha,
701 &s2n_rsa_with_aes_256_cbc_sha256,
702 &s2n_rsa_with_3des_ede_cbc_sha,
703 &s2n_dhe_rsa_with_aes_128_cbc_sha,
704 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
705 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
706 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
707 &s2n_dhe_rsa_with_aes_256_cbc_sha,
708 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
709 };
710
711 const struct s2n_cipher_preferences cipher_preferences_20170328 = {
712 .count = s2n_array_len(cipher_suites_20170328),
713 .suites = cipher_suites_20170328,
714 .allow_chacha20_boosting = false,
715 };
716
717 /* Equivalent to cipher_suites_20170328 with aes-gcm prioritized above aes-cbc */
718 struct s2n_cipher_suite *cipher_suites_20170328_gcm[] = {
719 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
720 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
721 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
722 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
723 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
724 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
725 &s2n_rsa_with_aes_128_gcm_sha256,
726 &s2n_rsa_with_aes_256_gcm_sha384,
727 &s2n_rsa_with_aes_128_cbc_sha,
728 &s2n_rsa_with_aes_128_cbc_sha256,
729 &s2n_rsa_with_aes_256_cbc_sha,
730 &s2n_rsa_with_aes_256_cbc_sha256,
731 &s2n_rsa_with_3des_ede_cbc_sha,
732 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
733 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
734 &s2n_dhe_rsa_with_aes_128_cbc_sha,
735 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
736 &s2n_dhe_rsa_with_aes_256_cbc_sha,
737 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
738 };
739
740 const struct s2n_cipher_preferences cipher_preferences_20170328_gcm = {
741 .count = s2n_array_len(cipher_suites_20170328_gcm),
742 .suites = cipher_suites_20170328_gcm,
743 .allow_chacha20_boosting = false,
744 };
745
746 /* Preferences optimized for FIPS compatibility. */
747 struct s2n_cipher_suite *cipher_suites_20170405[] = {
748 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
749 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
750 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
751 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
752 &s2n_rsa_with_aes_128_cbc_sha,
753 &s2n_rsa_with_aes_128_gcm_sha256,
754 &s2n_rsa_with_aes_256_gcm_sha384,
755 &s2n_rsa_with_aes_128_cbc_sha256,
756 &s2n_rsa_with_aes_256_cbc_sha,
757 &s2n_rsa_with_aes_256_cbc_sha256,
758 &s2n_rsa_with_3des_ede_cbc_sha,
759 };
760
761 const struct s2n_cipher_preferences cipher_preferences_20170405 = {
762 .count = s2n_array_len(cipher_suites_20170405),
763 .suites = cipher_suites_20170405,
764 .allow_chacha20_boosting = false,
765 };
766
767 /* Preferences optimized for FIPS compatibility with GCM prioritized */
768 struct s2n_cipher_suite *cipher_suites_20170405_gcm[] = {
769 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
770 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
771 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
772 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
773 &s2n_rsa_with_aes_128_gcm_sha256,
774 &s2n_rsa_with_aes_256_gcm_sha384,
775 &s2n_rsa_with_aes_128_cbc_sha,
776 &s2n_rsa_with_aes_128_cbc_sha256,
777 &s2n_rsa_with_aes_256_cbc_sha,
778 &s2n_rsa_with_aes_256_cbc_sha256,
779 &s2n_rsa_with_3des_ede_cbc_sha,
780 };
781
782 const struct s2n_cipher_preferences cipher_preferences_20170405_gcm = {
783 .count = s2n_array_len(cipher_suites_20170405_gcm),
784 .suites = cipher_suites_20170405_gcm,
785 .allow_chacha20_boosting = false,
786 };
787
788 /* Equivalent to cipher_suite_20160411 with 3DES removed.
789 * Make a CBC cipher #1 to avoid negotiating GCM with buggy Java clients. */
790 struct s2n_cipher_suite *cipher_suites_20170718[] = {
791 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
792 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
793 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
794 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
795 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
796 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
797 &s2n_rsa_with_aes_128_cbc_sha,
798 &s2n_rsa_with_aes_128_gcm_sha256,
799 &s2n_rsa_with_aes_256_gcm_sha384,
800 &s2n_rsa_with_aes_128_cbc_sha256,
801 &s2n_rsa_with_aes_256_cbc_sha,
802 &s2n_rsa_with_aes_256_cbc_sha256,
803 };
804
805 const struct s2n_cipher_preferences cipher_preferences_20170718 = {
806 .count = s2n_array_len(cipher_suites_20170718),
807 .suites = cipher_suites_20170718,
808 .allow_chacha20_boosting = false,
809 };
810
811 /* Equivalent to cipher_suites_20170718 with aes-gcm prioritized above aes-cbc */
812 struct s2n_cipher_suite *cipher_suites_20170718_gcm[] = {
813 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
814 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
815 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
816 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
817 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
818 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
819 &s2n_rsa_with_aes_128_gcm_sha256,
820 &s2n_rsa_with_aes_256_gcm_sha384,
821 &s2n_rsa_with_aes_128_cbc_sha,
822 &s2n_rsa_with_aes_128_cbc_sha256,
823 &s2n_rsa_with_aes_256_cbc_sha,
824 &s2n_rsa_with_aes_256_cbc_sha256,
825 };
826
827 const struct s2n_cipher_preferences cipher_preferences_20170718_gcm = {
828 .count = s2n_array_len(cipher_suites_20170718_gcm),
829 .suites = cipher_suites_20170718_gcm,
830 .allow_chacha20_boosting = false,
831 };
832
833 struct s2n_cipher_suite *cipher_suites_elb_security_policy_2015_04[] = {
834 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
835 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
836 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
837 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
838 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
839 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
840 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
841 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
842 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
843 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
844 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
845 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
846 &s2n_rsa_with_aes_128_gcm_sha256,
847 &s2n_rsa_with_aes_128_cbc_sha256,
848 &s2n_rsa_with_aes_128_cbc_sha,
849 &s2n_rsa_with_aes_256_gcm_sha384,
850 &s2n_rsa_with_aes_256_cbc_sha256,
851 &s2n_rsa_with_aes_256_cbc_sha,
852 &s2n_rsa_with_3des_ede_cbc_sha,
853 };
854
855 const struct s2n_cipher_preferences elb_security_policy_2015_04 = {
856 .count = s2n_array_len(cipher_suites_elb_security_policy_2015_04),
857 .suites = cipher_suites_elb_security_policy_2015_04,
858 .allow_chacha20_boosting = false,
859 };
860
861 struct s2n_cipher_suite *cipher_suites_elb_security_policy_2016_08[] = {
862 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
863 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
864 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
865 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
866 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
867 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
868 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
869 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
870 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
871 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
872 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
873 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
874 &s2n_rsa_with_aes_128_gcm_sha256,
875 &s2n_rsa_with_aes_128_cbc_sha256,
876 &s2n_rsa_with_aes_128_cbc_sha,
877 &s2n_rsa_with_aes_256_gcm_sha384,
878 &s2n_rsa_with_aes_256_cbc_sha256,
879 &s2n_rsa_with_aes_256_cbc_sha,
880 };
881
882 const struct s2n_cipher_preferences elb_security_policy_2016_08 = {
883 .count = s2n_array_len(cipher_suites_elb_security_policy_2016_08),
884 .suites = cipher_suites_elb_security_policy_2016_08,
885 .allow_chacha20_boosting = false,
886 };
887
888 struct s2n_cipher_suite *cipher_suites_elb_security_policy_tls_1_2_2017_01[] = {
889 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
890 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
891 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
892 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
893 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
894 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
895 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
896 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
897 &s2n_rsa_with_aes_128_gcm_sha256,
898 &s2n_rsa_with_aes_128_cbc_sha256,
899 &s2n_rsa_with_aes_256_gcm_sha384,
900 &s2n_rsa_with_aes_256_cbc_sha256,
901 };
902
903 const struct s2n_cipher_preferences elb_security_policy_tls_1_2_2017_01 = {
904 .count = s2n_array_len(cipher_suites_elb_security_policy_tls_1_2_2017_01),
905 .suites = cipher_suites_elb_security_policy_tls_1_2_2017_01,
906 .allow_chacha20_boosting = false,
907 };
908
909 struct s2n_cipher_suite *cipher_suites_elb_security_policy_tls_1_1_2017_01[] = {
910 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
911 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
912 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
913 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
914 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
915 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
916 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
917 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
918 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
919 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
920 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
921 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
922 &s2n_rsa_with_aes_128_gcm_sha256,
923 &s2n_rsa_with_aes_128_cbc_sha256,
924 &s2n_rsa_with_aes_128_cbc_sha,
925 &s2n_rsa_with_aes_256_gcm_sha384,
926 &s2n_rsa_with_aes_256_cbc_sha256,
927 &s2n_rsa_with_aes_256_cbc_sha,
928 };
929
930 const struct s2n_cipher_preferences elb_security_policy_tls_1_1_2017_01 = {
931 .count = s2n_array_len(cipher_suites_elb_security_policy_tls_1_1_2017_01),
932 .suites = cipher_suites_elb_security_policy_tls_1_1_2017_01,
933 .allow_chacha20_boosting = false,
934 };
935
936 struct s2n_cipher_suite *cipher_suites_elb_security_policy_tls_1_2_ext_2018_06[] = {
937 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
938 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
939 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
940 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
941 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
942 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
943 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
944 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
945 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
946 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
947 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
948 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
949 &s2n_rsa_with_aes_128_gcm_sha256,
950 &s2n_rsa_with_aes_128_cbc_sha256,
951 &s2n_rsa_with_aes_128_cbc_sha,
952 &s2n_rsa_with_aes_256_gcm_sha384,
953 &s2n_rsa_with_aes_256_cbc_sha256,
954 &s2n_rsa_with_aes_256_cbc_sha,
955 };
956
957 const struct s2n_cipher_preferences elb_security_policy_tls_1_2_ext_2018_06 = {
958 .count = s2n_array_len(cipher_suites_elb_security_policy_tls_1_2_ext_2018_06),
959 .suites = cipher_suites_elb_security_policy_tls_1_2_ext_2018_06,
960 .allow_chacha20_boosting = false,
961 };
962
963 struct s2n_cipher_suite *cipher_suites_elb_security_policy_fs_2018_06[] = {
964 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
965 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
966 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
967 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
968 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
969 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
970 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
971 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
972 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
973 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
974 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
975 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
976 };
977
978 const struct s2n_cipher_preferences elb_security_policy_fs_2018_06 = {
979 .count = s2n_array_len(cipher_suites_elb_security_policy_fs_2018_06),
980 .suites = cipher_suites_elb_security_policy_fs_2018_06,
981 .allow_chacha20_boosting = false,
982 };
983
984 struct s2n_cipher_suite *cipher_suites_elb_security_policy_fs_1_2_2019_08[] = {
985 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
986 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
987 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
988 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
989 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
990 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
991 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
992 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
993 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
994 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
995 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
996 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
997 };
998
999 const struct s2n_cipher_preferences elb_security_policy_fs_1_2_2019_08 = {
1000 .count = s2n_array_len(cipher_suites_elb_security_policy_fs_1_2_2019_08),
1001 .suites = cipher_suites_elb_security_policy_fs_1_2_2019_08,
1002 .allow_chacha20_boosting = false,
1003 };
1004
1005 struct s2n_cipher_suite *cipher_suites_elb_security_policy_fs_1_1_2019_08[] = {
1006 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1007 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1008 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1009 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1010 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1011 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1012 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1013 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1014 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1015 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1016 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1017 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1018 };
1019
1020 const struct s2n_cipher_preferences elb_security_policy_fs_1_1_2019_08 = {
1021 .count = s2n_array_len(cipher_suites_elb_security_policy_fs_1_1_2019_08),
1022 .suites = cipher_suites_elb_security_policy_fs_1_1_2019_08,
1023 .allow_chacha20_boosting = false,
1024 };
1025
1026 struct s2n_cipher_suite *cipher_suites_elb_security_policy_fs_1_2_Res_2019_08[] = {
1027 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1028 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1029 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1030 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1031 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1032 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1033 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1034 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1035 };
1036
1037 const struct s2n_cipher_preferences elb_security_policy_fs_1_2_Res_2019_08 = {
1038 .count = s2n_array_len(cipher_suites_elb_security_policy_fs_1_2_Res_2019_08),
1039 .suites = cipher_suites_elb_security_policy_fs_1_2_Res_2019_08,
1040 .allow_chacha20_boosting = false,
1041 };
1042
1043 /*
1044 * S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716 on top of cipher_suites_elb_security_policy_tls_1_2_ext_2018_06
1045 */
1046 struct s2n_cipher_suite *cipher_suites_elb_security_policy_tls13_1_2_Ext2_2021_06[] = {
1047 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1048 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1049 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1050 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1051 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1052 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1053 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1054 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1055 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1056 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1057 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1058 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1059 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1060 &s2n_rsa_with_aes_128_gcm_sha256,
1061 &s2n_rsa_with_aes_128_cbc_sha256,
1062 &s2n_rsa_with_aes_128_cbc_sha,
1063 &s2n_rsa_with_aes_256_gcm_sha384,
1064 &s2n_rsa_with_aes_256_cbc_sha256,
1065 &s2n_rsa_with_aes_256_cbc_sha,
1066 };
1067
1068 const struct s2n_cipher_preferences elb_security_policy_tls13_1_2_Ext2_2021_06 = {
1069 .count = s2n_array_len(cipher_suites_elb_security_policy_tls13_1_2_Ext2_2021_06),
1070 .suites = cipher_suites_elb_security_policy_tls13_1_2_Ext2_2021_06,
1071 };
1072
1073 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream[] = {
1074 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1075 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1076 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1077 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1078 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1079 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1080 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1081 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1082 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1083 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1084 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1085 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1086 &s2n_rsa_with_aes_256_gcm_sha384,
1087 &s2n_rsa_with_aes_128_gcm_sha256,
1088 &s2n_rsa_with_aes_256_cbc_sha,
1089 &s2n_rsa_with_aes_128_cbc_sha256,
1090 &s2n_rsa_with_aes_128_cbc_sha,
1091 &s2n_rsa_with_3des_ede_cbc_sha,
1092 &s2n_rsa_with_rc4_128_md5
1093 };
1094
1095 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream = {
1096 .count = s2n_array_len(cipher_suites_cloudfront_upstream),
1097 .suites = cipher_suites_cloudfront_upstream,
1098 .allow_chacha20_boosting = false,
1099 };
1100
1101 /* CloudFront viewer facing (with TLS 1.3) */
1102 struct s2n_cipher_suite *cipher_suites_cloudfront_ssl_v_3[] = {
1103 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1104 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1105 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1106 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1107 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1108 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1109 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1110 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1111 &s2n_rsa_with_aes_128_gcm_sha256,
1112 &s2n_rsa_with_aes_256_gcm_sha384,
1113 &s2n_rsa_with_aes_128_cbc_sha256,
1114 &s2n_rsa_with_aes_256_cbc_sha,
1115 &s2n_rsa_with_aes_128_cbc_sha,
1116 &s2n_rsa_with_3des_ede_cbc_sha,
1117 &s2n_rsa_with_rc4_128_md5
1118 };
1119
1120 const struct s2n_cipher_preferences cipher_preferences_cloudfront_ssl_v_3 = {
1121 .count = s2n_array_len(cipher_suites_cloudfront_ssl_v_3),
1122 .suites = cipher_suites_cloudfront_ssl_v_3,
1123 .allow_chacha20_boosting = false,
1124 };
1125
1126 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_0_2014[] = {
1127 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1128 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1129 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1130 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1131 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1132 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1133 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1134 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1135 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1136 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1137 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1138 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1139 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1140 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1141 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1142 &s2n_rsa_with_aes_128_gcm_sha256,
1143 &s2n_rsa_with_aes_256_gcm_sha384,
1144 &s2n_rsa_with_aes_128_cbc_sha256,
1145 &s2n_rsa_with_aes_256_cbc_sha,
1146 &s2n_rsa_with_aes_128_cbc_sha,
1147 &s2n_rsa_with_3des_ede_cbc_sha,
1148 };
1149
1150 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_0_2014 = {
1151 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_0_2014),
1152 .suites = cipher_suites_cloudfront_tls_1_0_2014,
1153 .allow_chacha20_boosting = false,
1154 };
1155
1156 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_0_2014_sha256[] = {
1157 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1158 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1159 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1160 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1161 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1162 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1163 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1164 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1165 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1166 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1167 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1168 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1169 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1170 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1171 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1172 &s2n_rsa_with_aes_128_gcm_sha256,
1173 &s2n_rsa_with_aes_256_gcm_sha384,
1174 &s2n_rsa_with_aes_128_cbc_sha256,
1175 &s2n_rsa_with_aes_128_cbc_sha,
1176 &s2n_rsa_with_aes_256_cbc_sha256,
1177 &s2n_rsa_with_aes_256_cbc_sha,
1178 &s2n_rsa_with_3des_ede_cbc_sha,
1179 };
1180
1181 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_0_2014_sha256 = {
1182 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_0_2014_sha256),
1183 .suites = cipher_suites_cloudfront_tls_1_0_2014_sha256,
1184 };
1185
1186 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_0_2016[] = {
1187 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1188 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1189 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1190 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1191 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1192 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1193 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1194 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1195 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1196 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1197 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1198 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1199 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1200 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1201 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1202 &s2n_rsa_with_aes_128_gcm_sha256,
1203 &s2n_rsa_with_aes_256_gcm_sha384,
1204 &s2n_rsa_with_aes_128_cbc_sha256,
1205 &s2n_rsa_with_aes_256_cbc_sha,
1206 &s2n_rsa_with_aes_128_cbc_sha
1207 };
1208
1209 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_0_2016 = {
1210 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_0_2016),
1211 .suites = cipher_suites_cloudfront_tls_1_0_2016,
1212 .allow_chacha20_boosting = false,
1213 };
1214
1215 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_1_2016[] = {
1216 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1217 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1218 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1219 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1220 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1221 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1222 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1223 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1224 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1225 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1226 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1227 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1228 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1229 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1230 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1231 &s2n_rsa_with_aes_128_gcm_sha256,
1232 &s2n_rsa_with_aes_256_gcm_sha384,
1233 &s2n_rsa_with_aes_128_cbc_sha256,
1234 &s2n_rsa_with_aes_256_cbc_sha,
1235 &s2n_rsa_with_aes_128_cbc_sha
1236 };
1237
1238 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_1_2016 = {
1239 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_1_2016),
1240 .suites = cipher_suites_cloudfront_tls_1_1_2016,
1241 .allow_chacha20_boosting = false,
1242 };
1243
1244 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2017[] = {
1245 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1246 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1247 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1248 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1249 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1250 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1251 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1252 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1253 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1254 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1255 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1256 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1257 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1258 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1259 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1260 &s2n_rsa_with_aes_128_gcm_sha256,
1261 &s2n_rsa_with_aes_256_gcm_sha384,
1262 &s2n_rsa_with_aes_128_cbc_sha256
1263 };
1264
1265 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2017 = {
1266 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2017),
1267 .suites = cipher_suites_cloudfront_tls_1_2_2017,
1268 .allow_chacha20_boosting = false,
1269 };
1270
1271 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2018[] = {
1272 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1273 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1274 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1275 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1276 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1277 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1278 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1279 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1280 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1281 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1282 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1283 &s2n_rsa_with_aes_128_gcm_sha256,
1284 &s2n_rsa_with_aes_256_gcm_sha384,
1285 &s2n_rsa_with_aes_128_cbc_sha256
1286 };
1287
1288 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2018 = {
1289 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2018),
1290 .suites = cipher_suites_cloudfront_tls_1_2_2018,
1291 .allow_chacha20_boosting = false,
1292 };
1293
1294 /* TLS 1.3 beta policy */
1295 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2018_beta[] = {
1296 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1297 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1298 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1299 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1300 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1301 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1302 &s2n_rsa_with_aes_128_gcm_sha256,
1303 &s2n_rsa_with_aes_256_gcm_sha384,
1304 &s2n_rsa_with_aes_128_cbc_sha256
1305 };
1306
1307 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2018_beta = {
1308 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2018_beta),
1309 .suites = cipher_suites_cloudfront_tls_1_2_2018_beta,
1310 };
1311
1312 /* CloudFront viewer facing legacy TLS 1.2 policies */
1313 struct s2n_cipher_suite *cipher_suites_cloudfront_ssl_v_3_legacy[] = {
1314 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1315 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1316 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1317 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1318 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1319 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1320 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1321 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1322 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1323 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1324 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1325 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1326 &s2n_rsa_with_aes_128_gcm_sha256,
1327 &s2n_rsa_with_aes_256_gcm_sha384,
1328 &s2n_rsa_with_aes_128_cbc_sha256,
1329 &s2n_rsa_with_aes_256_cbc_sha,
1330 &s2n_rsa_with_aes_128_cbc_sha,
1331 &s2n_rsa_with_3des_ede_cbc_sha,
1332 &s2n_rsa_with_rc4_128_md5
1333 };
1334
1335 const struct s2n_cipher_preferences cipher_preferences_cloudfront_ssl_v_3_legacy = {
1336 .count = s2n_array_len(cipher_suites_cloudfront_ssl_v_3_legacy),
1337 .suites = cipher_suites_cloudfront_ssl_v_3_legacy,
1338 .allow_chacha20_boosting = false,
1339 };
1340
1341 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_0_2014_legacy[] = {
1342 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1343 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1344 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1345 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1346 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1347 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1348 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1349 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1350 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1351 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1352 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1353 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1354 &s2n_rsa_with_aes_128_gcm_sha256,
1355 &s2n_rsa_with_aes_256_gcm_sha384,
1356 &s2n_rsa_with_aes_128_cbc_sha256,
1357 &s2n_rsa_with_aes_256_cbc_sha,
1358 &s2n_rsa_with_aes_128_cbc_sha,
1359 &s2n_rsa_with_3des_ede_cbc_sha,
1360 };
1361
1362 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_0_2014_legacy = {
1363 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_0_2014_legacy),
1364 .suites = cipher_suites_cloudfront_tls_1_0_2014_legacy,
1365 .allow_chacha20_boosting = false,
1366 };
1367
1368 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_0_2016_legacy[] = {
1369 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1370 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1371 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1372 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1373 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1374 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1375 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1376 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1377 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1378 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1379 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1380 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1381 &s2n_rsa_with_aes_128_gcm_sha256,
1382 &s2n_rsa_with_aes_256_gcm_sha384,
1383 &s2n_rsa_with_aes_128_cbc_sha256,
1384 &s2n_rsa_with_aes_256_cbc_sha,
1385 &s2n_rsa_with_aes_128_cbc_sha
1386 };
1387
1388 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_0_2016_legacy = {
1389 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_0_2016_legacy),
1390 .suites = cipher_suites_cloudfront_tls_1_0_2016_legacy,
1391 .allow_chacha20_boosting = false,
1392 };
1393
1394 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_1_2016_legacy[] = {
1395 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1396 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1397 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1398 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1399 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1400 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1401 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1402 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1403 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1404 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1405 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1406 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1407 &s2n_rsa_with_aes_128_gcm_sha256,
1408 &s2n_rsa_with_aes_256_gcm_sha384,
1409 &s2n_rsa_with_aes_128_cbc_sha256,
1410 &s2n_rsa_with_aes_256_cbc_sha,
1411 &s2n_rsa_with_aes_128_cbc_sha
1412 };
1413
1414 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_1_2016_legacy = {
1415 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_1_2016_legacy),
1416 .suites = cipher_suites_cloudfront_tls_1_1_2016_legacy,
1417 .allow_chacha20_boosting = false,
1418 };
1419
1420 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2018_legacy[] = {
1421 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1422 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1423 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1424 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1425 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1426 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1427 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1428 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1429 &s2n_rsa_with_aes_128_gcm_sha256,
1430 &s2n_rsa_with_aes_256_gcm_sha384,
1431 &s2n_rsa_with_aes_128_cbc_sha256
1432 };
1433
1434 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2018_legacy = {
1435 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2018_legacy),
1436 .suites = cipher_suites_cloudfront_tls_1_2_2018_legacy,
1437 .allow_chacha20_boosting = false,
1438 };
1439
1440 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2019_legacy[] = {
1441 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1442 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1443 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1444 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1445 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1446 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1447 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1448 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256
1449 };
1450
1451 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2019_legacy = {
1452 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2019_legacy),
1453 .suites = cipher_suites_cloudfront_tls_1_2_2019_legacy,
1454 .allow_chacha20_boosting = false,
1455 };
1456
1457 /* CloudFront upstream */
1458 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream_tls10[] = {
1459 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1460 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1461 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1462 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1463 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1464 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1465 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1466 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1467 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1468 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1469 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1470 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1471 &s2n_rsa_with_aes_256_gcm_sha384,
1472 &s2n_rsa_with_aes_128_gcm_sha256,
1473 &s2n_rsa_with_aes_256_cbc_sha,
1474 &s2n_rsa_with_aes_128_cbc_sha256,
1475 &s2n_rsa_with_aes_128_cbc_sha,
1476 &s2n_rsa_with_3des_ede_cbc_sha,
1477 &s2n_rsa_with_rc4_128_md5
1478 };
1479
1480 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream_tls10 = {
1481 .count = s2n_array_len(cipher_suites_cloudfront_upstream_tls10),
1482 .suites = cipher_suites_cloudfront_upstream_tls10,
1483 .allow_chacha20_boosting = false,
1484 };
1485
1486 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream_tls11[] = {
1487 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1488 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1489 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1490 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1491 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1492 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1493 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1494 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1495 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1496 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1497 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1498 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1499 &s2n_rsa_with_aes_256_gcm_sha384,
1500 &s2n_rsa_with_aes_128_gcm_sha256,
1501 &s2n_rsa_with_aes_256_cbc_sha,
1502 &s2n_rsa_with_aes_128_cbc_sha256,
1503 &s2n_rsa_with_aes_128_cbc_sha,
1504 &s2n_rsa_with_3des_ede_cbc_sha,
1505 &s2n_rsa_with_rc4_128_md5
1506 };
1507
1508 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream_tls11 = {
1509 .count = s2n_array_len(cipher_suites_cloudfront_upstream_tls11),
1510 .suites = cipher_suites_cloudfront_upstream_tls11,
1511 .allow_chacha20_boosting = false,
1512 };
1513
1514 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream_tls12[] = {
1515 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1516 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1517 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1518 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1519 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1520 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1521 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1522 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1523 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1524 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1525 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1526 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1527 &s2n_rsa_with_aes_256_gcm_sha384,
1528 &s2n_rsa_with_aes_128_gcm_sha256,
1529 &s2n_rsa_with_aes_256_cbc_sha,
1530 &s2n_rsa_with_aes_128_cbc_sha256,
1531 &s2n_rsa_with_aes_128_cbc_sha,
1532 &s2n_rsa_with_3des_ede_cbc_sha,
1533 &s2n_rsa_with_rc4_128_md5
1534 };
1535
1536 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream_tls12 = {
1537 .count = s2n_array_len(cipher_suites_cloudfront_upstream_tls12),
1538 .suites = cipher_suites_cloudfront_upstream_tls12,
1539 .allow_chacha20_boosting = false,
1540 };
1541
1542 /* CloudFront upstream with TLS 1.3 enabled */
1543 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream_2025_08_08[] = {
1544 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1545 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1546 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1547 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1548 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1549 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1550 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1551 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1552 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1553 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1554 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1555 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1556 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1557 &s2n_rsa_with_aes_128_gcm_sha256,
1558 &s2n_rsa_with_aes_256_gcm_sha384,
1559 &s2n_rsa_with_aes_128_cbc_sha256,
1560 &s2n_rsa_with_aes_128_cbc_sha,
1561 &s2n_rsa_with_aes_256_cbc_sha,
1562 &s2n_rsa_with_3des_ede_cbc_sha,
1563 &s2n_rsa_with_rc4_128_md5,
1564 };
1565
1566 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream_2025_08_08 = {
1567 .count = s2n_array_len(cipher_suites_cloudfront_upstream_2025_08_08),
1568 .suites = cipher_suites_cloudfront_upstream_2025_08_08,
1569 .allow_chacha20_boosting = false,
1570 };
1571
1572 struct s2n_cipher_suite *cipher_suites_cloudfront_upstream_2025_08_08_tls13[] = {
1573 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1574 };
1575
1576 const struct s2n_cipher_preferences cipher_preferences_cloudfront_upstream_2025_08_08_tls13 = {
1577 .count = s2n_array_len(cipher_suites_cloudfront_upstream_2025_08_08_tls13),
1578 .suites = cipher_suites_cloudfront_upstream_2025_08_08_tls13,
1579 .allow_chacha20_boosting = false,
1580 };
1581
1582 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2019[] = {
1583 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1584 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1585 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1586 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1587 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1588 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1589 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1590 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1591 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1592 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1593 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256
1594 };
1595
1596 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2019 = {
1597 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2019),
1598 .suites = cipher_suites_cloudfront_tls_1_2_2019,
1599 .allow_chacha20_boosting = false,
1600 };
1601
1602 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2021[] = {
1603 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1604 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1605 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1606 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1607 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1608 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1609 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256
1610 };
1611
1612 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2021 = {
1613 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2021),
1614 .suites = cipher_suites_cloudfront_tls_1_2_2021,
1615 .allow_chacha20_boosting = false,
1616 };
1617
1618 /* Duplicate of cipher_preferences_cloudfront_tls_1_2_2021 but with allow_chacha20_boosting enabled */
1619 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2021_chacha20_boosted = {
1620 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2021),
1621 .suites = cipher_suites_cloudfront_tls_1_2_2021,
1622 .allow_chacha20_boosting = true,
1623 };
1624
1625 /* FIPS 140-3 compliant version of cipher_preferences_cloudfront_tls_1_2_2021 */
1626 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_2_2025[] = {
1627 &s2n_tls13_aes_128_gcm_sha256,
1628 &s2n_tls13_aes_256_gcm_sha384,
1629 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1630 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1631 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1632 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384
1633 };
1634
1635 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_2_2025 = {
1636 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_2_2025),
1637 .suites = cipher_suites_cloudfront_tls_1_2_2025,
1638 .allow_chacha20_boosting = false,
1639 };
1640
1641 struct s2n_cipher_suite *cipher_suites_cloudfront_tls_1_3_2025[] = {
1642 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716
1643 };
1644
1645 const struct s2n_cipher_preferences cipher_preferences_cloudfront_tls_1_3_2025 = {
1646 .count = s2n_array_len(cipher_suites_cloudfront_tls_1_3_2025),
1647 .suites = cipher_suites_cloudfront_tls_1_3_2025,
1648 .allow_chacha20_boosting = false,
1649 };
1650
1651 /* Based on cipher_preferences_cloudfront_tls_1_0_2016, but with ordering changed and AES256-SHA256, DES-CBC3-SHA, and
1652 * RC4-MD5 added for compatibility. */
1653 struct s2n_cipher_suite *cipher_suites_aws_crt_sdk_ssl_v3[] = {
1654 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1655 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1656 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1657 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1658 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1659 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1660 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1661 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1662 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1663 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1664 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1665 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1666 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1667 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1668 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1669 &s2n_rsa_with_aes_128_gcm_sha256,
1670 &s2n_rsa_with_aes_256_gcm_sha384,
1671 &s2n_rsa_with_aes_128_cbc_sha256,
1672 &s2n_rsa_with_aes_256_cbc_sha256,
1673 &s2n_rsa_with_aes_128_cbc_sha,
1674 &s2n_rsa_with_aes_256_cbc_sha,
1675 &s2n_rsa_with_3des_ede_cbc_sha,
1676 &s2n_rsa_with_rc4_128_md5
1677 };
1678
1679 const struct s2n_cipher_preferences cipher_preferences_aws_crt_sdk_ssl_v3 = {
1680 .count = s2n_array_len(cipher_suites_aws_crt_sdk_ssl_v3),
1681 .suites = cipher_suites_aws_crt_sdk_ssl_v3,
1682 .allow_chacha20_boosting = false,
1683 };
1684
1685 /* Based on cipher_preferences_cloudfront_tls_1_0_2016, but with ordering changed and AES256-SHA256 added for
1686 * compatibility. */
1687 struct s2n_cipher_suite *cipher_suites_aws_crt_sdk_default[] = {
1688 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1689 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1690 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1691 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1692 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1693 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1694 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1695 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1696 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1697 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1698 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1699 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1700 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1701 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1702 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1703 &s2n_rsa_with_aes_128_gcm_sha256,
1704 &s2n_rsa_with_aes_256_gcm_sha384,
1705 &s2n_rsa_with_aes_128_cbc_sha256,
1706 &s2n_rsa_with_aes_256_cbc_sha256,
1707 &s2n_rsa_with_aes_128_cbc_sha,
1708 &s2n_rsa_with_aes_256_cbc_sha,
1709 };
1710
1711 const struct s2n_cipher_preferences cipher_preferences_aws_crt_sdk_default = {
1712 .count = s2n_array_len(cipher_suites_aws_crt_sdk_default),
1713 .suites = cipher_suites_aws_crt_sdk_default,
1714 .allow_chacha20_boosting = false,
1715 };
1716
1717 struct s2n_cipher_suite *cipher_suites_aws_crt_sdk_2025[] = {
1718 &s2n_tls13_aes_128_gcm_sha256,
1719 &s2n_tls13_aes_256_gcm_sha384,
1720 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1721 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1722 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1723 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1724 };
1725
1726 const struct s2n_cipher_preferences cipher_preferences_aws_crt_sdk_2025 = {
1727 .count = s2n_array_len(cipher_suites_aws_crt_sdk_2025),
1728 .suites = cipher_suites_aws_crt_sdk_2025,
1729 .allow_chacha20_boosting = false,
1730 };
1731
1732 struct s2n_cipher_suite *cipher_suites_aws_crt_sdk_tls_13[] = {
1733 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716
1734 };
1735
1736 const struct s2n_cipher_preferences cipher_preferences_aws_crt_sdk_tls_13 = {
1737 .count = s2n_array_len(cipher_suites_aws_crt_sdk_tls_13),
1738 .suites = cipher_suites_aws_crt_sdk_tls_13,
1739 .allow_chacha20_boosting = false,
1740 };
1741
1742 struct s2n_cipher_suite *cipher_suites_kms_tls_1_0_2018_10[] = {
1743 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1744 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1745 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1746 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1747 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1748 &s2n_ecdhe_rsa_with_3des_ede_cbc_sha,
1749 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
1750 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
1751 &s2n_dhe_rsa_with_aes_256_cbc_sha,
1752 &s2n_dhe_rsa_with_aes_128_cbc_sha,
1753 };
1754
1755 const struct s2n_cipher_preferences cipher_preferences_kms_tls_1_0_2018_10 = {
1756 .count = s2n_array_len(cipher_suites_kms_tls_1_0_2018_10),
1757 .suites = cipher_suites_kms_tls_1_0_2018_10,
1758 .allow_chacha20_boosting = false,
1759 };
1760
1761
1762 struct s2n_cipher_suite *cipher_suites_kms_tls_1_0_2021_08[] = {
1763 S2N_TLS13_CLOUDFRONT_CIPHER_SUITES_20200716,
1764 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1765 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1766 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1767 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1768 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1769 &s2n_ecdhe_rsa_with_3des_ede_cbc_sha,
1770 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
1771 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
1772 &s2n_dhe_rsa_with_aes_256_cbc_sha,
1773 &s2n_dhe_rsa_with_aes_128_cbc_sha,
1774 };
1775
1776 const struct s2n_cipher_preferences cipher_preferences_kms_tls_1_0_2021_08 = {
1777 .count = s2n_array_len(cipher_suites_kms_tls_1_0_2021_08),
1778 .suites = cipher_suites_kms_tls_1_0_2021_08,
1779 .allow_chacha20_boosting = false,
1780 };
1781
1782
1783 struct s2n_cipher_suite *cipher_suites_20231213[] = {
1784 &s2n_tls13_aes_128_gcm_sha256,
1785 &s2n_tls13_aes_256_gcm_sha384,
1786 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1787 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1788 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1789 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1790 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1791 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1792 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1793 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1794 &s2n_rsa_with_aes_128_gcm_sha256,
1795 &s2n_rsa_with_aes_256_gcm_sha384,
1796 &s2n_rsa_with_aes_128_cbc_sha256,
1797 &s2n_rsa_with_aes_256_cbc_sha256,
1798 };
1799
1800 const struct s2n_cipher_preferences cipher_preferences_20231213 = {
1801 .count = s2n_array_len(cipher_suites_20231213),
1802 .suites = cipher_suites_20231213,
1803 };
1804
1805 struct s2n_cipher_suite *cipher_suites_20231214[] = {
1806 &s2n_tls13_aes_128_gcm_sha256,
1807 &s2n_tls13_aes_256_gcm_sha384,
1808 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1809 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1810 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1811 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1812 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1813 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1814 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1815 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1816 };
1817
1818 const struct s2n_cipher_preferences cipher_preferences_20231214 = {
1819 .count = s2n_array_len(cipher_suites_20231214),
1820 .suites = cipher_suites_20231214,
1821 };
1822
1823 struct s2n_cipher_suite *cipher_suites_kms_fips_tls_1_2_2018_10[] = {
1824 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1825 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1826 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1827 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1828 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
1829 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
1830 };
1831
1832 const struct s2n_cipher_preferences cipher_preferences_kms_fips_tls_1_2_2018_10 = {
1833 .count = s2n_array_len(cipher_suites_kms_fips_tls_1_2_2018_10),
1834 .suites = cipher_suites_kms_fips_tls_1_2_2018_10,
1835 .allow_chacha20_boosting = false,
1836 };
1837
1838 struct s2n_cipher_suite *cipher_suites_kms_fips_tls_1_2_2021_08[] = {
1839 &s2n_tls13_aes_128_gcm_sha256,
1840 &s2n_tls13_aes_256_gcm_sha384,
1841 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1842 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1843 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1844 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1845 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
1846 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
1847 };
1848
1849 const struct s2n_cipher_preferences cipher_preferences_kms_fips_tls_1_2_2021_08 = {
1850 .count = s2n_array_len(cipher_suites_kms_fips_tls_1_2_2021_08),
1851 .suites = cipher_suites_kms_fips_tls_1_2_2021_08,
1852 .allow_chacha20_boosting = false,
1853 };
1854
1855 struct s2n_cipher_suite *cipher_suites_20210816[] = {
1856 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1857 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1858 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1859 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1860 };
1861
1862 const struct s2n_cipher_preferences cipher_preferences_20210816 = {
1863 .count = s2n_array_len(cipher_suites_20210816),
1864 .suites = cipher_suites_20210816,
1865 .allow_chacha20_boosting = false,
1866 };
1867
1868 struct s2n_cipher_suite *cipher_suites_20210816_gcm[] = {
1869 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1870 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1871 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1872 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1873 };
1874
1875 const struct s2n_cipher_preferences cipher_preferences_20210816_gcm = {
1876 .count = s2n_array_len(cipher_suites_20210816_gcm),
1877 .suites = cipher_suites_20210816_gcm,
1878 .allow_chacha20_boosting = false,
1879 };
1880
1881 /* Cipher suite options for backwards compatibility with older clients,
1882 * while prioritizing forward secret key exchange and ECDSA certificates.
1883 */
1884 struct s2n_cipher_suite *cipher_suites_20240603[] = {
1885 /* TLS1.3 suites */
1886 &s2n_tls13_aes_128_gcm_sha256,
1887 &s2n_tls13_aes_256_gcm_sha384,
1888 &s2n_tls13_chacha20_poly1305_sha256,
1889
1890 /* Preferred ECDHE + ECDSA suites */
1891 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1892 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
1893 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1894 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
1895 &s2n_ecdhe_ecdsa_with_chacha20_poly1305_sha256,
1896
1897 /* Preferred ECDHE + RSA suites */
1898 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1899 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
1900 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1901 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
1902 &s2n_ecdhe_rsa_with_chacha20_poly1305_sha256,
1903
1904 /* Legacy ECDHE suites */
1905 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
1906 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
1907 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
1908 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
1909
1910 /* DHE suites */
1911 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
1912 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
1913 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
1914 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
1915 &s2n_dhe_rsa_with_aes_128_cbc_sha,
1916 &s2n_dhe_rsa_with_aes_256_cbc_sha,
1917
1918 /* 3DES suites */
1919 &s2n_ecdhe_rsa_with_3des_ede_cbc_sha,
1920 &s2n_dhe_rsa_with_3des_ede_cbc_sha,
1921
1922 /* RSA kex suites */
1923 &s2n_rsa_with_aes_128_gcm_sha256,
1924 &s2n_rsa_with_aes_128_cbc_sha256,
1925 &s2n_rsa_with_aes_256_gcm_sha384,
1926 &s2n_rsa_with_aes_256_cbc_sha256,
1927 &s2n_rsa_with_aes_128_cbc_sha,
1928 &s2n_rsa_with_aes_256_cbc_sha,
1929 &s2n_rsa_with_3des_ede_cbc_sha,
1930 };
1931
1932 const struct s2n_cipher_preferences cipher_preferences_20240603 = {
1933 .count = s2n_array_len(cipher_suites_20240603),
1934 .suites = cipher_suites_20240603,
1935 .allow_chacha20_boosting = true,
1936 };
1937
1938 struct s2n_cipher_suite *cipher_suites_20250429[] = {
1939 /* TLS1.2 */
1940 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1941 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1942 &s2n_rsa_with_aes_256_gcm_sha384,
1943 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
1944
1945 /* TLS1.3 */
1946 &s2n_tls13_aes_256_gcm_sha384,
1947 };
1948
1949 const struct s2n_cipher_preferences cipher_preferences_20250429 = {
1950 .count = s2n_array_len(cipher_suites_20250429),
1951 .suites = cipher_suites_20250429,
1952 .allow_chacha20_boosting = false,
1953 };
1954
1955 struct s2n_cipher_suite *cipher_suites_20251013[] = {
1956 /* TLS1.2 */
1957 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1958 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1959
1960 /* TLS1.3 */
1961 &s2n_tls13_aes_256_gcm_sha384,
1962 };
1963
1964 const struct s2n_cipher_preferences cipher_preferences_20251013 = {
1965 .count = s2n_array_len(cipher_suites_20251013),
1966 .suites = cipher_suites_20251013,
1967 .allow_chacha20_boosting = false,
1968 };
1969
1970 struct s2n_cipher_suite *cipher_suites_20250211[] = {
1971 /* TLS1.3 */
1972 &s2n_tls13_aes_256_gcm_sha384,
1973 };
1974
1975 const struct s2n_cipher_preferences cipher_preferences_20250211 = {
1976 .count = s2n_array_len(cipher_suites_20250211),
1977 .suites = cipher_suites_20250211,
1978 .allow_chacha20_boosting = false,
1979 };
1980
1981 struct s2n_cipher_suite *cipher_suites_20251113[] = {
1982 &s2n_tls13_aes_256_gcm_sha384,
1983 &s2n_tls13_aes_128_gcm_sha256,
1984 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
1985 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
1986 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
1987 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
1988 };
1989
1990 const struct s2n_cipher_preferences cipher_preferences_20251113 = {
1991 .count = s2n_array_len(cipher_suites_20251113),
1992 .suites = cipher_suites_20251113,
1993 .allow_chacha20_boosting = false,
1994 };
1995
1996 struct s2n_cipher_suite *cipher_suites_20251114[] = {
1997 &s2n_tls13_aes_256_gcm_sha384,
1998 &s2n_tls13_aes_128_gcm_sha256,
1999 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2000 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2001 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2002 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2003 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2004 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2005 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2006 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2007 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2008 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2009 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2010 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2011 };
2012
2013 const struct s2n_cipher_preferences cipher_preferences_20251114 = {
2014 .count = s2n_array_len(cipher_suites_20251114),
2015 .suites = cipher_suites_20251114,
2016 .allow_chacha20_boosting = false,
2017 };
2018
2019 struct s2n_cipher_suite *cipher_suites_20251115[] = {
2020 &s2n_tls13_aes_256_gcm_sha384,
2021 &s2n_tls13_aes_128_gcm_sha256,
2022 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2023 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2024 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2025 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2026 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2027 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2028 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2029 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2030 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2031 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2032 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2033 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2034 &s2n_rsa_with_aes_256_gcm_sha384,
2035 &s2n_rsa_with_aes_256_cbc_sha256,
2036 &s2n_rsa_with_aes_256_cbc_sha,
2037 &s2n_rsa_with_aes_128_gcm_sha256,
2038 &s2n_rsa_with_aes_128_cbc_sha256,
2039 &s2n_rsa_with_aes_128_cbc_sha,
2040 };
2041
2042 const struct s2n_cipher_preferences cipher_preferences_20251115 = {
2043 .count = s2n_array_len(cipher_suites_20251115),
2044 .suites = cipher_suites_20251115,
2045 .allow_chacha20_boosting = false,
2046 };
2047
2048 struct s2n_cipher_suite *cipher_suites_20251116[] = {
2049 &s2n_tls13_aes_256_gcm_sha384,
2050 &s2n_tls13_aes_128_gcm_sha256,
2051 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2052 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2053 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2054 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2055 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2056 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2057 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2058 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2059 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2060 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2061 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2062 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2063 &s2n_rsa_with_aes_256_gcm_sha384,
2064 &s2n_rsa_with_aes_256_cbc_sha256,
2065 &s2n_rsa_with_aes_256_cbc_sha,
2066 &s2n_rsa_with_aes_128_gcm_sha256,
2067 &s2n_rsa_with_aes_128_cbc_sha256,
2068 &s2n_rsa_with_aes_128_cbc_sha,
2069 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
2070 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
2071 &s2n_dhe_rsa_with_aes_256_cbc_sha,
2072 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
2073 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
2074 &s2n_dhe_rsa_with_aes_128_cbc_sha,
2075 };
2076
2077 const struct s2n_cipher_preferences cipher_preferences_20251116 = {
2078 .count = s2n_array_len(cipher_suites_20251116),
2079 .suites = cipher_suites_20251116,
2080 .allow_chacha20_boosting = false,
2081 };
2082
2083 struct s2n_cipher_suite *cipher_suites_20251117[] = {
2084 &s2n_tls13_aes_256_gcm_sha384,
2085 &s2n_tls13_aes_128_gcm_sha256,
2086 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2087 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2088 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2089 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2090 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2091 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2092 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2093 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2094 };
2095
2096 const struct s2n_cipher_preferences cipher_preferences_20251117 = {
2097 .count = s2n_array_len(cipher_suites_20251117),
2098 .suites = cipher_suites_20251117,
2099 .allow_chacha20_boosting = false,
2100 };
2101
2102 struct s2n_cipher_suite *cipher_suites_20260220[] = {
2103 /* TLS1.3 */
2104 &s2n_tls13_aes_256_gcm_sha384,
2105
2106 /* TLS1.2 */
2107 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2108 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2109 };
2110
2111 const struct s2n_cipher_preferences cipher_preferences_20260220 = {
2112 .count = s2n_array_len(cipher_suites_20260220),
2113 .suites = cipher_suites_20260220,
2114 .allow_chacha20_boosting = false,
2115 };
2116
2117 /* Same as cipher_suites_20190214_gcm, but with TLS 1.3 ciphers prepended for PQ support */
2118 struct s2n_cipher_suite *cipher_suites_20260520_gcm[] = {
2119 /* TLS 1.3 */
2120 &s2n_tls13_aes_128_gcm_sha256,
2121 &s2n_tls13_aes_256_gcm_sha384,
2122
2123 /* TLS 1.2 */
2124 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2125 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2126 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2127 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2128 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2129 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2130 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2131 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2132 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2133 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2134 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2135 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2136 &s2n_rsa_with_aes_128_gcm_sha256,
2137 &s2n_rsa_with_aes_256_gcm_sha384,
2138 &s2n_rsa_with_aes_128_cbc_sha,
2139 &s2n_rsa_with_aes_128_cbc_sha256,
2140 &s2n_rsa_with_aes_256_cbc_sha,
2141 &s2n_rsa_with_aes_256_cbc_sha256,
2142 &s2n_rsa_with_3des_ede_cbc_sha,
2143 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
2144 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
2145 &s2n_dhe_rsa_with_aes_128_cbc_sha,
2146 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
2147 &s2n_dhe_rsa_with_aes_256_cbc_sha,
2148 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
2149 };
2150
2151 const struct s2n_cipher_preferences cipher_preferences_20260520_gcm = {
2152 .count = s2n_array_len(cipher_suites_20260520_gcm),
2153 .suites = cipher_suites_20260520_gcm,
2154 .allow_chacha20_boosting = false,
2155 };
2156
2157 /* Same as cipher_suites_20190214, but with TLS 1.3 ciphers prepended for PQ support */
2158 struct s2n_cipher_suite *cipher_suites_20260520[] = {
2159 /* TLS 1.3 */
2160 &s2n_tls13_aes_128_gcm_sha256,
2161 &s2n_tls13_aes_256_gcm_sha384,
2162
2163 /* TLS 1.2 */
2164 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2165 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2166 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2167 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2168 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2169 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2170 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2171 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2172 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2173 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2174 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2175 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2176 &s2n_rsa_with_aes_128_cbc_sha,
2177 &s2n_rsa_with_aes_128_gcm_sha256,
2178 &s2n_rsa_with_aes_256_gcm_sha384,
2179 &s2n_rsa_with_aes_128_cbc_sha256,
2180 &s2n_rsa_with_aes_256_cbc_sha,
2181 &s2n_rsa_with_aes_256_cbc_sha256,
2182 &s2n_rsa_with_3des_ede_cbc_sha,
2183 &s2n_dhe_rsa_with_aes_128_cbc_sha,
2184 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
2185 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
2186 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
2187 &s2n_dhe_rsa_with_aes_256_cbc_sha,
2188 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
2189 };
2190
2191 const struct s2n_cipher_preferences cipher_preferences_20260520 = {
2192 .count = s2n_array_len(cipher_suites_20260520),
2193 .suites = cipher_suites_20260520,
2194 .allow_chacha20_boosting = false,
2195 };
2196
2197 struct s2n_cipher_suite *cipher_suites_20260521[] = {
2198 /* TLS 1.3 */
2199 &s2n_tls13_aes_128_gcm_sha256,
2200 &s2n_tls13_aes_256_gcm_sha384,
2201
2202 /* TLS 1.2 */
2203 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2204 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2205 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2206 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2207 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2208 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2209 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2210 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2211 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2212 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2213 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2214 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2215 &s2n_rsa_with_aes_128_cbc_sha,
2216 &s2n_rsa_with_aes_128_gcm_sha256,
2217 &s2n_rsa_with_aes_256_gcm_sha384,
2218 &s2n_rsa_with_aes_128_cbc_sha256,
2219 &s2n_rsa_with_aes_256_cbc_sha,
2220 &s2n_rsa_with_aes_256_cbc_sha256,
2221 };
2222
2223 const struct s2n_cipher_preferences cipher_preferences_20260521 = {
2224 .count = s2n_array_len(cipher_suites_20260521),
2225 .suites = cipher_suites_20260521,
2226 .allow_chacha20_boosting = false,
2227 };
2228
2229 struct s2n_cipher_suite *cipher_suites_20260521_gcm[] = {
2230 /* TLS 1.3 */
2231 &s2n_tls13_aes_128_gcm_sha256,
2232 &s2n_tls13_aes_256_gcm_sha384,
2233
2234 /* TLS 1.2 */
2235 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2236 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2237 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2238 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2239 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2240 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2241 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2242 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2243 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2244 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2245 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2246 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2247 &s2n_rsa_with_aes_128_gcm_sha256,
2248 &s2n_rsa_with_aes_256_gcm_sha384,
2249 &s2n_rsa_with_aes_128_cbc_sha,
2250 &s2n_rsa_with_aes_128_cbc_sha256,
2251 &s2n_rsa_with_aes_256_cbc_sha,
2252 &s2n_rsa_with_aes_256_cbc_sha256,
2253 };
2254
2255 const struct s2n_cipher_preferences cipher_preferences_20260521_gcm = {
2256 .count = s2n_array_len(cipher_suites_20260521_gcm),
2257 .suites = cipher_suites_20260521_gcm,
2258 .allow_chacha20_boosting = false,
2259 };
2260
2261 struct s2n_cipher_suite *cipher_suites_20260522[] = {
2262 /* TLS 1.3 */
2263 &s2n_tls13_aes_128_gcm_sha256,
2264 &s2n_tls13_aes_256_gcm_sha384,
2265
2266 /* TLS 1.2 */
2267 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2268 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2269 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2270 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2271 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2272 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2273 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2274 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2275 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2276 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2277 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2278 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2279 };
2280
2281 const struct s2n_cipher_preferences cipher_preferences_20260522 = {
2282 .count = s2n_array_len(cipher_suites_20260522),
2283 .suites = cipher_suites_20260522,
2284 .allow_chacha20_boosting = false,
2285 };
2286
2287 struct s2n_cipher_suite *cipher_suites_20260522_gcm[] = {
2288 /* TLS 1.3 */
2289 &s2n_tls13_aes_128_gcm_sha256,
2290 &s2n_tls13_aes_256_gcm_sha384,
2291
2292 /* TLS 1.2 */
2293 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2294 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2295 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2296 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2297 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2298 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2299 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2300 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2301 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2302 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2303 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2304 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2305 };
2306
2307 const struct s2n_cipher_preferences cipher_preferences_20260522_gcm = {
2308 .count = s2n_array_len(cipher_suites_20260522_gcm),
2309 .suites = cipher_suites_20260522_gcm,
2310 .allow_chacha20_boosting = false,
2311 };
2312
2313 struct s2n_cipher_suite *cipher_suites_20260523[] = {
2314 /* TLS 1.3 */
2315 &s2n_tls13_aes_128_gcm_sha256,
2316 &s2n_tls13_aes_256_gcm_sha384,
2317
2318 /* TLS 1.2 */
2319 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2320 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2321 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2322 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2323 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2324 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2325 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2326 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2327 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2328 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2329 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2330 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2331 &s2n_rsa_with_aes_128_cbc_sha,
2332 &s2n_rsa_with_aes_128_gcm_sha256,
2333 &s2n_rsa_with_aes_256_gcm_sha384,
2334 &s2n_rsa_with_aes_128_cbc_sha256,
2335 &s2n_rsa_with_aes_256_cbc_sha,
2336 &s2n_rsa_with_aes_256_cbc_sha256,
2337 &s2n_dhe_rsa_with_aes_128_cbc_sha,
2338 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
2339 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
2340 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
2341 &s2n_dhe_rsa_with_aes_256_cbc_sha,
2342 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
2343 };
2344
2345 const struct s2n_cipher_preferences cipher_preferences_20260523 = {
2346 .count = s2n_array_len(cipher_suites_20260523),
2347 .suites = cipher_suites_20260523,
2348 .allow_chacha20_boosting = false,
2349 };
2350
2351 struct s2n_cipher_suite *cipher_suites_20260523_gcm[] = {
2352 /* TLS 1.3 */
2353 &s2n_tls13_aes_128_gcm_sha256,
2354 &s2n_tls13_aes_256_gcm_sha384,
2355
2356 /* TLS 1.2 */
2357 &s2n_ecdhe_ecdsa_with_aes_128_gcm_sha256,
2358 &s2n_ecdhe_rsa_with_aes_128_gcm_sha256,
2359 &s2n_ecdhe_ecdsa_with_aes_256_gcm_sha384,
2360 &s2n_ecdhe_rsa_with_aes_256_gcm_sha384,
2361 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha,
2362 &s2n_ecdhe_rsa_with_aes_128_cbc_sha,
2363 &s2n_ecdhe_ecdsa_with_aes_128_cbc_sha256,
2364 &s2n_ecdhe_rsa_with_aes_128_cbc_sha256,
2365 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha,
2366 &s2n_ecdhe_rsa_with_aes_256_cbc_sha,
2367 &s2n_ecdhe_ecdsa_with_aes_256_cbc_sha384,
2368 &s2n_ecdhe_rsa_with_aes_256_cbc_sha384,
2369 &s2n_rsa_with_aes_128_gcm_sha256,
2370 &s2n_rsa_with_aes_256_gcm_sha384,
2371 &s2n_rsa_with_aes_128_cbc_sha,
2372 &s2n_rsa_with_aes_128_cbc_sha256,
2373 &s2n_rsa_with_aes_256_cbc_sha,
2374 &s2n_rsa_with_aes_256_cbc_sha256,
2375 &s2n_dhe_rsa_with_aes_128_gcm_sha256,
2376 &s2n_dhe_rsa_with_aes_256_gcm_sha384,
2377 &s2n_dhe_rsa_with_aes_128_cbc_sha,
2378 &s2n_dhe_rsa_with_aes_128_cbc_sha256,
2379 &s2n_dhe_rsa_with_aes_256_cbc_sha,
2380 &s2n_dhe_rsa_with_aes_256_cbc_sha256,
2381 };
2382
2383 const struct s2n_cipher_preferences cipher_preferences_20260523_gcm = {
2384 .count = s2n_array_len(cipher_suites_20260523_gcm),
2385 .suites = cipher_suites_20260523_gcm,
2386 .allow_chacha20_boosting = false,
2387 };
2388
2389 /* clang-format on */