Tor  0.4.6.0-alpha-dev
ciphers.inc
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
3  * macros.
4  *
5  * This file was automatically generated by get_mozilla_ciphers.py;
6  * TLSv1.3 ciphers were added manually.
7  */
8 
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.
11  */
12 #ifdef TLS1_3_TXT_AES_128_GCM_SHA256
13  CIPHER(0x1301, TLS1_3_TXT_AES_128_GCM_SHA256)
14 #endif
15 #ifdef TLS1_3_TXT_AES_256_GCM_SHA384
16  CIPHER(0x1302, TLS1_3_TXT_AES_256_GCM_SHA384)
17 #endif
18 #ifdef TLS1_3_TXT_CHACHA20_POLY1305_SHA256
19  CIPHER(0x1303, TLS1_3_TXT_CHACHA20_POLY1305_SHA256)
20 #endif
21 #ifdef TLS1_3_TXT_AES_128_CCM_SHA256
22  CIPHER(0x1304, TLS1_3_TXT_AES_128_CCM_SHA256)
23 #endif
24 
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)
28 #else
29  XCIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
30 #endif
31 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256
32  CIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
33 #else
34  XCIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
35 #endif
36 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
37  CIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
38 #else
39  XCIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
40 #endif
41 #ifdef TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305
42  CIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
43 #else
44  XCIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
45 #endif
46 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
47  CIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
48 #else
49  XCIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
50 #endif
51 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384
52  CIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
53 #else
54  XCIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
55 #endif
56 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
57  CIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
58 #else
59  XCIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
60 #endif
61 #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
62  CIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
63 #else
64  XCIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
65 #endif
66 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA
67  CIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
68 #else
69  XCIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
70 #endif
71 #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA
72  CIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
73 #else
74  XCIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
75 #endif
76 #ifdef TLS1_TXT_DHE_RSA_WITH_AES_128_SHA
77  CIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
78 #else
79  XCIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
80 #endif
81 #ifdef TLS1_TXT_DHE_RSA_WITH_AES_256_SHA
82  CIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
83 #else
84  XCIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
85 #endif
86 #ifdef TLS1_TXT_RSA_WITH_AES_128_SHA
87  CIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
88 #else
89  XCIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
90 #endif
91 #ifdef TLS1_TXT_RSA_WITH_AES_256_SHA
92  CIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
93 #else
94  XCIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
95 #endif
96 #ifdef SSL3_TXT_RSA_DES_192_CBC3_SHA
97  CIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
98 #else
99  XCIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
100 #endif