ciphers.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. /* Here are the TLS1.3 ciphers. Note that we don't have XCIPHER instances
  9. * here, since we don't want to ever fake them.
  10. */
  11. #ifdef TLS1_3_TXT_AES_128_GCM_SHA256
  12. CIPHER(0x1301, TLS1_3_TXT_AES_128_GCM_SHA256)
  13. #endif
  14. #ifdef TLS1_3_TXT_AES_256_GCM_SHA384
  15. CIPHER(0x1302, TLS1_3_TXT_AES_256_GCM_SHA384)
  16. #endif
  17. #ifdef TLS1_3_TXT_CHACHA20_POLY1305_SHA256
  18. CIPHER(0x1303, TLS1_3_TXT_CHACHA20_POLY1305_SHA256)
  19. #endif
  20. #ifdef TLS1_3_TXT_AES_128_CCM_SHA256
  21. CIPHER(0x1304, TLS1_3_TXT_AES_128_CCM_SHA256)
  22. #endif
  23. /* Here's the machine-generated list. */
  24. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  25. CIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
  26. #else
  27. XCIPHER(0xc02b, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
  28. #endif
  29. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  30. CIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
  31. #else
  32. XCIPHER(0xc02f, TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
  33. #endif
  34. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
  35. CIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
  36. #else
  37. XCIPHER(0xcca9, TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
  38. #endif
  39. #ifdef TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305
  40. CIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
  41. #else
  42. XCIPHER(0xcca8, TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305)
  43. #endif
  44. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
  45. CIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
  46. #else
  47. XCIPHER(0xc02c, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384)
  48. #endif
  49. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  50. CIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
  51. #else
  52. XCIPHER(0xc030, TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
  53. #endif
  54. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
  55. CIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
  56. #else
  57. XCIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
  58. #endif
  59. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
  60. CIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
  61. #else
  62. XCIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
  63. #endif
  64. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA
  65. CIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
  66. #else
  67. XCIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
  68. #endif
  69. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA
  70. CIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
  71. #else
  72. XCIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
  73. #endif
  74. #ifdef TLS1_TXT_DHE_RSA_WITH_AES_128_SHA
  75. CIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
  76. #else
  77. XCIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
  78. #endif
  79. #ifdef TLS1_TXT_DHE_RSA_WITH_AES_256_SHA
  80. CIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
  81. #else
  82. XCIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
  83. #endif
  84. #ifdef TLS1_TXT_RSA_WITH_AES_128_SHA
  85. CIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
  86. #else
  87. XCIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
  88. #endif
  89. #ifdef TLS1_TXT_RSA_WITH_AES_256_SHA
  90. CIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
  91. #else
  92. XCIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
  93. #endif
  94. #ifdef SSL3_TXT_RSA_DES_192_CBC3_SHA
  95. CIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
  96. #else
  97. XCIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
  98. #endif