tls1.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  2. * All rights reserved.
  3. *
  4. * This package is an SSL implementation written
  5. * by Eric Young (eay@cryptsoft.com).
  6. * The implementation was written so as to conform with Netscapes SSL.
  7. *
  8. * This library is free for commercial and non-commercial use as long as
  9. * the following conditions are aheared to. The following conditions
  10. * apply to all code found in this distribution, be it the RC4, RSA,
  11. * lhash, DES, etc., code; not just the SSL code. The SSL documentation
  12. * included with this distribution is covered by the same copyright terms
  13. * except that the holder is Tim Hudson (tjh@cryptsoft.com).
  14. *
  15. * Copyright remains Eric Young's, and as such any Copyright notices in
  16. * the code are not to be removed.
  17. * If this package is used in a product, Eric Young should be given attribution
  18. * as the author of the parts of the library used.
  19. * This can be in the form of a textual message at program startup or
  20. * in documentation (online or textual) provided with the package.
  21. *
  22. * Redistribution and use in source and binary forms, with or without
  23. * modification, are permitted provided that the following conditions
  24. * are met:
  25. * 1. Redistributions of source code must retain the copyright
  26. * notice, this list of conditions and the following disclaimer.
  27. * 2. Redistributions in binary form must reproduce the above copyright
  28. * notice, this list of conditions and the following disclaimer in the
  29. * documentation and/or other materials provided with the distribution.
  30. * 3. All advertising materials mentioning features or use of this software
  31. * must display the following acknowledgement:
  32. * "This product includes cryptographic software written by
  33. * Eric Young (eay@cryptsoft.com)"
  34. * The word 'cryptographic' can be left out if the rouines from the library
  35. * being used are not cryptographic related :-).
  36. * 4. If you include any Windows specific code (or a derivative thereof) from
  37. * the apps directory (application code) you must include an acknowledgement:
  38. * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
  39. *
  40. * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
  41. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  42. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  43. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  44. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  45. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  46. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  47. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  48. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  49. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  50. * SUCH DAMAGE.
  51. *
  52. * The licence and distribution terms for any publically available version or
  53. * derivative of this code cannot be changed. i.e. this code cannot simply be
  54. * copied and put under another distribution licence
  55. * [including the GNU Public Licence.]
  56. */
  57. /* ====================================================================
  58. * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
  59. *
  60. * Redistribution and use in source and binary forms, with or without
  61. * modification, are permitted provided that the following conditions
  62. * are met:
  63. *
  64. * 1. Redistributions of source code must retain the above copyright
  65. * notice, this list of conditions and the following disclaimer.
  66. *
  67. * 2. Redistributions in binary form must reproduce the above copyright
  68. * notice, this list of conditions and the following disclaimer in
  69. * the documentation and/or other materials provided with the
  70. * distribution.
  71. *
  72. * 3. All advertising materials mentioning features or use of this
  73. * software must display the following acknowledgment:
  74. * "This product includes software developed by the OpenSSL Project
  75. * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
  76. *
  77. * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
  78. * endorse or promote products derived from this software without
  79. * prior written permission. For written permission, please contact
  80. * openssl-core@openssl.org.
  81. *
  82. * 5. Products derived from this software may not be called "OpenSSL"
  83. * nor may "OpenSSL" appear in their names without prior written
  84. * permission of the OpenSSL Project.
  85. *
  86. * 6. Redistributions of any form whatsoever must retain the following
  87. * acknowledgment:
  88. * "This product includes software developed by the OpenSSL Project
  89. * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
  90. *
  91. * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
  92. * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  93. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  94. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
  95. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  96. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  97. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  98. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  99. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  100. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  101. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  102. * OF THE POSSIBILITY OF SUCH DAMAGE.
  103. * ====================================================================
  104. *
  105. * This product includes cryptographic software written by Eric Young
  106. * (eay@cryptsoft.com). This product includes software written by Tim
  107. * Hudson (tjh@cryptsoft.com).
  108. *
  109. */
  110. /* ====================================================================
  111. * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
  112. *
  113. * Portions of the attached software ("Contribution") are developed by
  114. * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project.
  115. *
  116. * The Contribution is licensed pursuant to the OpenSSL open source
  117. * license provided above.
  118. *
  119. * ECC cipher suite support in OpenSSL originally written by
  120. * Vipul Gupta and Sumit Gupta of Sun Microsystems Laboratories.
  121. *
  122. */
  123. /* ====================================================================
  124. * Copyright 2005 Nokia. All rights reserved.
  125. *
  126. * The portions of the attached software ("Contribution") is developed by
  127. * Nokia Corporation and is licensed pursuant to the OpenSSL open source
  128. * license.
  129. *
  130. * The Contribution, originally written by Mika Kousa and Pasi Eronen of
  131. * Nokia Corporation, consists of the "PSK" (Pre-Shared Key) ciphersuites
  132. * support (see RFC 4279) to OpenSSL.
  133. *
  134. * No patent licenses or other rights except those expressly stated in
  135. * the OpenSSL open source license shall be deemed granted or received
  136. * expressly, by implication, estoppel, or otherwise.
  137. *
  138. * No assurances are provided by Nokia that the Contribution does not
  139. * infringe the patent or other intellectual property rights of any third
  140. * party or that the license provides you with all the necessary rights
  141. * to make use of the Contribution.
  142. *
  143. * THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IN
  144. * ADDITION TO THE DISCLAIMERS INCLUDED IN THE LICENSE, NOKIA
  145. * SPECIFICALLY DISCLAIMS ANY LIABILITY FOR CLAIMS BROUGHT BY YOU OR ANY
  146. * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR
  147. * OTHERWISE.
  148. */
  149. #ifndef OPENSSL_HEADER_TLS1_H
  150. #define OPENSSL_HEADER_TLS1_H
  151. #include <openssl/base.h>
  152. #ifdef __cplusplus
  153. extern "C" {
  154. #endif
  155. #define TLS1_AD_END_OF_EARLY_DATA 1
  156. #define TLS1_AD_DECRYPTION_FAILED 21
  157. #define TLS1_AD_RECORD_OVERFLOW 22
  158. #define TLS1_AD_UNKNOWN_CA 48
  159. #define TLS1_AD_ACCESS_DENIED 49
  160. #define TLS1_AD_DECODE_ERROR 50
  161. #define TLS1_AD_DECRYPT_ERROR 51
  162. #define TLS1_AD_EXPORT_RESTRICTION 60
  163. #define TLS1_AD_PROTOCOL_VERSION 70
  164. #define TLS1_AD_INSUFFICIENT_SECURITY 71
  165. #define TLS1_AD_INTERNAL_ERROR 80
  166. #define TLS1_AD_USER_CANCELLED 90
  167. #define TLS1_AD_NO_RENEGOTIATION 100
  168. #define TLS1_AD_MISSING_EXTENSION 109
  169. #define TLS1_AD_UNSUPPORTED_EXTENSION 110
  170. #define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111
  171. #define TLS1_AD_UNRECOGNIZED_NAME 112
  172. #define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113
  173. #define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114
  174. #define TLS1_AD_UNKNOWN_PSK_IDENTITY 115
  175. #define TLS1_AD_CERTIFICATE_REQUIRED 116
  176. #define TLS1_AD_NO_APPLICATION_PROTOCOL 120
  177. #define TLS1_AD_ECH_REQUIRED 121 // draft-ietf-tls-esni-13
  178. // ExtensionType values from RFC 6066
  179. #define TLSEXT_TYPE_server_name 0
  180. #define TLSEXT_TYPE_status_request 5
  181. // ExtensionType values from RFC 4492
  182. #define TLSEXT_TYPE_ec_point_formats 11
  183. // ExtensionType values from RFC 5246
  184. #define TLSEXT_TYPE_signature_algorithms 13
  185. // ExtensionType value from RFC 5764
  186. #define TLSEXT_TYPE_srtp 14
  187. // ExtensionType value from RFC 7301
  188. #define TLSEXT_TYPE_application_layer_protocol_negotiation 16
  189. // ExtensionType value from RFC 7685
  190. #define TLSEXT_TYPE_padding 21
  191. // ExtensionType value from RFC 7627
  192. #define TLSEXT_TYPE_extended_master_secret 23
  193. // ExtensionType value from draft-ietf-quic-tls. Drafts 00 through 32 use
  194. // 0xffa5 which is part of the Private Use section of the registry, and it
  195. // collides with TLS-LTS and, based on scans, something else too (though this
  196. // hasn't been a problem in practice since it's QUIC-only). Drafts 33 onward
  197. // use the value 57 which was officially registered with IANA.
  198. #define TLSEXT_TYPE_quic_transport_parameters_legacy 0xffa5
  199. // ExtensionType value from RFC 9000
  200. #define TLSEXT_TYPE_quic_transport_parameters 57
  201. // TLSEXT_TYPE_quic_transport_parameters_standard is an alias for
  202. // |TLSEXT_TYPE_quic_transport_parameters|. Use
  203. // |TLSEXT_TYPE_quic_transport_parameters| instead.
  204. #define TLSEXT_TYPE_quic_transport_parameters_standard \
  205. TLSEXT_TYPE_quic_transport_parameters
  206. // ExtensionType value from RFC 8879
  207. #define TLSEXT_TYPE_cert_compression 27
  208. // ExtensionType value from RFC 4507
  209. #define TLSEXT_TYPE_session_ticket 35
  210. // ExtensionType values from RFC 8446
  211. #define TLSEXT_TYPE_supported_groups 10
  212. #define TLSEXT_TYPE_pre_shared_key 41
  213. #define TLSEXT_TYPE_early_data 42
  214. #define TLSEXT_TYPE_supported_versions 43
  215. #define TLSEXT_TYPE_cookie 44
  216. #define TLSEXT_TYPE_psk_key_exchange_modes 45
  217. #define TLSEXT_TYPE_certificate_authorities 47
  218. #define TLSEXT_TYPE_signature_algorithms_cert 50
  219. #define TLSEXT_TYPE_key_share 51
  220. // ExtensionType value from RFC 5746
  221. #define TLSEXT_TYPE_renegotiate 0xff01
  222. // ExtensionType value from draft-ietf-tls-subcerts.
  223. #define TLSEXT_TYPE_delegated_credential 0x22
  224. // ExtensionType value from draft-vvv-tls-alps. This is not an IANA defined
  225. // extension number.
  226. #define TLSEXT_TYPE_application_settings 17513
  227. // ExtensionType values from draft-ietf-tls-esni-13. This is not an IANA defined
  228. // extension number.
  229. #define TLSEXT_TYPE_encrypted_client_hello 0xfe0d
  230. #define TLSEXT_TYPE_ech_outer_extensions 0xfd00
  231. // ExtensionType value from RFC 6962
  232. #define TLSEXT_TYPE_certificate_timestamp 18
  233. // This is not an IANA defined extension number
  234. #define TLSEXT_TYPE_next_proto_neg 13172
  235. // This is not an IANA defined extension number
  236. #define TLSEXT_TYPE_channel_id 30032
  237. // status request value from RFC 3546
  238. #define TLSEXT_STATUSTYPE_nothing (-1)
  239. #define TLSEXT_STATUSTYPE_ocsp 1
  240. // ECPointFormat values from RFC 4492
  241. #define TLSEXT_ECPOINTFORMAT_uncompressed 0
  242. #define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime 1
  243. // Signature and hash algorithms from RFC 5246
  244. #define TLSEXT_signature_anonymous 0
  245. #define TLSEXT_signature_rsa 1
  246. #define TLSEXT_signature_dsa 2
  247. #define TLSEXT_signature_ecdsa 3
  248. #define TLSEXT_hash_none 0
  249. #define TLSEXT_hash_md5 1
  250. #define TLSEXT_hash_sha1 2
  251. #define TLSEXT_hash_sha224 3
  252. #define TLSEXT_hash_sha256 4
  253. #define TLSEXT_hash_sha384 5
  254. #define TLSEXT_hash_sha512 6
  255. // From https://www.rfc-editor.org/rfc/rfc8879.html#section-3
  256. #define TLSEXT_cert_compression_zlib 1
  257. #define TLSEXT_cert_compression_brotli 2
  258. #define TLSEXT_MAXLEN_host_name 255
  259. // PSK ciphersuites from 4279
  260. #define TLS1_CK_PSK_WITH_RC4_128_SHA 0x0300008A
  261. #define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008B
  262. #define TLS1_CK_PSK_WITH_AES_128_CBC_SHA 0x0300008C
  263. #define TLS1_CK_PSK_WITH_AES_256_CBC_SHA 0x0300008D
  264. // PSK ciphersuites from RFC 5489
  265. #define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA 0x0300C035
  266. #define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA 0x0300C036
  267. // Additional TLS ciphersuites from expired Internet Draft
  268. // draft-ietf-tls-56-bit-ciphersuites-01.txt
  269. // (available if TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES is defined, see
  270. // s3_lib.c). We actually treat them like SSL 3.0 ciphers, which we probably
  271. // shouldn't. Note that the first two are actually not in the IDs.
  272. #define TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_MD5 0x03000060 // not in ID
  273. #define TLS1_CK_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5 0x03000061 // not in ID
  274. #define TLS1_CK_RSA_EXPORT1024_WITH_DES_CBC_SHA 0x03000062
  275. #define TLS1_CK_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA 0x03000063
  276. #define TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_SHA 0x03000064
  277. #define TLS1_CK_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA 0x03000065
  278. #define TLS1_CK_DHE_DSS_WITH_RC4_128_SHA 0x03000066
  279. // AES ciphersuites from RFC 3268
  280. #define TLS1_CK_RSA_WITH_AES_128_SHA 0x0300002F
  281. #define TLS1_CK_DH_DSS_WITH_AES_128_SHA 0x03000030
  282. #define TLS1_CK_DH_RSA_WITH_AES_128_SHA 0x03000031
  283. #define TLS1_CK_DHE_DSS_WITH_AES_128_SHA 0x03000032
  284. #define TLS1_CK_DHE_RSA_WITH_AES_128_SHA 0x03000033
  285. #define TLS1_CK_ADH_WITH_AES_128_SHA 0x03000034
  286. #define TLS1_CK_RSA_WITH_AES_256_SHA 0x03000035
  287. #define TLS1_CK_DH_DSS_WITH_AES_256_SHA 0x03000036
  288. #define TLS1_CK_DH_RSA_WITH_AES_256_SHA 0x03000037
  289. #define TLS1_CK_DHE_DSS_WITH_AES_256_SHA 0x03000038
  290. #define TLS1_CK_DHE_RSA_WITH_AES_256_SHA 0x03000039
  291. #define TLS1_CK_ADH_WITH_AES_256_SHA 0x0300003A
  292. // TLS v1.2 ciphersuites
  293. #define TLS1_CK_RSA_WITH_NULL_SHA256 0x0300003B
  294. #define TLS1_CK_RSA_WITH_AES_128_SHA256 0x0300003C
  295. #define TLS1_CK_RSA_WITH_AES_256_SHA256 0x0300003D
  296. #define TLS1_CK_DH_DSS_WITH_AES_128_SHA256 0x0300003E
  297. #define TLS1_CK_DH_RSA_WITH_AES_128_SHA256 0x0300003F
  298. #define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 0x03000040
  299. // Camellia ciphersuites from RFC 4132
  300. #define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000041
  301. #define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000042
  302. #define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000043
  303. #define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000044
  304. #define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000045
  305. #define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA 0x03000046
  306. // TLS v1.2 ciphersuites
  307. #define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 0x03000067
  308. #define TLS1_CK_DH_DSS_WITH_AES_256_SHA256 0x03000068
  309. #define TLS1_CK_DH_RSA_WITH_AES_256_SHA256 0x03000069
  310. #define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 0x0300006A
  311. #define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 0x0300006B
  312. #define TLS1_CK_ADH_WITH_AES_128_SHA256 0x0300006C
  313. #define TLS1_CK_ADH_WITH_AES_256_SHA256 0x0300006D
  314. // Camellia ciphersuites from RFC 4132
  315. #define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000084
  316. #define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000085
  317. #define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000086
  318. #define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000087
  319. #define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000088
  320. #define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA 0x03000089
  321. // SEED ciphersuites from RFC 4162
  322. #define TLS1_CK_RSA_WITH_SEED_SHA 0x03000096
  323. #define TLS1_CK_DH_DSS_WITH_SEED_SHA 0x03000097
  324. #define TLS1_CK_DH_RSA_WITH_SEED_SHA 0x03000098
  325. #define TLS1_CK_DHE_DSS_WITH_SEED_SHA 0x03000099
  326. #define TLS1_CK_DHE_RSA_WITH_SEED_SHA 0x0300009A
  327. #define TLS1_CK_ADH_WITH_SEED_SHA 0x0300009B
  328. // TLS v1.2 GCM ciphersuites from RFC 5288
  329. #define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 0x0300009C
  330. #define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 0x0300009D
  331. #define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 0x0300009E
  332. #define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 0x0300009F
  333. #define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 0x030000A0
  334. #define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 0x030000A1
  335. #define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 0x030000A2
  336. #define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 0x030000A3
  337. #define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 0x030000A4
  338. #define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 0x030000A5
  339. #define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 0x030000A6
  340. #define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
  341. // ECC ciphersuites from RFC 4492
  342. #define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001
  343. #define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002
  344. #define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C003
  345. #define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA 0x0300C004
  346. #define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA 0x0300C005
  347. #define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA 0x0300C006
  348. #define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA 0x0300C007
  349. #define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C008
  350. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 0x0300C009
  351. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA 0x0300C00A
  352. #define TLS1_CK_ECDH_RSA_WITH_NULL_SHA 0x0300C00B
  353. #define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA 0x0300C00C
  354. #define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA 0x0300C00D
  355. #define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA 0x0300C00E
  356. #define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA 0x0300C00F
  357. #define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA 0x0300C010
  358. #define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA 0x0300C011
  359. #define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA 0x0300C012
  360. #define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA 0x0300C013
  361. #define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA 0x0300C014
  362. #define TLS1_CK_ECDH_anon_WITH_NULL_SHA 0x0300C015
  363. #define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA 0x0300C016
  364. #define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA 0x0300C017
  365. #define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA 0x0300C018
  366. #define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA 0x0300C019
  367. // SRP ciphersuites from RFC 5054
  368. #define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA 0x0300C01A
  369. #define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA 0x0300C01B
  370. #define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA 0x0300C01C
  371. #define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA 0x0300C01D
  372. #define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA 0x0300C01E
  373. #define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA 0x0300C01F
  374. #define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA 0x0300C020
  375. #define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA 0x0300C021
  376. #define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA 0x0300C022
  377. // ECDH HMAC based ciphersuites from RFC 5289
  378. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 0x0300C023
  379. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 0x0300C024
  380. #define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 0x0300C025
  381. #define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 0x0300C026
  382. #define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 0x0300C027
  383. #define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 0x0300C028
  384. #define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 0x0300C029
  385. #define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 0x0300C02A
  386. // ECDH GCM based ciphersuites from RFC 5289
  387. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02B
  388. #define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02C
  389. #define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02D
  390. #define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02E
  391. #define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0x0300C02F
  392. #define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 0x0300C030
  393. #define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 0x0300C031
  394. #define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 0x0300C032
  395. // ChaCha20-Poly1305 cipher suites from RFC 7905.
  396. #define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 0x0300CCA8
  397. #define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 0x0300CCA9
  398. #define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 0x0300CCAC
  399. // TLS 1.3 ciphersuites from RFC 8446.
  400. #define TLS1_CK_AES_128_GCM_SHA256 0x03001301
  401. #define TLS1_CK_AES_256_GCM_SHA384 0x03001302
  402. #define TLS1_CK_CHACHA20_POLY1305_SHA256 0x03001303
  403. // XXX
  404. // Inconsistency alert:
  405. // The OpenSSL names of ciphers with ephemeral DH here include the string
  406. // "DHE", while elsewhere it has always been "EDH".
  407. // (The alias for the list of all such ciphers also is "EDH".)
  408. // The specifications speak of "EDH"; maybe we should allow both forms
  409. // for everything.
  410. #define TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_MD5 "EXP1024-RC4-MD5"
  411. #define TLS1_TXT_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5 "EXP1024-RC2-CBC-MD5"
  412. #define TLS1_TXT_RSA_EXPORT1024_WITH_DES_CBC_SHA "EXP1024-DES-CBC-SHA"
  413. #define TLS1_TXT_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA \
  414. "EXP1024-DHE-DSS-DES-CBC-SHA"
  415. #define TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_SHA "EXP1024-RC4-SHA"
  416. #define TLS1_TXT_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA "EXP1024-DHE-DSS-RC4-SHA"
  417. #define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA "DHE-DSS-RC4-SHA"
  418. // AES ciphersuites from RFC 3268
  419. #define TLS1_TXT_RSA_WITH_AES_128_SHA "AES128-SHA"
  420. #define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES128-SHA"
  421. #define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES128-SHA"
  422. #define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES128-SHA"
  423. #define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES128-SHA"
  424. #define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES128-SHA"
  425. #define TLS1_TXT_RSA_WITH_AES_256_SHA "AES256-SHA"
  426. #define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES256-SHA"
  427. #define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES256-SHA"
  428. #define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES256-SHA"
  429. #define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES256-SHA"
  430. #define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES256-SHA"
  431. // ECC ciphersuites from RFC 4492
  432. #define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA "ECDH-ECDSA-NULL-SHA"
  433. #define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA "ECDH-ECDSA-RC4-SHA"
  434. #define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA "ECDH-ECDSA-DES-CBC3-SHA"
  435. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA "ECDH-ECDSA-AES128-SHA"
  436. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA "ECDH-ECDSA-AES256-SHA"
  437. #define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA "ECDHE-ECDSA-NULL-SHA"
  438. #define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA "ECDHE-ECDSA-RC4-SHA"
  439. #define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "ECDHE-ECDSA-DES-CBC3-SHA"
  440. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "ECDHE-ECDSA-AES128-SHA"
  441. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "ECDHE-ECDSA-AES256-SHA"
  442. #define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA "ECDH-RSA-NULL-SHA"
  443. #define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA "ECDH-RSA-RC4-SHA"
  444. #define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA "ECDH-RSA-DES-CBC3-SHA"
  445. #define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA "ECDH-RSA-AES128-SHA"
  446. #define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA "ECDH-RSA-AES256-SHA"
  447. #define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA "ECDHE-RSA-NULL-SHA"
  448. #define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA "ECDHE-RSA-RC4-SHA"
  449. #define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA "ECDHE-RSA-DES-CBC3-SHA"
  450. #define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA "ECDHE-RSA-AES128-SHA"
  451. #define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA "ECDHE-RSA-AES256-SHA"
  452. #define TLS1_TXT_ECDH_anon_WITH_NULL_SHA "AECDH-NULL-SHA"
  453. #define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA "AECDH-RC4-SHA"
  454. #define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA "AECDH-DES-CBC3-SHA"
  455. #define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA "AECDH-AES128-SHA"
  456. #define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA "AECDH-AES256-SHA"
  457. // PSK ciphersuites from RFC 4279
  458. #define TLS1_TXT_PSK_WITH_RC4_128_SHA "PSK-RC4-SHA"
  459. #define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA "PSK-3DES-EDE-CBC-SHA"
  460. #define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA "PSK-AES128-CBC-SHA"
  461. #define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA "PSK-AES256-CBC-SHA"
  462. // PSK ciphersuites from RFC 5489
  463. #define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA "ECDHE-PSK-AES128-CBC-SHA"
  464. #define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA "ECDHE-PSK-AES256-CBC-SHA"
  465. // SRP ciphersuite from RFC 5054
  466. #define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA "SRP-3DES-EDE-CBC-SHA"
  467. #define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "SRP-RSA-3DES-EDE-CBC-SHA"
  468. #define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "SRP-DSS-3DES-EDE-CBC-SHA"
  469. #define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA "SRP-AES-128-CBC-SHA"
  470. #define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "SRP-RSA-AES-128-CBC-SHA"
  471. #define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "SRP-DSS-AES-128-CBC-SHA"
  472. #define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA "SRP-AES-256-CBC-SHA"
  473. #define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "SRP-RSA-AES-256-CBC-SHA"
  474. #define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "SRP-DSS-AES-256-CBC-SHA"
  475. // Camellia ciphersuites from RFC 4132
  476. #define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA "CAMELLIA128-SHA"
  477. #define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA "DH-DSS-CAMELLIA128-SHA"
  478. #define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA "DH-RSA-CAMELLIA128-SHA"
  479. #define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "DHE-DSS-CAMELLIA128-SHA"
  480. #define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "DHE-RSA-CAMELLIA128-SHA"
  481. #define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA "ADH-CAMELLIA128-SHA"
  482. #define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA "CAMELLIA256-SHA"
  483. #define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA "DH-DSS-CAMELLIA256-SHA"
  484. #define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA "DH-RSA-CAMELLIA256-SHA"
  485. #define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "DHE-DSS-CAMELLIA256-SHA"
  486. #define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA"
  487. #define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA"
  488. // SEED ciphersuites from RFC 4162
  489. #define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA"
  490. #define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA"
  491. #define TLS1_TXT_DH_RSA_WITH_SEED_SHA "DH-RSA-SEED-SHA"
  492. #define TLS1_TXT_DHE_DSS_WITH_SEED_SHA "DHE-DSS-SEED-SHA"
  493. #define TLS1_TXT_DHE_RSA_WITH_SEED_SHA "DHE-RSA-SEED-SHA"
  494. #define TLS1_TXT_ADH_WITH_SEED_SHA "ADH-SEED-SHA"
  495. // TLS v1.2 ciphersuites
  496. #define TLS1_TXT_RSA_WITH_NULL_SHA256 "NULL-SHA256"
  497. #define TLS1_TXT_RSA_WITH_AES_128_SHA256 "AES128-SHA256"
  498. #define TLS1_TXT_RSA_WITH_AES_256_SHA256 "AES256-SHA256"
  499. #define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 "DH-DSS-AES128-SHA256"
  500. #define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 "DH-RSA-AES128-SHA256"
  501. #define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 "DHE-DSS-AES128-SHA256"
  502. #define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 "DHE-RSA-AES128-SHA256"
  503. #define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 "DH-DSS-AES256-SHA256"
  504. #define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 "DH-RSA-AES256-SHA256"
  505. #define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 "DHE-DSS-AES256-SHA256"
  506. #define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 "DHE-RSA-AES256-SHA256"
  507. #define TLS1_TXT_ADH_WITH_AES_128_SHA256 "ADH-AES128-SHA256"
  508. #define TLS1_TXT_ADH_WITH_AES_256_SHA256 "ADH-AES256-SHA256"
  509. // TLS v1.2 GCM ciphersuites from RFC 5288
  510. #define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 "AES128-GCM-SHA256"
  511. #define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 "AES256-GCM-SHA384"
  512. #define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 "DHE-RSA-AES128-GCM-SHA256"
  513. #define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 "DHE-RSA-AES256-GCM-SHA384"
  514. #define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 "DH-RSA-AES128-GCM-SHA256"
  515. #define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 "DH-RSA-AES256-GCM-SHA384"
  516. #define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 "DHE-DSS-AES128-GCM-SHA256"
  517. #define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 "DHE-DSS-AES256-GCM-SHA384"
  518. #define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 "DH-DSS-AES128-GCM-SHA256"
  519. #define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 "DH-DSS-AES256-GCM-SHA384"
  520. #define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 "ADH-AES128-GCM-SHA256"
  521. #define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 "ADH-AES256-GCM-SHA384"
  522. // ECDH HMAC based ciphersuites from RFC 5289
  523. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 "ECDHE-ECDSA-AES128-SHA256"
  524. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 "ECDHE-ECDSA-AES256-SHA384"
  525. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 "ECDH-ECDSA-AES128-SHA256"
  526. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 "ECDH-ECDSA-AES256-SHA384"
  527. #define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 "ECDHE-RSA-AES128-SHA256"
  528. #define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 "ECDHE-RSA-AES256-SHA384"
  529. #define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 "ECDH-RSA-AES128-SHA256"
  530. #define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 "ECDH-RSA-AES256-SHA384"
  531. // ECDH GCM based ciphersuites from RFC 5289
  532. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 \
  533. "ECDHE-ECDSA-AES128-GCM-SHA256"
  534. #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 \
  535. "ECDHE-ECDSA-AES256-GCM-SHA384"
  536. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 \
  537. "ECDH-ECDSA-AES128-GCM-SHA256"
  538. #define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 \
  539. "ECDH-ECDSA-AES256-GCM-SHA384"
  540. #define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "ECDHE-RSA-AES128-GCM-SHA256"
  541. #define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "ECDHE-RSA-AES256-GCM-SHA384"
  542. #define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 "ECDH-RSA-AES128-GCM-SHA256"
  543. #define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 "ECDH-RSA-AES256-GCM-SHA384"
  544. #define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 \
  545. "ECDHE-RSA-CHACHA20-POLY1305"
  546. #define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 \
  547. "ECDHE-ECDSA-CHACHA20-POLY1305"
  548. #define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 \
  549. "ECDHE-PSK-CHACHA20-POLY1305"
  550. // TLS 1.3 ciphersuites from RFC 8446.
  551. #define TLS1_TXT_AES_128_GCM_SHA256 "TLS_AES_128_GCM_SHA256"
  552. #define TLS1_TXT_AES_256_GCM_SHA384 "TLS_AES_256_GCM_SHA384"
  553. #define TLS1_TXT_CHACHA20_POLY1305_SHA256 "TLS_CHACHA20_POLY1305_SHA256"
  554. #define TLS_CT_RSA_SIGN 1
  555. #define TLS_CT_DSS_SIGN 2
  556. #define TLS_CT_RSA_FIXED_DH 3
  557. #define TLS_CT_DSS_FIXED_DH 4
  558. #define TLS_CT_ECDSA_SIGN 64
  559. #define TLS_CT_RSA_FIXED_ECDH 65
  560. #define TLS_CT_ECDSA_FIXED_ECDH 66
  561. #define TLS_MD_MAX_CONST_SIZE 20
  562. #ifdef __cplusplus
  563. } // extern C
  564. #endif
  565. #endif // OPENSSL_HEADER_TLS1_H