1 /* This is an include file used to define the list of ciphers clients should
2 * advertise. Before including it, you should define the CIPHER and XCIPHER
5 * This file was automatically generated by get_mozilla_ciphers.py;
6 * TLSv1.3 ciphers were added manually.
9 /* Here are the TLS1.3 ciphers. Note that we don't have XCIPHER instances
10 * here, since we don't want to ever fake them.
12 #ifdef TLS1_3_TXT_AES_128_GCM_SHA256
13 CIPHER(0x1301, TLS1_3_TXT_AES_128_GCM_SHA256)
15 #ifdef TLS1_3_TXT_AES_256_GCM_SHA384
16 CIPHER(0x1302, TLS1_3_TXT_AES_256_GCM_SHA384)
18 #ifdef TLS1_3_TXT_CHACHA20_POLY1305_SHA256
19 CIPHER(0x1303, TLS1_3_TXT_CHACHA20_POLY1305_SHA256)
21 #ifdef TLS1_3_TXT_AES_128_CCM_SHA256
22 CIPHER(0x1304, TLS1_3_TXT_AES_128_CCM_SHA256)
25 /* Here's the machine-generated list. */
26 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
27 CIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
29 XCIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
31 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256
32 CIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
34 XCIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
36 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
37 CIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
39 XCIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
41 #ifdef TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305
42 CIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
44 XCIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
46 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
47 CIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
49 XCIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
51 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384
52 CIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
54 XCIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
56 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
57 CIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
59 XCIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
61 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
62 CIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
64 XCIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
66 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA
67 CIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
69 XCIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
71 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA
72 CIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
74 XCIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
76 #ifdef TLS1_TXT_DHE_RSA_WITH_AES_128_SHA
77 CIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
79 XCIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
81 #ifdef TLS1_TXT_DHE_RSA_WITH_AES_256_SHA
82 CIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
84 XCIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
86 #ifdef TLS1_TXT_RSA_WITH_AES_128_SHA
87 CIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
89 XCIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
91 #ifdef TLS1_TXT_RSA_WITH_AES_256_SHA
92 CIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
94 XCIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
96 #ifdef SSL3_TXT_RSA_DES_192_CBC3_SHA
97 CIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
99 XCIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)