mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
101 lines
3.4 KiB
C++
101 lines
3.4 KiB
C++
/* This is an include file used to define the list of ciphers clients should
|
|
* advertise. Before including it, you should define the CIPHER and XCIPHER
|
|
* macros.
|
|
*
|
|
* This file was automatically generated by get_mozilla_ciphers.py;
|
|
* TLSv1.3 ciphers were added manually.
|
|
*/
|
|
|
|
/* Here are the TLS1.3 ciphers. Note that we don't have XCIPHER instances
|
|
* here, since we don't want to ever fake them.
|
|
*/
|
|
#ifdef TLS1_3_TXT_AES_128_GCM_SHA256
|
|
CIPHER(0x1301, TLS1_3_TXT_AES_128_GCM_SHA256)
|
|
#endif
|
|
#ifdef TLS1_3_TXT_AES_256_GCM_SHA384
|
|
CIPHER(0x1302, TLS1_3_TXT_AES_256_GCM_SHA384)
|
|
#endif
|
|
#ifdef TLS1_3_TXT_CHACHA20_POLY1305_SHA256
|
|
CIPHER(0x1303, TLS1_3_TXT_CHACHA20_POLY1305_SHA256)
|
|
#endif
|
|
#ifdef TLS1_3_TXT_AES_128_CCM_SHA256
|
|
CIPHER(0x1304, TLS1_3_TXT_AES_128_CCM_SHA256)
|
|
#endif
|
|
|
|
/* Here's the machine-generated list. */
|
|
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
|
|
CIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
|
|
#else
|
|
XCIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256
|
|
CIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
|
|
#else
|
|
XCIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
|
|
CIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
|
|
#else
|
|
XCIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305
|
|
CIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
|
|
#else
|
|
XCIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
|
|
CIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
|
|
#else
|
|
XCIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
|
CIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
|
|
#else
|
|
XCIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
|
|
CIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
|
|
#else
|
|
XCIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
|
|
CIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
|
|
#else
|
|
XCIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA
|
|
CIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
|
|
#else
|
|
XCIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA
|
|
CIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
|
|
#else
|
|
XCIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_DHE_RSA_WITH_AES_128_SHA
|
|
CIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
|
|
#else
|
|
XCIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_DHE_RSA_WITH_AES_256_SHA
|
|
CIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
|
|
#else
|
|
XCIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_RSA_WITH_AES_128_SHA
|
|
CIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
|
|
#else
|
|
XCIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
|
|
#endif
|
|
#ifdef TLS1_TXT_RSA_WITH_AES_256_SHA
|
|
CIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
|
|
#else
|
|
XCIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
|
|
#endif
|
|
#ifdef SSL3_TXT_RSA_DES_192_CBC3_SHA
|
|
CIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
|
|
#else
|
|
XCIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
|
|
#endif
|