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