1/*
2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
4 * Copyright 2005 Nokia. All rights reserved.
5 *
6 * Licensed under the Apache License 2.0 (the "License"). You may not use
7 * this file except in compliance with the License. You can obtain a copy
8 * in the file LICENSE in the source distribution or at
9 * https://www.openssl.org/source/license.html
10 */
11
12#ifndef OPENSSL_TLS1_H
13# define OPENSSL_TLS1_H
14# pragma once
15
16# include <openssl/macros.h>
17# ifndef OPENSSL_NO_DEPRECATED_3_0
18# define HEADER_TLS1_H
19# endif
20
21# include <openssl/buffer.h>
22# include <openssl/x509.h>
23# include <openssl/prov_ssl.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Default security level if not overridden at config time */
30# ifndef OPENSSL_TLS_SECURITY_LEVEL
31# define OPENSSL_TLS_SECURITY_LEVEL 2
32# endif
33
34/* TLS*_VERSION constants are defined in prov_ssl.h */
35# ifndef OPENSSL_NO_DEPRECATED_3_0
36# define TLS_MAX_VERSION TLS1_3_VERSION
37# endif
38
39/* Special value for method supporting multiple versions */
40# define TLS_ANY_VERSION 0x10000
41
42# define TLS1_VERSION_MAJOR 0x03
43# define TLS1_VERSION_MINOR 0x01
44
45# define TLS1_1_VERSION_MAJOR 0x03
46# define TLS1_1_VERSION_MINOR 0x02
47
48# define TLS1_2_VERSION_MAJOR 0x03
49# define TLS1_2_VERSION_MINOR 0x03
50
51# define TLS1_get_version(s) \
52 ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)
53
54# define TLS1_get_client_version(s) \
55 ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0)
56
57# define TLS1_AD_DECRYPTION_FAILED 21
58# define TLS1_AD_RECORD_OVERFLOW 22
59# define TLS1_AD_UNKNOWN_CA 48/* fatal */
60# define TLS1_AD_ACCESS_DENIED 49/* fatal */
61# define TLS1_AD_DECODE_ERROR 50/* fatal */
62# define TLS1_AD_DECRYPT_ERROR 51
63# define TLS1_AD_EXPORT_RESTRICTION 60/* fatal */
64# define TLS1_AD_PROTOCOL_VERSION 70/* fatal */
65# define TLS1_AD_INSUFFICIENT_SECURITY 71/* fatal */
66# define TLS1_AD_INTERNAL_ERROR 80/* fatal */
67# define TLS1_AD_INAPPROPRIATE_FALLBACK 86/* fatal */
68# define TLS1_AD_USER_CANCELLED 90
69# define TLS1_AD_NO_RENEGOTIATION 100
70/* TLSv1.3 alerts */
71# define TLS13_AD_MISSING_EXTENSION 109 /* fatal */
72# define TLS13_AD_CERTIFICATE_REQUIRED 116 /* fatal */
73/* codes 110-114 are from RFC3546 */
74# define TLS1_AD_UNSUPPORTED_EXTENSION 110
75# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111
76# define TLS1_AD_UNRECOGNIZED_NAME 112
77# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113
78# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114
79# define TLS1_AD_UNKNOWN_PSK_IDENTITY 115/* fatal */
80# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */
81
82/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */
83# define TLSEXT_TYPE_server_name 0
84# define TLSEXT_TYPE_max_fragment_length 1
85# define TLSEXT_TYPE_client_certificate_url 2
86# define TLSEXT_TYPE_trusted_ca_keys 3
87# define TLSEXT_TYPE_truncated_hmac 4
88# define TLSEXT_TYPE_status_request 5
89/* ExtensionType values from RFC4681 */
90# define TLSEXT_TYPE_user_mapping 6
91/* ExtensionType values from RFC5878 */
92# define TLSEXT_TYPE_client_authz 7
93# define TLSEXT_TYPE_server_authz 8
94/* ExtensionType values from RFC6091 */
95# define TLSEXT_TYPE_cert_type 9
96
97/* ExtensionType values from RFC4492 */
98/*
99 * Prior to TLSv1.3 the supported_groups extension was known as
100 * elliptic_curves
101 */
102# define TLSEXT_TYPE_supported_groups 10
103# define TLSEXT_TYPE_elliptic_curves TLSEXT_TYPE_supported_groups
104# define TLSEXT_TYPE_ec_point_formats 11
105
106
107/* ExtensionType value from RFC5054 */
108# define TLSEXT_TYPE_srp 12
109
110/* ExtensionType values from RFC5246 */
111# define TLSEXT_TYPE_signature_algorithms 13
112
113/* ExtensionType value from RFC5764 */
114# define TLSEXT_TYPE_use_srtp 14
115
116/* ExtensionType value from RFC7301 */
117# define TLSEXT_TYPE_application_layer_protocol_negotiation 16
118
119/*
120 * Extension type for Certificate Transparency
121 * https://tools.ietf.org/html/rfc6962#section-3.3.1
122 */
123# define TLSEXT_TYPE_signed_certificate_timestamp 18
124
125/*
126 * Extension type for Raw Public Keys
127 * https://tools.ietf.org/html/rfc7250
128 * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml
129 */
130# define TLSEXT_TYPE_client_cert_type 19
131# define TLSEXT_TYPE_server_cert_type 20
132
133/*
134 * ExtensionType value for TLS padding extension.
135 * http://tools.ietf.org/html/draft-agl-tls-padding
136 */
137# define TLSEXT_TYPE_padding 21
138
139/* ExtensionType value from RFC7366 */
140# define TLSEXT_TYPE_encrypt_then_mac 22
141
142/* ExtensionType value from RFC7627 */
143# define TLSEXT_TYPE_extended_master_secret 23
144
145/* ExtensionType value from RFC8879 */
146# define TLSEXT_TYPE_compress_certificate 27
147
148/* ExtensionType value from RFC4507 */
149# define TLSEXT_TYPE_session_ticket 35
150
151/* As defined for TLS1.3 */
152# define TLSEXT_TYPE_psk 41
153# define TLSEXT_TYPE_early_data 42
154# define TLSEXT_TYPE_supported_versions 43
155# define TLSEXT_TYPE_cookie 44
156# define TLSEXT_TYPE_psk_kex_modes 45
157# define TLSEXT_TYPE_certificate_authorities 47
158# define TLSEXT_TYPE_post_handshake_auth 49
159# define TLSEXT_TYPE_signature_algorithms_cert 50
160# define TLSEXT_TYPE_key_share 51
161# define TLSEXT_TYPE_quic_transport_parameters 57
162
163/* Temporary extension type */
164# define TLSEXT_TYPE_renegotiate 0xff01
165
166# ifndef OPENSSL_NO_NEXTPROTONEG
167/* This is not an IANA defined extension number */
168# define TLSEXT_TYPE_next_proto_neg 13172
169# endif
170
171/* NameType value from RFC3546 */
172# define TLSEXT_NAMETYPE_host_name 0
173/* status request value from RFC3546 */
174# define TLSEXT_STATUSTYPE_ocsp 1
175
176/* ECPointFormat values from RFC4492 */
177# define TLSEXT_ECPOINTFORMAT_first 0
178# define TLSEXT_ECPOINTFORMAT_uncompressed 0
179# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime 1
180# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2 2
181# define TLSEXT_ECPOINTFORMAT_last 2
182
183/* Signature and hash algorithms from RFC5246 */
184# define TLSEXT_signature_anonymous 0
185# define TLSEXT_signature_rsa 1
186# define TLSEXT_signature_dsa 2
187# define TLSEXT_signature_ecdsa 3
188# define TLSEXT_signature_gostr34102001 237
189# define TLSEXT_signature_gostr34102012_256 238
190# define TLSEXT_signature_gostr34102012_512 239
191
192/* Total number of different signature algorithms */
193# define TLSEXT_signature_num 7
194
195# define TLSEXT_hash_none 0
196# define TLSEXT_hash_md5 1
197# define TLSEXT_hash_sha1 2
198# define TLSEXT_hash_sha224 3
199# define TLSEXT_hash_sha256 4
200# define TLSEXT_hash_sha384 5
201# define TLSEXT_hash_sha512 6
202# define TLSEXT_hash_gostr3411 237
203# define TLSEXT_hash_gostr34112012_256 238
204# define TLSEXT_hash_gostr34112012_512 239
205
206/* Total number of different digest algorithms */
207
208# define TLSEXT_hash_num 10
209
210/* Possible compression values from RFC8879 */
211/* Not defined in RFC8879, but used internally for no-compression */
212# define TLSEXT_comp_cert_none 0
213# define TLSEXT_comp_cert_zlib 1
214# define TLSEXT_comp_cert_brotli 2
215# define TLSEXT_comp_cert_zstd 3
216/* one more than the number of defined values - used as size of 0-terminated array */
217# define TLSEXT_comp_cert_limit 4
218
219/* Flag set for unrecognised algorithms */
220# define TLSEXT_nid_unknown 0x1000000
221
222/* ECC curves */
223
224# define TLSEXT_curve_P_256 23
225# define TLSEXT_curve_P_384 24
226
227/* OpenSSL value to disable maximum fragment length extension */
228# define TLSEXT_max_fragment_length_DISABLED 0
229/* Allowed values for max fragment length extension */
230# define TLSEXT_max_fragment_length_512 1
231# define TLSEXT_max_fragment_length_1024 2
232# define TLSEXT_max_fragment_length_2048 3
233# define TLSEXT_max_fragment_length_4096 4
234
235/*
236 * TLS Certificate Type (for RFC7250)
237 * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#tls-extensiontype-values-3
238 */
239# define TLSEXT_cert_type_x509 0
240# define TLSEXT_cert_type_pgp 1 /* recognized, but not supported */
241# define TLSEXT_cert_type_rpk 2
242# define TLSEXT_cert_type_1609dot2 3 /* recognized, but not supported */
243
244int SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode);
245int SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);
246
247# define TLSEXT_MAXLEN_host_name 255
248
249__owur const char *SSL_get_servername(const SSL *s, const int type);
250__owur int SSL_get_servername_type(const SSL *s);
251/*
252 * SSL_export_keying_material exports a value derived from the master secret,
253 * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and
254 * optional context. (Since a zero length context is allowed, the |use_context|
255 * flag controls whether a context is included.) It returns 1 on success and
256 * 0 or -1 otherwise.
257 */
258__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
259 const char *label, size_t llen,
260 const unsigned char *context,
261 size_t contextlen, int use_context);
262
263/*
264 * SSL_export_keying_material_early exports a value derived from the
265 * early exporter master secret, as specified in
266 * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes
267 * |olen| bytes to |out| given a label and optional context. It
268 * returns 1 on success and 0 otherwise.
269 */
270__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,
271 size_t olen, const char *label,
272 size_t llen,
273 const unsigned char *context,
274 size_t contextlen);
275
276int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);
277int SSL_get_signature_type_nid(const SSL *s, int *pnid);
278
279int SSL_get_sigalgs(SSL *s, int idx,
280 int *psign, int *phash, int *psignandhash,
281 unsigned char *rsig, unsigned char *rhash);
282
283int SSL_get_shared_sigalgs(SSL *s, int idx,
284 int *psign, int *phash, int *psignandhash,
285 unsigned char *rsig, unsigned char *rhash);
286
287__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain);
288
289# define SSL_set_tlsext_host_name(s,name) \
290 SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\
291 (void *)name)
292
293# define SSL_set_tlsext_debug_callback(ssl, cb) \
294 SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\
295 (void (*)(void))cb)
296
297# define SSL_set_tlsext_debug_arg(ssl, arg) \
298 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)
299
300# define SSL_get_tlsext_status_type(ssl) \
301 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
302
303# define SSL_set_tlsext_status_type(ssl, type) \
304 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
305
306# define SSL_get_tlsext_status_exts(ssl, arg) \
307 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg)
308
309# define SSL_set_tlsext_status_exts(ssl, arg) \
310 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg)
311
312# define SSL_get_tlsext_status_ids(ssl, arg) \
313 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg)
314
315# define SSL_set_tlsext_status_ids(ssl, arg) \
316 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg)
317
318# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \
319 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg)
320
321# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \
322 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg)
323
324# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \
325 SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\
326 (void (*)(void))cb)
327
328# define SSL_TLSEXT_ERR_OK 0
329# define SSL_TLSEXT_ERR_ALERT_WARNING 1
330# define SSL_TLSEXT_ERR_ALERT_FATAL 2
331# define SSL_TLSEXT_ERR_NOACK 3
332
333# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \
334 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg)
335
336# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \
337 SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys)
338# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \
339 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys)
340
341# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \
342 SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb)
343# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \
344 SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\
345 (void (*)(void))cb)
346
347# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \
348 SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)
349# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \
350 SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)
351
352# define SSL_CTX_set_tlsext_status_type(ssl, type) \
353 SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
354
355# define SSL_CTX_get_tlsext_status_type(ssl) \
356 SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
357
358# ifndef OPENSSL_NO_DEPRECATED_3_0
359# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \
360 SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\
361 (void (*)(void))cb)
362# endif
363int SSL_CTX_set_tlsext_ticket_key_evp_cb
364 (SSL_CTX *ctx, int (*fp)(SSL *, unsigned char *, unsigned char *,
365 EVP_CIPHER_CTX *, EVP_MAC_CTX *, int));
366
367/* PSK ciphersuites from 4279 */
368# define TLS1_CK_PSK_WITH_RC4_128_SHA 0x0300008A
369# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008B
370# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA 0x0300008C
371# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA 0x0300008D
372# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA 0x0300008E
373# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008F
374# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA 0x03000090
375# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA 0x03000091
376# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA 0x03000092
377# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA 0x03000093
378# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA 0x03000094
379# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA 0x03000095
380
381/* PSK ciphersuites from 5487 */
382# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256 0x030000A8
383# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384 0x030000A9
384# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256 0x030000AA
385# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384 0x030000AB
386# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256 0x030000AC
387# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384 0x030000AD
388# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256 0x030000AE
389# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384 0x030000AF
390# define TLS1_CK_PSK_WITH_NULL_SHA256 0x030000B0
391# define TLS1_CK_PSK_WITH_NULL_SHA384 0x030000B1
392# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256 0x030000B2
393# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384 0x030000B3
394# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256 0x030000B4
395# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384 0x030000B5
396# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256 0x030000B6
397# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384 0x030000B7
398# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256 0x030000B8
399# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384 0x030000B9
400
401/* NULL PSK ciphersuites from RFC4785 */
402# define TLS1_CK_PSK_WITH_NULL_SHA 0x0300002C
403# define TLS1_CK_DHE_PSK_WITH_NULL_SHA 0x0300002D
404# define TLS1_CK_RSA_PSK_WITH_NULL_SHA 0x0300002E
405
406/* AES ciphersuites from RFC3268 */
407# define TLS1_CK_RSA_WITH_AES_128_SHA 0x0300002F
408# define TLS1_CK_DH_DSS_WITH_AES_128_SHA 0x03000030
409# define TLS1_CK_DH_RSA_WITH_AES_128_SHA 0x03000031
410# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA 0x03000032
411# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA 0x03000033
412# define TLS1_CK_ADH_WITH_AES_128_SHA 0x03000034
413# define TLS1_CK_RSA_WITH_AES_256_SHA 0x03000035
414# define TLS1_CK_DH_DSS_WITH_AES_256_SHA 0x03000036
415# define TLS1_CK_DH_RSA_WITH_AES_256_SHA 0x03000037
416# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA 0x03000038
417# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA 0x03000039
418# define TLS1_CK_ADH_WITH_AES_256_SHA 0x0300003A
419
420/* TLS v1.2 ciphersuites */
421# define TLS1_CK_RSA_WITH_NULL_SHA256 0x0300003B
422# define TLS1_CK_RSA_WITH_AES_128_SHA256 0x0300003C
423# define TLS1_CK_RSA_WITH_AES_256_SHA256 0x0300003D
424# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256 0x0300003E
425# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256 0x0300003F
426# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 0x03000040
427
428/* Camellia ciphersuites from RFC4132 */
429# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000041
430# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000042
431# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000043
432# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000044
433# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000045
434# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA 0x03000046
435
436/* TLS v1.2 ciphersuites */
437# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 0x03000067
438# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256 0x03000068
439# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256 0x03000069
440# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 0x0300006A
441# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 0x0300006B
442# define TLS1_CK_ADH_WITH_AES_128_SHA256 0x0300006C
443# define TLS1_CK_ADH_WITH_AES_256_SHA256 0x0300006D
444
445/* Camellia ciphersuites from RFC4132 */
446# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000084
447# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000085
448# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000086
449# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000087
450# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000088
451# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA 0x03000089
452
453/* SEED ciphersuites from RFC4162 */
454# define TLS1_CK_RSA_WITH_SEED_SHA 0x03000096
455# define TLS1_CK_DH_DSS_WITH_SEED_SHA 0x03000097
456# define TLS1_CK_DH_RSA_WITH_SEED_SHA 0x03000098
457# define TLS1_CK_DHE_DSS_WITH_SEED_SHA 0x03000099
458# define TLS1_CK_DHE_RSA_WITH_SEED_SHA 0x0300009A
459# define TLS1_CK_ADH_WITH_SEED_SHA 0x0300009B
460
461/* TLS v1.2 GCM ciphersuites from RFC5288 */
462# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 0x0300009C
463# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 0x0300009D
464# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 0x0300009E
465# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 0x0300009F
466# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 0x030000A0
467# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 0x030000A1
468# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 0x030000A2
469# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 0x030000A3
470# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 0x030000A4
471# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 0x030000A5
472# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 0x030000A6
473# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
474
475/* CCM ciphersuites from RFC6655 */
476# define TLS1_CK_RSA_WITH_AES_128_CCM 0x0300C09C
477# define TLS1_CK_RSA_WITH_AES_256_CCM 0x0300C09D
478# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM 0x0300C09E
479# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM 0x0300C09F
480# define TLS1_CK_RSA_WITH_AES_128_CCM_8 0x0300C0A0
481# define TLS1_CK_RSA_WITH_AES_256_CCM_8 0x0300C0A1
482# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 0x0300C0A2
483# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 0x0300C0A3
484# define TLS1_CK_PSK_WITH_AES_128_CCM 0x0300C0A4
485# define TLS1_CK_PSK_WITH_AES_256_CCM 0x0300C0A5
486# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM 0x0300C0A6
487# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM 0x0300C0A7
488# define TLS1_CK_PSK_WITH_AES_128_CCM_8 0x0300C0A8
489# define TLS1_CK_PSK_WITH_AES_256_CCM_8 0x0300C0A9
490# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 0x0300C0AA
491# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 0x0300C0AB
492
493/* CCM ciphersuites from RFC7251 */
494# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM 0x0300C0AC
495# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM 0x0300C0AD
496# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 0x0300C0AE
497# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 0x0300C0AF
498
499/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
500# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BA
501# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BB
502# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BC
503# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BD
504# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BE
505# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 0x030000BF
506
507# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C0
508# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C1
509# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C2
510# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C3
511# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C4
512# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 0x030000C5
513
514/* ECC ciphersuites from RFC4492 */
515# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001
516# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002
517# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C003
518# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA 0x0300C004
519# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA 0x0300C005
520
521# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA 0x0300C006
522# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA 0x0300C007
523# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C008
524# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 0x0300C009
525# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA 0x0300C00A
526
527# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA 0x0300C00B
528# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA 0x0300C00C
529# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA 0x0300C00D
530# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA 0x0300C00E
531# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA 0x0300C00F
532
533# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA 0x0300C010
534# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA 0x0300C011
535# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA 0x0300C012
536# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA 0x0300C013
537# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA 0x0300C014
538
539# define TLS1_CK_ECDH_anon_WITH_NULL_SHA 0x0300C015
540# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA 0x0300C016
541# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA 0x0300C017
542# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA 0x0300C018
543# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA 0x0300C019
544
545/* SRP ciphersuites from RFC 5054 */
546# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA 0x0300C01A
547# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA 0x0300C01B
548# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA 0x0300C01C
549# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA 0x0300C01D
550# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA 0x0300C01E
551# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA 0x0300C01F
552# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA 0x0300C020
553# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA 0x0300C021
554# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA 0x0300C022
555
556/* ECDH HMAC based ciphersuites from RFC5289 */
557# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 0x0300C023
558# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 0x0300C024
559# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 0x0300C025
560# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 0x0300C026
561# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 0x0300C027
562# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 0x0300C028
563# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 0x0300C029
564# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 0x0300C02A
565
566/* ECDH GCM based ciphersuites from RFC5289 */
567# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02B
568# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02C
569# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02D
570# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02E
571# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0x0300C02F
572# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 0x0300C030
573# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 0x0300C031
574# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 0x0300C032
575
576/* ECDHE PSK ciphersuites from RFC5489 */
577# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA 0x0300C033
578# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300C034
579# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA 0x0300C035
580# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA 0x0300C036
581
582# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256 0x0300C037
583# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384 0x0300C038
584
585/* NULL PSK ciphersuites from RFC4785 */
586# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA 0x0300C039
587# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256 0x0300C03A
588# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384 0x0300C03B
589
590/* Camellia-CBC ciphersuites from RFC6367 */
591# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072
592# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073
593# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C074
594# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C075
595# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C076
596# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C077
597# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C078
598# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C079
599
600# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C094
601# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C095
602# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C096
603# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C097
604# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C098
605# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C099
606# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C09A
607# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C09B
608
609/* draft-ietf-tls-chacha20-poly1305-03 */
610# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCA8
611# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 0x0300CCA9
612# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCAA
613# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305 0x0300CCAB
614# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAC
615# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAD
616# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305 0x0300CCAE
617
618/* TLS v1.3 ciphersuites */
619# define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301
620# define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302
621# define TLS1_3_CK_CHACHA20_POLY1305_SHA256 0x03001303
622# define TLS1_3_CK_AES_128_CCM_SHA256 0x03001304
623# define TLS1_3_CK_AES_128_CCM_8_SHA256 0x03001305
624
625/* Aria ciphersuites from RFC6209 */
626# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C050
627# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C051
628# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C052
629# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C053
630# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C054
631# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C055
632# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C056
633# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C057
634# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C058
635# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C059
636# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256 0x0300C05A
637# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384 0x0300C05B
638# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05C
639# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05D
640# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05E
641# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05F
642# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C060
643# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C061
644# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C062
645# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C063
646# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06A
647# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06B
648# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06C
649# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06D
650# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06E
651# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06F
652
653/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */
654# define TLS1_RFC_RSA_WITH_AES_128_SHA "TLS_RSA_WITH_AES_128_CBC_SHA"
655# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"
656# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA "TLS_DHE_RSA_WITH_AES_128_CBC_SHA"
657# define TLS1_RFC_ADH_WITH_AES_128_SHA "TLS_DH_anon_WITH_AES_128_CBC_SHA"
658# define TLS1_RFC_RSA_WITH_AES_256_SHA "TLS_RSA_WITH_AES_256_CBC_SHA"
659# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA "TLS_DHE_DSS_WITH_AES_256_CBC_SHA"
660# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
661# define TLS1_RFC_ADH_WITH_AES_256_SHA "TLS_DH_anon_WITH_AES_256_CBC_SHA"
662# define TLS1_RFC_RSA_WITH_NULL_SHA256 "TLS_RSA_WITH_NULL_SHA256"
663# define TLS1_RFC_RSA_WITH_AES_128_SHA256 "TLS_RSA_WITH_AES_128_CBC_SHA256"
664# define TLS1_RFC_RSA_WITH_AES_256_SHA256 "TLS_RSA_WITH_AES_256_CBC_SHA256"
665# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256 "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"
666# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256 "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
667# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256 "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"
668# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256 "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"
669# define TLS1_RFC_ADH_WITH_AES_128_SHA256 "TLS_DH_anon_WITH_AES_128_CBC_SHA256"
670# define TLS1_RFC_ADH_WITH_AES_256_SHA256 "TLS_DH_anon_WITH_AES_256_CBC_SHA256"
671# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256 "TLS_RSA_WITH_AES_128_GCM_SHA256"
672# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384 "TLS_RSA_WITH_AES_256_GCM_SHA384"
673# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
674# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"
675# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256 "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256"
676# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384 "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"
677# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256 "TLS_DH_anon_WITH_AES_128_GCM_SHA256"
678# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384 "TLS_DH_anon_WITH_AES_256_GCM_SHA384"
679# define TLS1_RFC_RSA_WITH_AES_128_CCM "TLS_RSA_WITH_AES_128_CCM"
680# define TLS1_RFC_RSA_WITH_AES_256_CCM "TLS_RSA_WITH_AES_256_CCM"
681# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM "TLS_DHE_RSA_WITH_AES_128_CCM"
682# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM "TLS_DHE_RSA_WITH_AES_256_CCM"
683# define TLS1_RFC_RSA_WITH_AES_128_CCM_8 "TLS_RSA_WITH_AES_128_CCM_8"
684# define TLS1_RFC_RSA_WITH_AES_256_CCM_8 "TLS_RSA_WITH_AES_256_CCM_8"
685# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8 "TLS_DHE_RSA_WITH_AES_128_CCM_8"
686# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8 "TLS_DHE_RSA_WITH_AES_256_CCM_8"
687# define TLS1_RFC_PSK_WITH_AES_128_CCM "TLS_PSK_WITH_AES_128_CCM"
688# define TLS1_RFC_PSK_WITH_AES_256_CCM "TLS_PSK_WITH_AES_256_CCM"
689# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM "TLS_DHE_PSK_WITH_AES_128_CCM"
690# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM "TLS_DHE_PSK_WITH_AES_256_CCM"
691# define TLS1_RFC_PSK_WITH_AES_128_CCM_8 "TLS_PSK_WITH_AES_128_CCM_8"
692# define TLS1_RFC_PSK_WITH_AES_256_CCM_8 "TLS_PSK_WITH_AES_256_CCM_8"
693# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8 "TLS_PSK_DHE_WITH_AES_128_CCM_8"
694# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8 "TLS_PSK_DHE_WITH_AES_256_CCM_8"
695# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM "TLS_ECDHE_ECDSA_WITH_AES_128_CCM"
696# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM "TLS_ECDHE_ECDSA_WITH_AES_256_CCM"
697# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8"
698# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8"
699# define TLS1_3_RFC_AES_128_GCM_SHA256 "TLS_AES_128_GCM_SHA256"
700# define TLS1_3_RFC_AES_256_GCM_SHA384 "TLS_AES_256_GCM_SHA384"
701# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256 "TLS_CHACHA20_POLY1305_SHA256"
702# define TLS1_3_RFC_AES_128_CCM_SHA256 "TLS_AES_128_CCM_SHA256"
703# define TLS1_3_RFC_AES_128_CCM_8_SHA256 "TLS_AES_128_CCM_8_SHA256"
704# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA "TLS_ECDHE_ECDSA_WITH_NULL_SHA"
705# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA"
706# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
707# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
708# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA "TLS_ECDHE_RSA_WITH_NULL_SHA"
709# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"
710# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
711# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
712# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA "TLS_ECDH_anon_WITH_NULL_SHA"
713# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA "TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA"
714# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA "TLS_ECDH_anon_WITH_AES_128_CBC_SHA"
715# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA "TLS_ECDH_anon_WITH_AES_256_CBC_SHA"
716# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
717# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
718# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
719# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
720# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
721# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
722# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
723# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
724# define TLS1_RFC_PSK_WITH_NULL_SHA "TLS_PSK_WITH_NULL_SHA"
725# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA "TLS_DHE_PSK_WITH_NULL_SHA"
726# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA "TLS_RSA_PSK_WITH_NULL_SHA"
727# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA "TLS_PSK_WITH_3DES_EDE_CBC_SHA"
728# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA "TLS_PSK_WITH_AES_128_CBC_SHA"
729# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA "TLS_PSK_WITH_AES_256_CBC_SHA"
730# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA"
731# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA "TLS_DHE_PSK_WITH_AES_128_CBC_SHA"
732# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA "TLS_DHE_PSK_WITH_AES_256_CBC_SHA"
733# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA "TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA"
734# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA "TLS_RSA_PSK_WITH_AES_128_CBC_SHA"
735# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA "TLS_RSA_PSK_WITH_AES_256_CBC_SHA"
736# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256 "TLS_PSK_WITH_AES_128_GCM_SHA256"
737# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384 "TLS_PSK_WITH_AES_256_GCM_SHA384"
738# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256 "TLS_DHE_PSK_WITH_AES_128_GCM_SHA256"
739# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384 "TLS_DHE_PSK_WITH_AES_256_GCM_SHA384"
740# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256 "TLS_RSA_PSK_WITH_AES_128_GCM_SHA256"
741# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384 "TLS_RSA_PSK_WITH_AES_256_GCM_SHA384"
742# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256 "TLS_PSK_WITH_AES_128_CBC_SHA256"
743# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384 "TLS_PSK_WITH_AES_256_CBC_SHA384"
744# define TLS1_RFC_PSK_WITH_NULL_SHA256 "TLS_PSK_WITH_NULL_SHA256"
745# define TLS1_RFC_PSK_WITH_NULL_SHA384 "TLS_PSK_WITH_NULL_SHA384"
746# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_DHE_PSK_WITH_AES_128_CBC_SHA256"
747# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_DHE_PSK_WITH_AES_256_CBC_SHA384"
748# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256 "TLS_DHE_PSK_WITH_NULL_SHA256"
749# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384 "TLS_DHE_PSK_WITH_NULL_SHA384"
750# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256 "TLS_RSA_PSK_WITH_AES_128_CBC_SHA256"
751# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384 "TLS_RSA_PSK_WITH_AES_256_CBC_SHA384"
752# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256 "TLS_RSA_PSK_WITH_NULL_SHA256"
753# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384 "TLS_RSA_PSK_WITH_NULL_SHA384"
754# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA"
755# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA"
756# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA"
757# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256"
758# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384"
759# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA "TLS_ECDHE_PSK_WITH_NULL_SHA"
760# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256 "TLS_ECDHE_PSK_WITH_NULL_SHA256"
761# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384 "TLS_ECDHE_PSK_WITH_NULL_SHA384"
762# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA"
763# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA"
764# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA"
765# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_WITH_AES_128_CBC_SHA"
766# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA"
767# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA"
768# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_WITH_AES_256_CBC_SHA"
769# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA"
770# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA"
771# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305 "TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
772# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
773# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
774# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305 "TLS_PSK_WITH_CHACHA20_POLY1305_SHA256"
775# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305 "TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256"
776# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305 "TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256"
777# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305 "TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256"
778# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256"
779# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256"
780# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256"
781# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256"
782# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256"
783# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256"
784# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256"
785# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256"
786# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA"
787# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA"
788# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA"
789# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA"
790# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA"
791# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA"
792# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA"
793# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA"
794# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256"
795# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384"
796# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256"
797# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384"
798# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256"
799# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384"
800# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256"
801# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384"
802# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256"
803# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384"
804# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256"
805# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384"
806# define TLS1_RFC_RSA_WITH_SEED_SHA "TLS_RSA_WITH_SEED_CBC_SHA"
807# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA "TLS_DHE_DSS_WITH_SEED_CBC_SHA"
808# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA "TLS_DHE_RSA_WITH_SEED_CBC_SHA"
809# define TLS1_RFC_ADH_WITH_SEED_SHA "TLS_DH_anon_WITH_SEED_CBC_SHA"
810# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA "TLS_ECDHE_PSK_WITH_RC4_128_SHA"
811# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA "TLS_ECDH_anon_WITH_RC4_128_SHA"
812# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA"
813# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA "TLS_ECDHE_RSA_WITH_RC4_128_SHA"
814# define TLS1_RFC_PSK_WITH_RC4_128_SHA "TLS_PSK_WITH_RC4_128_SHA"
815# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA "TLS_RSA_PSK_WITH_RC4_128_SHA"
816# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA "TLS_DHE_PSK_WITH_RC4_128_SHA"
817# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_WITH_ARIA_128_GCM_SHA256"
818# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_WITH_ARIA_256_GCM_SHA384"
819# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256"
820# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384"
821# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256"
822# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384"
823# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256"
824# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384"
825# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256"
826# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384"
827# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256 "TLS_DH_anon_WITH_ARIA_128_GCM_SHA256"
828# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384 "TLS_DH_anon_WITH_ARIA_256_GCM_SHA384"
829# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256"
830# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384"
831# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256"
832# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384"
833# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256"
834# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384"
835# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256"
836# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384"
837# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_PSK_WITH_ARIA_128_GCM_SHA256"
838# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_PSK_WITH_ARIA_256_GCM_SHA384"
839# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256"
840# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384"
841# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256"
842# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384"
843
844
845/*
846 * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE
847 * ciphers names with "EDH" instead of "DHE". Going forward, we should be
848 * using DHE everywhere, though we may indefinitely maintain aliases for
849 * users or configurations that used "EDH"
850 */
851# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA "DHE-DSS-RC4-SHA"
852
853# define TLS1_TXT_PSK_WITH_NULL_SHA "PSK-NULL-SHA"
854# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA "DHE-PSK-NULL-SHA"
855# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA "RSA-PSK-NULL-SHA"
856
857/* AES ciphersuites from RFC3268 */
858# define TLS1_TXT_RSA_WITH_AES_128_SHA "AES128-SHA"
859# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES128-SHA"
860# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES128-SHA"
861# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES128-SHA"
862# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES128-SHA"
863# define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES128-SHA"
864
865# define TLS1_TXT_RSA_WITH_AES_256_SHA "AES256-SHA"
866# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES256-SHA"
867# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES256-SHA"
868# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES256-SHA"
869# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES256-SHA"
870# define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES256-SHA"
871
872/* ECC ciphersuites from RFC4492 */
873# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA "ECDH-ECDSA-NULL-SHA"
874# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA "ECDH-ECDSA-RC4-SHA"
875# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA "ECDH-ECDSA-DES-CBC3-SHA"
876# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA "ECDH-ECDSA-AES128-SHA"
877# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA "ECDH-ECDSA-AES256-SHA"
878
879# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA "ECDHE-ECDSA-NULL-SHA"
880# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA "ECDHE-ECDSA-RC4-SHA"
881# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "ECDHE-ECDSA-DES-CBC3-SHA"
882# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "ECDHE-ECDSA-AES128-SHA"
883# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "ECDHE-ECDSA-AES256-SHA"
884
885# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA "ECDH-RSA-NULL-SHA"
886# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA "ECDH-RSA-RC4-SHA"
887# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA "ECDH-RSA-DES-CBC3-SHA"
888# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA "ECDH-RSA-AES128-SHA"
889# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA "ECDH-RSA-AES256-SHA"
890
891# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA "ECDHE-RSA-NULL-SHA"
892# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA "ECDHE-RSA-RC4-SHA"
893# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA "ECDHE-RSA-DES-CBC3-SHA"
894# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA "ECDHE-RSA-AES128-SHA"
895# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA "ECDHE-RSA-AES256-SHA"
896
897# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA "AECDH-NULL-SHA"
898# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA "AECDH-RC4-SHA"
899# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA "AECDH-DES-CBC3-SHA"
900# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA "AECDH-AES128-SHA"
901# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA "AECDH-AES256-SHA"
902
903/* PSK ciphersuites from RFC 4279 */
904# define TLS1_TXT_PSK_WITH_RC4_128_SHA "PSK-RC4-SHA"
905# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA "PSK-3DES-EDE-CBC-SHA"
906# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA "PSK-AES128-CBC-SHA"
907# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA "PSK-AES256-CBC-SHA"
908
909# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA "DHE-PSK-RC4-SHA"
910# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA "DHE-PSK-3DES-EDE-CBC-SHA"
911# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA "DHE-PSK-AES128-CBC-SHA"
912# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA "DHE-PSK-AES256-CBC-SHA"
913# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA "RSA-PSK-RC4-SHA"
914# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA "RSA-PSK-3DES-EDE-CBC-SHA"
915# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA "RSA-PSK-AES128-CBC-SHA"
916# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA "RSA-PSK-AES256-CBC-SHA"
917
918/* PSK ciphersuites from RFC 5487 */
919# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256"
920# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384"
921# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256 "DHE-PSK-AES128-GCM-SHA256"
922# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384 "DHE-PSK-AES256-GCM-SHA384"
923# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256 "RSA-PSK-AES128-GCM-SHA256"
924# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384 "RSA-PSK-AES256-GCM-SHA384"
925
926# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256 "PSK-AES128-CBC-SHA256"
927# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384 "PSK-AES256-CBC-SHA384"
928# define TLS1_TXT_PSK_WITH_NULL_SHA256 "PSK-NULL-SHA256"
929# define TLS1_TXT_PSK_WITH_NULL_SHA384 "PSK-NULL-SHA384"
930
931# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256 "DHE-PSK-AES128-CBC-SHA256"
932# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384 "DHE-PSK-AES256-CBC-SHA384"
933# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256 "DHE-PSK-NULL-SHA256"
934# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384 "DHE-PSK-NULL-SHA384"
935
936# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256 "RSA-PSK-AES128-CBC-SHA256"
937# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384 "RSA-PSK-AES256-CBC-SHA384"
938# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256 "RSA-PSK-NULL-SHA256"
939# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384 "RSA-PSK-NULL-SHA384"
940
941/* SRP ciphersuite from RFC 5054 */
942# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA "SRP-3DES-EDE-CBC-SHA"
943# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "SRP-RSA-3DES-EDE-CBC-SHA"
944# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "SRP-DSS-3DES-EDE-CBC-SHA"
945# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA "SRP-AES-128-CBC-SHA"
946# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "SRP-RSA-AES-128-CBC-SHA"
947# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "SRP-DSS-AES-128-CBC-SHA"
948# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA "SRP-AES-256-CBC-SHA"
949# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "SRP-RSA-AES-256-CBC-SHA"
950# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "SRP-DSS-AES-256-CBC-SHA"
951
952/* Camellia ciphersuites from RFC4132 */
953# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA "CAMELLIA128-SHA"
954# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA "DH-DSS-CAMELLIA128-SHA"
955# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA "DH-RSA-CAMELLIA128-SHA"
956# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "DHE-DSS-CAMELLIA128-SHA"
957# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "DHE-RSA-CAMELLIA128-SHA"
958# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA "ADH-CAMELLIA128-SHA"
959
960# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA "CAMELLIA256-SHA"
961# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA "DH-DSS-CAMELLIA256-SHA"
962# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA "DH-RSA-CAMELLIA256-SHA"
963# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "DHE-DSS-CAMELLIA256-SHA"
964# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA"
965# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA"
966
967/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
968# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 "CAMELLIA128-SHA256"
969# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DH-DSS-CAMELLIA128-SHA256"
970# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DH-RSA-CAMELLIA128-SHA256"
971# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DHE-DSS-CAMELLIA128-SHA256"
972# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DHE-RSA-CAMELLIA128-SHA256"
973# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 "ADH-CAMELLIA128-SHA256"
974
975# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 "CAMELLIA256-SHA256"
976# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DH-DSS-CAMELLIA256-SHA256"
977# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DH-RSA-CAMELLIA256-SHA256"
978# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DHE-DSS-CAMELLIA256-SHA256"
979# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DHE-RSA-CAMELLIA256-SHA256"
980# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 "ADH-CAMELLIA256-SHA256"
981
982# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256 "PSK-CAMELLIA128-SHA256"
983# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384 "PSK-CAMELLIA256-SHA384"
984# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "DHE-PSK-CAMELLIA128-SHA256"
985# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "DHE-PSK-CAMELLIA256-SHA384"
986# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "RSA-PSK-CAMELLIA128-SHA256"
987# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "RSA-PSK-CAMELLIA256-SHA384"
988# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-PSK-CAMELLIA128-SHA256"
989# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-PSK-CAMELLIA256-SHA384"
990
991/* SEED ciphersuites from RFC4162 */
992# define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA"
993# define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA"
994# define TLS1_TXT_DH_RSA_WITH_SEED_SHA "DH-RSA-SEED-SHA"
995# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA "DHE-DSS-SEED-SHA"
996# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA "DHE-RSA-SEED-SHA"
997# define TLS1_TXT_ADH_WITH_SEED_SHA "ADH-SEED-SHA"
998
999/* TLS v1.2 ciphersuites */
1000# define TLS1_TXT_RSA_WITH_NULL_SHA256 "NULL-SHA256"
1001# define TLS1_TXT_RSA_WITH_AES_128_SHA256 "AES128-SHA256"
1002# define TLS1_TXT_RSA_WITH_AES_256_SHA256 "AES256-SHA256"
1003# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 "DH-DSS-AES128-SHA256"
1004# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 "DH-RSA-AES128-SHA256"
1005# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 "DHE-DSS-AES128-SHA256"
1006# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 "DHE-RSA-AES128-SHA256"
1007# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 "DH-DSS-AES256-SHA256"
1008# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 "DH-RSA-AES256-SHA256"
1009# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 "DHE-DSS-AES256-SHA256"
1010# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 "DHE-RSA-AES256-SHA256"
1011# define TLS1_TXT_ADH_WITH_AES_128_SHA256 "ADH-AES128-SHA256"
1012# define TLS1_TXT_ADH_WITH_AES_256_SHA256 "ADH-AES256-SHA256"
1013
1014/* TLS v1.2 GCM ciphersuites from RFC5288 */
1015# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 "AES128-GCM-SHA256"
1016# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 "AES256-GCM-SHA384"
1017# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 "DHE-RSA-AES128-GCM-SHA256"
1018# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 "DHE-RSA-AES256-GCM-SHA384"
1019# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 "DH-RSA-AES128-GCM-SHA256"
1020# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 "DH-RSA-AES256-GCM-SHA384"
1021# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 "DHE-DSS-AES128-GCM-SHA256"
1022# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 "DHE-DSS-AES256-GCM-SHA384"
1023# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 "DH-DSS-AES128-GCM-SHA256"
1024# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 "DH-DSS-AES256-GCM-SHA384"
1025# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 "ADH-AES128-GCM-SHA256"
1026# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 "ADH-AES256-GCM-SHA384"
1027
1028/* CCM ciphersuites from RFC6655 */
1029# define TLS1_TXT_RSA_WITH_AES_128_CCM "AES128-CCM"
1030# define TLS1_TXT_RSA_WITH_AES_256_CCM "AES256-CCM"
1031# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM "DHE-RSA-AES128-CCM"
1032# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM "DHE-RSA-AES256-CCM"
1033
1034# define TLS1_TXT_RSA_WITH_AES_128_CCM_8 "AES128-CCM8"
1035# define TLS1_TXT_RSA_WITH_AES_256_CCM_8 "AES256-CCM8"
1036# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 "DHE-RSA-AES128-CCM8"
1037# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 "DHE-RSA-AES256-CCM8"
1038
1039# define TLS1_TXT_PSK_WITH_AES_128_CCM "PSK-AES128-CCM"
1040# define TLS1_TXT_PSK_WITH_AES_256_CCM "PSK-AES256-CCM"
1041# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM "DHE-PSK-AES128-CCM"
1042# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM "DHE-PSK-AES256-CCM"
1043
1044# define TLS1_TXT_PSK_WITH_AES_128_CCM_8 "PSK-AES128-CCM8"
1045# define TLS1_TXT_PSK_WITH_AES_256_CCM_8 "PSK-AES256-CCM8"
1046# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 "DHE-PSK-AES128-CCM8"
1047# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 "DHE-PSK-AES256-CCM8"
1048
1049/* CCM ciphersuites from RFC7251 */
1050# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM "ECDHE-ECDSA-AES128-CCM"
1051# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM "ECDHE-ECDSA-AES256-CCM"
1052# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 "ECDHE-ECDSA-AES128-CCM8"
1053# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 "ECDHE-ECDSA-AES256-CCM8"
1054
1055/* ECDH HMAC based ciphersuites from RFC5289 */
1056# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 "ECDHE-ECDSA-AES128-SHA256"
1057# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 "ECDHE-ECDSA-AES256-SHA384"
1058# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 "ECDH-ECDSA-AES128-SHA256"
1059# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 "ECDH-ECDSA-AES256-SHA384"
1060# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 "ECDHE-RSA-AES128-SHA256"
1061# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 "ECDHE-RSA-AES256-SHA384"
1062# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 "ECDH-RSA-AES128-SHA256"
1063# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 "ECDH-RSA-AES256-SHA384"
1064
1065/* ECDH GCM based ciphersuites from RFC5289 */
1066# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "ECDHE-ECDSA-AES128-GCM-SHA256"
1067# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "ECDHE-ECDSA-AES256-GCM-SHA384"
1068# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 "ECDH-ECDSA-AES128-GCM-SHA256"
1069# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 "ECDH-ECDSA-AES256-GCM-SHA384"
1070# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "ECDHE-RSA-AES128-GCM-SHA256"
1071# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "ECDHE-RSA-AES256-GCM-SHA384"
1072# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 "ECDH-RSA-AES128-GCM-SHA256"
1073# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 "ECDH-RSA-AES256-GCM-SHA384"
1074
1075/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */
1076# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256"
1077# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384"
1078
1079/* ECDHE PSK ciphersuites from RFC 5489 */
1080# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA "ECDHE-PSK-RC4-SHA"
1081# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "ECDHE-PSK-3DES-EDE-CBC-SHA"
1082# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA "ECDHE-PSK-AES128-CBC-SHA"
1083# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA "ECDHE-PSK-AES256-CBC-SHA"
1084
1085# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "ECDHE-PSK-AES128-CBC-SHA256"
1086# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "ECDHE-PSK-AES256-CBC-SHA384"
1087
1088# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA "ECDHE-PSK-NULL-SHA"
1089# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256 "ECDHE-PSK-NULL-SHA256"
1090# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384 "ECDHE-PSK-NULL-SHA384"
1091
1092/* Camellia-CBC ciphersuites from RFC6367 */
1093# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-ECDSA-CAMELLIA128-SHA256"
1094# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-ECDSA-CAMELLIA256-SHA384"
1095# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-ECDSA-CAMELLIA128-SHA256"
1096# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-ECDSA-CAMELLIA256-SHA384"
1097# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-RSA-CAMELLIA128-SHA256"
1098# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-RSA-CAMELLIA256-SHA384"
1099# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-RSA-CAMELLIA128-SHA256"
1100# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-RSA-CAMELLIA256-SHA384"
1101
1102/* draft-ietf-tls-chacha20-poly1305-03 */
1103# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305 "ECDHE-RSA-CHACHA20-POLY1305"
1104# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "ECDHE-ECDSA-CHACHA20-POLY1305"
1105# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305 "DHE-RSA-CHACHA20-POLY1305"
1106# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305 "PSK-CHACHA20-POLY1305"
1107# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305 "ECDHE-PSK-CHACHA20-POLY1305"
1108# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305 "DHE-PSK-CHACHA20-POLY1305"
1109# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305 "RSA-PSK-CHACHA20-POLY1305"
1110
1111/* Aria ciphersuites from RFC6209 */
1112# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256 "ARIA128-GCM-SHA256"
1113# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384 "ARIA256-GCM-SHA384"
1114# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "DHE-RSA-ARIA128-GCM-SHA256"
1115# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "DHE-RSA-ARIA256-GCM-SHA384"
1116# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256 "DH-RSA-ARIA128-GCM-SHA256"
1117# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384 "DH-RSA-ARIA256-GCM-SHA384"
1118# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "DHE-DSS-ARIA128-GCM-SHA256"
1119# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "DHE-DSS-ARIA256-GCM-SHA384"
1120# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256 "DH-DSS-ARIA128-GCM-SHA256"
1121# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384 "DH-DSS-ARIA256-GCM-SHA384"
1122# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256 "ADH-ARIA128-GCM-SHA256"
1123# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384 "ADH-ARIA256-GCM-SHA384"
1124# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ECDSA-ARIA128-GCM-SHA256"
1125# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ECDSA-ARIA256-GCM-SHA384"
1126# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ECDSA-ARIA128-GCM-SHA256"
1127# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ECDSA-ARIA256-GCM-SHA384"
1128# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ARIA128-GCM-SHA256"
1129# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ARIA256-GCM-SHA384"
1130# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ARIA128-GCM-SHA256"
1131# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ARIA256-GCM-SHA384"
1132# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256 "PSK-ARIA128-GCM-SHA256"
1133# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384 "PSK-ARIA256-GCM-SHA384"
1134# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "DHE-PSK-ARIA128-GCM-SHA256"
1135# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "DHE-PSK-ARIA256-GCM-SHA384"
1136# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "RSA-PSK-ARIA128-GCM-SHA256"
1137# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "RSA-PSK-ARIA256-GCM-SHA384"
1138
1139# define TLS_CT_RSA_SIGN 1
1140# define TLS_CT_DSS_SIGN 2
1141# define TLS_CT_RSA_FIXED_DH 3
1142# define TLS_CT_DSS_FIXED_DH 4
1143# define TLS_CT_ECDSA_SIGN 64
1144# define TLS_CT_RSA_FIXED_ECDH 65
1145# define TLS_CT_ECDSA_FIXED_ECDH 66
1146# define TLS_CT_GOST01_SIGN 22
1147# define TLS_CT_GOST12_IANA_SIGN 67
1148# define TLS_CT_GOST12_IANA_512_SIGN 68
1149# define TLS_CT_GOST12_LEGACY_SIGN 238
1150# define TLS_CT_GOST12_LEGACY_512_SIGN 239
1151
1152# ifndef OPENSSL_NO_DEPRECATED_3_0
1153# define TLS_CT_GOST12_SIGN TLS_CT_GOST12_LEGACY_SIGN
1154# define TLS_CT_GOST12_512_SIGN TLS_CT_GOST12_LEGACY_512_SIGN
1155# endif
1156
1157/*
1158 * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see
1159 * comment there)
1160 */
1161# define TLS_CT_NUMBER 12
1162
1163# if defined(SSL3_CT_NUMBER)
1164# if TLS_CT_NUMBER != SSL3_CT_NUMBER
1165# error "SSL/TLS CT_NUMBER values do not match"
1166# endif
1167# endif
1168
1169# define TLS1_FINISH_MAC_LENGTH 12
1170
1171# define TLS_MD_MAX_CONST_SIZE 22
1172
1173/* ASCII: "client finished", in hex for EBCDIC compatibility */
1174# define TLS_MD_CLIENT_FINISH_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64"
1175# define TLS_MD_CLIENT_FINISH_CONST_SIZE 15
1176/* ASCII: "server finished", in hex for EBCDIC compatibility */
1177# define TLS_MD_SERVER_FINISH_CONST "\x73\x65\x72\x76\x65\x72\x20\x66\x69\x6e\x69\x73\x68\x65\x64"
1178# define TLS_MD_SERVER_FINISH_CONST_SIZE 15
1179/* ASCII: "server write key", in hex for EBCDIC compatibility */
1180# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
1181# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
1182/* ASCII: "key expansion", in hex for EBCDIC compatibility */
1183# define TLS_MD_KEY_EXPANSION_CONST "\x6b\x65\x79\x20\x65\x78\x70\x61\x6e\x73\x69\x6f\x6e"
1184# define TLS_MD_KEY_EXPANSION_CONST_SIZE 13
1185/* ASCII: "client write key", in hex for EBCDIC compatibility */
1186# define TLS_MD_CLIENT_WRITE_KEY_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
1187# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE 16
1188/* ASCII: "server write key", in hex for EBCDIC compatibility */
1189# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
1190# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
1191/* ASCII: "IV block", in hex for EBCDIC compatibility */
1192# define TLS_MD_IV_BLOCK_CONST "\x49\x56\x20\x62\x6c\x6f\x63\x6b"
1193# define TLS_MD_IV_BLOCK_CONST_SIZE 8
1194/* ASCII: "master secret", in hex for EBCDIC compatibility */
1195# define TLS_MD_MASTER_SECRET_CONST "\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
1196# define TLS_MD_MASTER_SECRET_CONST_SIZE 13
1197/* ASCII: "extended master secret", in hex for EBCDIC compatibility */
1198# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "\x65\x78\x74\x65\x6e\x64\x65\x64\x20\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
1199# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE 22
1200
1201/* TLS Session Ticket extension struct */
1202struct tls_session_ticket_ext_st {
1203 unsigned short length;
1204 void *data;
1205};
1206
1207#ifdef __cplusplus
1208}
1209#endif
1210#endif
1211