Coverage Report

Created: 2026-07-16 07:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/PcapPlusPlus/Packet++/src/SSLHandshake.cpp
Line
Count
Source
1
53.0k
#define LOG_MODULE PacketLogModuleSSLLayer
2
3
#include "EndianPortable.h"
4
#include "md5.h"
5
#include <sstream>
6
#include <unordered_map>
7
#include <set>
8
#include <utility>
9
#include <cstring>
10
#include "Logger.h"
11
#include "SSLHandshake.h"
12
13
namespace pcpp
14
{
15
16
  // --------------
17
  // SSLCipherSuite
18
  // --------------
19
20
  // clang-format off
21
  static const SSLCipherSuite Cipher1 = SSLCipherSuite(0x0000, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_NULL, SSL_HASH_NULL, "TLS_NULL_WITH_NULL_NULL");
22
  static const SSLCipherSuite Cipher2 = SSLCipherSuite(0x0001, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_NULL, SSL_HASH_MD5, "TLS_RSA_WITH_NULL_MD5");
23
  static const SSLCipherSuite Cipher3 = SSLCipherSuite(0x0002, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_RSA_WITH_NULL_SHA");
24
  static const SSLCipherSuite Cipher4 = SSLCipherSuite(0x0003, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_RC4_40, SSL_HASH_MD5, "TLS_RSA_EXPORT_WITH_RC4_40_MD5");
25
  static const SSLCipherSuite Cipher5 = SSLCipherSuite(0x0004, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_RC4_128, SSL_HASH_MD5, "TLS_RSA_WITH_RC4_128_MD5");
26
  static const SSLCipherSuite Cipher6 = SSLCipherSuite(0x0005, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_RSA_WITH_RC4_128_SHA");
27
  static const SSLCipherSuite Cipher7 = SSLCipherSuite(0x0006, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_RC2_CBC_40, SSL_HASH_MD5, "TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5");
28
  static const SSLCipherSuite Cipher8 = SSLCipherSuite(0x0007, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_IDEA_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_IDEA_CBC_SHA");
29
  static const SSLCipherSuite Cipher9 = SSLCipherSuite(0x0008, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_RSA_EXPORT_WITH_DES40_CBC_SHA");
30
  static const SSLCipherSuite Cipher10 = SSLCipherSuite(0x0009, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_DES_CBC_SHA");
31
  static const SSLCipherSuite Cipher11 = SSLCipherSuite(0x000A, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_3DES_EDE_CBC_SHA");
32
  static const SSLCipherSuite Cipher12 = SSLCipherSuite(0x000B, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA");
33
  static const SSLCipherSuite Cipher13 = SSLCipherSuite(0x000C, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_DES_CBC_SHA");
34
  static const SSLCipherSuite Cipher14 = SSLCipherSuite(0x000D, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA");
35
  static const SSLCipherSuite Cipher15 = SSLCipherSuite(0x000E, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA");
36
  static const SSLCipherSuite Cipher16 = SSLCipherSuite(0x000F, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_DES_CBC_SHA");
37
  static const SSLCipherSuite Cipher17 = SSLCipherSuite(0x0010, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA");
38
  static const SSLCipherSuite Cipher18 = SSLCipherSuite(0x0011, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA");
39
  static const SSLCipherSuite Cipher19 = SSLCipherSuite(0x0012, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_DES_CBC_SHA");
40
  static const SSLCipherSuite Cipher20 = SSLCipherSuite(0x0013, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA");
41
  static const SSLCipherSuite Cipher21 = SSLCipherSuite(0x0014, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA");
42
  static const SSLCipherSuite Cipher22 = SSLCipherSuite(0x0015, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_DES_CBC_SHA");
43
  static const SSLCipherSuite Cipher23 = SSLCipherSuite(0x0016, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA");
44
  static const SSLCipherSuite Cipher24 = SSLCipherSuite(0x0017, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_RC4_40, SSL_HASH_MD5, "TLS_DH_anon_EXPORT_WITH_RC4_40_MD5");
45
  static const SSLCipherSuite Cipher25 = SSLCipherSuite(0x0018, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_RC4_128, SSL_HASH_MD5, "TLS_DH_anon_WITH_RC4_128_MD5");
46
  static const SSLCipherSuite Cipher26 = SSLCipherSuite(0x0019, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_DES40_CBC, SSL_HASH_SHA, "TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA");
47
  static const SSLCipherSuite Cipher27 = SSLCipherSuite(0x001A, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_DES_CBC_SHA");
48
  static const SSLCipherSuite Cipher28 = SSLCipherSuite(0x001B, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_3DES_EDE_CBC_SHA");
49
  static const SSLCipherSuite Cipher29 = SSLCipherSuite(0x001E, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_DES_CBC, SSL_HASH_SHA, "TLS_KRB5_WITH_DES_CBC_SHA");
50
  static const SSLCipherSuite Cipher30 = SSLCipherSuite(0x001F, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_KRB5_WITH_3DES_EDE_CBC_SHA");
51
  static const SSLCipherSuite Cipher31 = SSLCipherSuite(0x0020, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_KRB5_WITH_RC4_128_SHA");
52
  static const SSLCipherSuite Cipher32 = SSLCipherSuite(0x0021, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_IDEA_CBC, SSL_HASH_SHA, "TLS_KRB5_WITH_IDEA_CBC_SHA");
53
  static const SSLCipherSuite Cipher33 = SSLCipherSuite(0x0022, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_DES_CBC, SSL_HASH_MD5, "TLS_KRB5_WITH_DES_CBC_MD5");
54
  static const SSLCipherSuite Cipher34 = SSLCipherSuite(0x0023, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_3DES_EDE_CBC, SSL_HASH_MD5, "TLS_KRB5_WITH_3DES_EDE_CBC_MD5");
55
  static const SSLCipherSuite Cipher35 = SSLCipherSuite(0x0024, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC4_128, SSL_HASH_MD5, "TLS_KRB5_WITH_RC4_128_MD5");
56
  static const SSLCipherSuite Cipher36 = SSLCipherSuite(0x0025, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_IDEA_CBC, SSL_HASH_MD5, "TLS_KRB5_WITH_IDEA_CBC_MD5");
57
  static const SSLCipherSuite Cipher37 = SSLCipherSuite(0x0026, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_DES_CBC_40, SSL_HASH_SHA, "TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA");
58
  static const SSLCipherSuite Cipher38 = SSLCipherSuite(0x0027, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC2_CBC_40, SSL_HASH_SHA, "TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA");
59
  static const SSLCipherSuite Cipher39 = SSLCipherSuite(0x0028, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC4_40, SSL_HASH_SHA, "TLS_KRB5_EXPORT_WITH_RC4_40_SHA");
60
  static const SSLCipherSuite Cipher40 = SSLCipherSuite(0x0029, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_DES_CBC_40, SSL_HASH_MD5, "TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5");
61
  static const SSLCipherSuite Cipher41 = SSLCipherSuite(0x002A, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC2_CBC_40, SSL_HASH_MD5, "TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5");
62
  static const SSLCipherSuite Cipher42 = SSLCipherSuite(0x002B, SSL_KEYX_KRB5, SSL_AUTH_KRB5, SSL_SYM_RC4_40, SSL_HASH_MD5, "TLS_KRB5_EXPORT_WITH_RC4_40_MD5");
63
  static const SSLCipherSuite Cipher43 = SSLCipherSuite(0x002C, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_PSK_WITH_NULL_SHA");
64
  static const SSLCipherSuite Cipher44 = SSLCipherSuite(0x002D, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_DHE_PSK_WITH_NULL_SHA");
65
  static const SSLCipherSuite Cipher45 = SSLCipherSuite(0x002E, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_RSA_PSK_WITH_NULL_SHA");
66
  static const SSLCipherSuite Cipher46 = SSLCipherSuite(0x002F, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_AES_128_CBC_SHA");
67
  static const SSLCipherSuite Cipher47 = SSLCipherSuite(0x0030, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_AES_128_CBC_SHA");
68
  static const SSLCipherSuite Cipher48 = SSLCipherSuite(0x0031, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_AES_128_CBC_SHA");
69
  static const SSLCipherSuite Cipher49 = SSLCipherSuite(0x0032, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_AES_128_CBC_SHA");
70
  static const SSLCipherSuite Cipher50 = SSLCipherSuite(0x0033, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_AES_128_CBC_SHA");
71
  static const SSLCipherSuite Cipher51 = SSLCipherSuite(0x0034, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_AES_128_CBC_SHA");
72
  static const SSLCipherSuite Cipher52 = SSLCipherSuite(0x0035, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_AES_256_CBC_SHA");
73
  static const SSLCipherSuite Cipher53 = SSLCipherSuite(0x0036, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_AES_256_CBC_SHA");
74
  static const SSLCipherSuite Cipher54 = SSLCipherSuite(0x0037, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_AES_256_CBC_SHA");
75
  static const SSLCipherSuite Cipher55 = SSLCipherSuite(0x0038, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_AES_256_CBC_SHA");
76
  static const SSLCipherSuite Cipher56 = SSLCipherSuite(0x0039, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_AES_256_CBC_SHA");
77
  static const SSLCipherSuite Cipher57 = SSLCipherSuite(0x003A, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_AES_256_CBC_SHA");
78
  static const SSLCipherSuite Cipher58 = SSLCipherSuite(0x003B, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_NULL, SSL_HASH_SHA256, "TLS_RSA_WITH_NULL_SHA256");
79
  static const SSLCipherSuite Cipher59 = SSLCipherSuite(0x003C, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_RSA_WITH_AES_128_CBC_SHA256");
80
  static const SSLCipherSuite Cipher60 = SSLCipherSuite(0x003D, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_RSA_WITH_AES_256_CBC_SHA256");
81
  static const SSLCipherSuite Cipher61 = SSLCipherSuite(0x003E, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_AES_128_CBC_SHA256");
82
  static const SSLCipherSuite Cipher62 = SSLCipherSuite(0x003F, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_AES_128_CBC_SHA256");
83
  static const SSLCipherSuite Cipher63 = SSLCipherSuite(0x0040, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256");
84
  static const SSLCipherSuite Cipher64 = SSLCipherSuite(0x0041, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA");
85
  static const SSLCipherSuite Cipher65 = SSLCipherSuite(0x0042, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA");
86
  static const SSLCipherSuite Cipher66 = SSLCipherSuite(0x0043, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA");
87
  static const SSLCipherSuite Cipher67 = SSLCipherSuite(0x0044, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA");
88
  static const SSLCipherSuite Cipher68 = SSLCipherSuite(0x0045, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA");
89
  static const SSLCipherSuite Cipher69 = SSLCipherSuite(0x0046, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA");
90
  static const SSLCipherSuite Cipher70 = SSLCipherSuite(0x0067, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256");
91
  static const SSLCipherSuite Cipher71 = SSLCipherSuite(0x0068, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_AES_256_CBC_SHA256");
92
  static const SSLCipherSuite Cipher72 = SSLCipherSuite(0x0069, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_AES_256_CBC_SHA256");
93
  static const SSLCipherSuite Cipher73 = SSLCipherSuite(0x006A, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256");
94
  static const SSLCipherSuite Cipher74 = SSLCipherSuite(0x006B, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256");
95
  static const SSLCipherSuite Cipher75 = SSLCipherSuite(0x006C, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DH_anon_WITH_AES_128_CBC_SHA256");
96
  static const SSLCipherSuite Cipher76 = SSLCipherSuite(0x006D, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_256_CBC, SSL_HASH_SHA256, "TLS_DH_anon_WITH_AES_256_CBC_SHA256");
97
  static const SSLCipherSuite Cipher77 = SSLCipherSuite(0x0084, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA");
98
  static const SSLCipherSuite Cipher78 = SSLCipherSuite(0x0085, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA");
99
  static const SSLCipherSuite Cipher79 = SSLCipherSuite(0x0086, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA");
100
  static const SSLCipherSuite Cipher80 = SSLCipherSuite(0x0087, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA");
101
  static const SSLCipherSuite Cipher81 = SSLCipherSuite(0x0088, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA");
102
  static const SSLCipherSuite Cipher82 = SSLCipherSuite(0x0089, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA");
103
  static const SSLCipherSuite Cipher83 = SSLCipherSuite(0x008A, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_PSK_WITH_RC4_128_SHA");
104
  static const SSLCipherSuite Cipher84 = SSLCipherSuite(0x008B, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_PSK_WITH_3DES_EDE_CBC_SHA");
105
  static const SSLCipherSuite Cipher85 = SSLCipherSuite(0x008C, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_PSK_WITH_AES_128_CBC_SHA");
106
  static const SSLCipherSuite Cipher86 = SSLCipherSuite(0x008D, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_PSK_WITH_AES_256_CBC_SHA");
107
  static const SSLCipherSuite Cipher87 = SSLCipherSuite(0x008E, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_DHE_PSK_WITH_RC4_128_SHA");
108
  static const SSLCipherSuite Cipher88 = SSLCipherSuite(0x008F, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA");
109
  static const SSLCipherSuite Cipher89 = SSLCipherSuite(0x0090, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_DHE_PSK_WITH_AES_128_CBC_SHA");
110
  static const SSLCipherSuite Cipher90 = SSLCipherSuite(0x0091, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_DHE_PSK_WITH_AES_256_CBC_SHA");
111
  static const SSLCipherSuite Cipher91 = SSLCipherSuite(0x0092, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_RSA_PSK_WITH_RC4_128_SHA");
112
  static const SSLCipherSuite Cipher92 = SSLCipherSuite(0x0093, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA");
113
  static const SSLCipherSuite Cipher93 = SSLCipherSuite(0x0094, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_RSA_PSK_WITH_AES_128_CBC_SHA");
114
  static const SSLCipherSuite Cipher94 = SSLCipherSuite(0x0095, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_RSA_PSK_WITH_AES_256_CBC_SHA");
115
  static const SSLCipherSuite Cipher95 = SSLCipherSuite(0x0096, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_RSA_WITH_SEED_CBC_SHA");
116
  static const SSLCipherSuite Cipher96 = SSLCipherSuite(0x0097, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_DH_DSS_WITH_SEED_CBC_SHA");
117
  static const SSLCipherSuite Cipher97 = SSLCipherSuite(0x0098, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_DH_RSA_WITH_SEED_CBC_SHA");
118
  static const SSLCipherSuite Cipher98 = SSLCipherSuite(0x0099, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_DHE_DSS_WITH_SEED_CBC_SHA");
119
  static const SSLCipherSuite Cipher99 = SSLCipherSuite(0x009A, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_DHE_RSA_WITH_SEED_CBC_SHA");
120
  static const SSLCipherSuite Cipher100 = SSLCipherSuite(0x009B, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_SEED_CBC, SSL_HASH_SHA, "TLS_DH_anon_WITH_SEED_CBC_SHA");
121
  static const SSLCipherSuite Cipher101 = SSLCipherSuite(0x009C, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_RSA_WITH_AES_128_GCM_SHA256");
122
  static const SSLCipherSuite Cipher102 = SSLCipherSuite(0x009D, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_RSA_WITH_AES_256_GCM_SHA384");
123
  static const SSLCipherSuite Cipher103 = SSLCipherSuite(0x009E, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256");
124
  static const SSLCipherSuite Cipher104 = SSLCipherSuite(0x009F, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384");
125
  static const SSLCipherSuite Cipher105 = SSLCipherSuite(0x00A0, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_AES_128_GCM_SHA256");
126
  static const SSLCipherSuite Cipher106 = SSLCipherSuite(0x00A1, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DH_RSA_WITH_AES_256_GCM_SHA384");
127
  static const SSLCipherSuite Cipher107 = SSLCipherSuite(0x00A2, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256");
128
  static const SSLCipherSuite Cipher108 = SSLCipherSuite(0x00A3, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384");
129
  static const SSLCipherSuite Cipher109 = SSLCipherSuite(0x00A4, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_AES_128_GCM_SHA256");
130
  static const SSLCipherSuite Cipher110 = SSLCipherSuite(0x00A5, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DH_DSS_WITH_AES_256_GCM_SHA384");
131
  static const SSLCipherSuite Cipher111 = SSLCipherSuite(0x00A6, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DH_anon_WITH_AES_128_GCM_SHA256");
132
  static const SSLCipherSuite Cipher112 = SSLCipherSuite(0x00A7, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DH_anon_WITH_AES_256_GCM_SHA384");
133
  static const SSLCipherSuite Cipher113 = SSLCipherSuite(0x00A8, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_PSK_WITH_AES_128_GCM_SHA256");
134
  static const SSLCipherSuite Cipher114 = SSLCipherSuite(0x00A9, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_PSK_WITH_AES_256_GCM_SHA384");
135
  static const SSLCipherSuite Cipher115 = SSLCipherSuite(0x00AA, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_AES_128_GCM_SHA256");
136
  static const SSLCipherSuite Cipher116 = SSLCipherSuite(0x00AB, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_AES_256_GCM_SHA384");
137
  static const SSLCipherSuite Cipher117 = SSLCipherSuite(0x00AC, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_AES_128_GCM_SHA256");
138
  static const SSLCipherSuite Cipher118 = SSLCipherSuite(0x00AD, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_AES_256_GCM_SHA384");
139
  static const SSLCipherSuite Cipher119 = SSLCipherSuite(0x00AE, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_PSK_WITH_AES_128_CBC_SHA256");
140
  static const SSLCipherSuite Cipher120 = SSLCipherSuite(0x00AF, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_PSK_WITH_AES_256_CBC_SHA384");
141
  static const SSLCipherSuite Cipher121 = SSLCipherSuite(0x00B0, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA256, "TLS_PSK_WITH_NULL_SHA256");
142
  static const SSLCipherSuite Cipher122 = SSLCipherSuite(0x00B1, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA384, "TLS_PSK_WITH_NULL_SHA384");
143
  static const SSLCipherSuite Cipher123 = SSLCipherSuite(0x00B2, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_AES_128_CBC_SHA256");
144
  static const SSLCipherSuite Cipher124 = SSLCipherSuite(0x00B3, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_AES_256_CBC_SHA384");
145
  static const SSLCipherSuite Cipher125 = SSLCipherSuite(0x00B4, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_NULL_SHA256");
146
  static const SSLCipherSuite Cipher126 = SSLCipherSuite(0x00B5, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_NULL_SHA384");
147
  static const SSLCipherSuite Cipher127 = SSLCipherSuite(0x00B6, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_AES_128_CBC_SHA256");
148
  static const SSLCipherSuite Cipher128 = SSLCipherSuite(0x00B7, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_AES_256_CBC_SHA384");
149
  static const SSLCipherSuite Cipher129 = SSLCipherSuite(0x00B8, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_NULL_SHA256");
150
  static const SSLCipherSuite Cipher130 = SSLCipherSuite(0x00B9, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_NULL_SHA384");
151
  static const SSLCipherSuite Cipher131 = SSLCipherSuite(0x00BA, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256");
152
  static const SSLCipherSuite Cipher132 = SSLCipherSuite(0x00BB, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256");
153
  static const SSLCipherSuite Cipher133 = SSLCipherSuite(0x00BC, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256");
154
  static const SSLCipherSuite Cipher134 = SSLCipherSuite(0x00BD, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256");
155
  static const SSLCipherSuite Cipher135 = SSLCipherSuite(0x00BE, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256");
156
  static const SSLCipherSuite Cipher136 = SSLCipherSuite(0x00BF, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256");
157
  static const SSLCipherSuite Cipher137 = SSLCipherSuite(0x00C0, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256");
158
  static const SSLCipherSuite Cipher138 = SSLCipherSuite(0x00C1, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256");
159
  static const SSLCipherSuite Cipher139 = SSLCipherSuite(0x00C2, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256");
160
  static const SSLCipherSuite Cipher140 = SSLCipherSuite(0x00C3, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256");
161
  static const SSLCipherSuite Cipher141 = SSLCipherSuite(0x00C4, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256");
162
  static const SSLCipherSuite Cipher142 = SSLCipherSuite(0x00C5, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA256, "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256");
163
  static const SSLCipherSuite Cipher143 = SSLCipherSuite(0xC001, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDH_ECDSA_WITH_NULL_SHA");
164
  static const SSLCipherSuite Cipher144 = SSLCipherSuite(0xC002, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDH_ECDSA_WITH_RC4_128_SHA");
165
  static const SSLCipherSuite Cipher145 = SSLCipherSuite(0xC003, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA");
166
  static const SSLCipherSuite Cipher146 = SSLCipherSuite(0xC004, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA");
167
  static const SSLCipherSuite Cipher147 = SSLCipherSuite(0xC005, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA");
168
  static const SSLCipherSuite Cipher148 = SSLCipherSuite(0xC006, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDHE_ECDSA_WITH_NULL_SHA");
169
  static const SSLCipherSuite Cipher149 = SSLCipherSuite(0xC007, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA");
170
  static const SSLCipherSuite Cipher150 = SSLCipherSuite(0xC008, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA");
171
  static const SSLCipherSuite Cipher151 = SSLCipherSuite(0xC009, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA");
172
  static const SSLCipherSuite Cipher152 = SSLCipherSuite(0xC00A, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA");
173
  static const SSLCipherSuite Cipher153 = SSLCipherSuite(0xC00B, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDH_RSA_WITH_NULL_SHA");
174
  static const SSLCipherSuite Cipher154 = SSLCipherSuite(0xC00C, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDH_RSA_WITH_RC4_128_SHA");
175
  static const SSLCipherSuite Cipher155 = SSLCipherSuite(0xC00D, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA");
176
  static const SSLCipherSuite Cipher156 = SSLCipherSuite(0xC00E, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA");
177
  static const SSLCipherSuite Cipher157 = SSLCipherSuite(0xC00F, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA");
178
  static const SSLCipherSuite Cipher158 = SSLCipherSuite(0xC010, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDHE_RSA_WITH_NULL_SHA");
179
  static const SSLCipherSuite Cipher159 = SSLCipherSuite(0xC011, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDHE_RSA_WITH_RC4_128_SHA");
180
  static const SSLCipherSuite Cipher160 = SSLCipherSuite(0xC012, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA");
181
  static const SSLCipherSuite Cipher161 = SSLCipherSuite(0xC013, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA");
182
  static const SSLCipherSuite Cipher162 = SSLCipherSuite(0xC014, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA");
183
  static const SSLCipherSuite Cipher163 = SSLCipherSuite(0xC015, SSL_KEYX_ECDH, SSL_AUTH_anon, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDH_anon_WITH_NULL_SHA");
184
  static const SSLCipherSuite Cipher164 = SSLCipherSuite(0xC016, SSL_KEYX_ECDH, SSL_AUTH_anon, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDH_anon_WITH_RC4_128_SHA");
185
  static const SSLCipherSuite Cipher165 = SSLCipherSuite(0xC017, SSL_KEYX_ECDH, SSL_AUTH_anon, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA");
186
  static const SSLCipherSuite Cipher166 = SSLCipherSuite(0xC018, SSL_KEYX_ECDH, SSL_AUTH_anon, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDH_anon_WITH_AES_128_CBC_SHA");
187
  static const SSLCipherSuite Cipher167 = SSLCipherSuite(0xC019, SSL_KEYX_ECDH, SSL_AUTH_anon, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDH_anon_WITH_AES_256_CBC_SHA");
188
  static const SSLCipherSuite Cipher168 = SSLCipherSuite(0xC01A, SSL_KEYX_SRP, SSL_AUTH_SHA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA");
189
  static const SSLCipherSuite Cipher169 = SSLCipherSuite(0xC01B, SSL_KEYX_SRP, SSL_AUTH_RSA, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA");
190
  static const SSLCipherSuite Cipher170 = SSLCipherSuite(0xC01C, SSL_KEYX_SRP, SSL_AUTH_DSS, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA");
191
  static const SSLCipherSuite Cipher171 = SSLCipherSuite(0xC01D, SSL_KEYX_SRP, SSL_AUTH_SHA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_WITH_AES_128_CBC_SHA");
192
  static const SSLCipherSuite Cipher172 = SSLCipherSuite(0xC01E, SSL_KEYX_SRP, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA");
193
  static const SSLCipherSuite Cipher173 = SSLCipherSuite(0xC01F, SSL_KEYX_SRP, SSL_AUTH_DSS, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA");
194
  static const SSLCipherSuite Cipher174 = SSLCipherSuite(0xC020, SSL_KEYX_SRP, SSL_AUTH_SHA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_WITH_AES_256_CBC_SHA");
195
  static const SSLCipherSuite Cipher175 = SSLCipherSuite(0xC021, SSL_KEYX_SRP, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA");
196
  static const SSLCipherSuite Cipher176 = SSLCipherSuite(0xC022, SSL_KEYX_SRP, SSL_AUTH_DSS, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA");
197
  static const SSLCipherSuite Cipher177 = SSLCipherSuite(0xC023, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256");
198
  static const SSLCipherSuite Cipher178 = SSLCipherSuite(0xC024, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384");
199
  static const SSLCipherSuite Cipher179 = SSLCipherSuite(0xC025, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256");
200
  static const SSLCipherSuite Cipher180 = SSLCipherSuite(0xC026, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384");
201
  static const SSLCipherSuite Cipher181 = SSLCipherSuite(0xC027, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256");
202
  static const SSLCipherSuite Cipher182 = SSLCipherSuite(0xC028, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384");
203
  static const SSLCipherSuite Cipher183 = SSLCipherSuite(0xC029, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256");
204
  static const SSLCipherSuite Cipher184 = SSLCipherSuite(0xC02A, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384");
205
  static const SSLCipherSuite Cipher185 = SSLCipherSuite(0xC02B, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256");
206
  static const SSLCipherSuite Cipher186 = SSLCipherSuite(0xC02C, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384");
207
  static const SSLCipherSuite Cipher187 = SSLCipherSuite(0xC02D, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256");
208
  static const SSLCipherSuite Cipher188 = SSLCipherSuite(0xC02E, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384");
209
  static const SSLCipherSuite Cipher189 = SSLCipherSuite(0xC02F, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256");
210
  static const SSLCipherSuite Cipher190 = SSLCipherSuite(0xC030, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384");
211
  static const SSLCipherSuite Cipher191 = SSLCipherSuite(0xC031, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256");
212
  static const SSLCipherSuite Cipher192 = SSLCipherSuite(0xC032, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384");
213
  static const SSLCipherSuite Cipher193 = SSLCipherSuite(0xC033, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_RC4_128, SSL_HASH_SHA, "TLS_ECDHE_PSK_WITH_RC4_128_SHA");
214
  static const SSLCipherSuite Cipher194 = SSLCipherSuite(0xC034, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_3DES_EDE_CBC, SSL_HASH_SHA, "TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA");
215
  static const SSLCipherSuite Cipher195 = SSLCipherSuite(0xC035, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA, "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA");
216
  static const SSLCipherSuite Cipher196 = SSLCipherSuite(0xC036, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA, "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA");
217
  static const SSLCipherSuite Cipher197 = SSLCipherSuite(0xC037, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_AES_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256");
218
  static const SSLCipherSuite Cipher198 = SSLCipherSuite(0xC038, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_AES_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384");
219
  static const SSLCipherSuite Cipher199 = SSLCipherSuite(0xC039, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA, "TLS_ECDHE_PSK_WITH_NULL_SHA");
220
  static const SSLCipherSuite Cipher200 = SSLCipherSuite(0xC03A, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA256, "TLS_ECDHE_PSK_WITH_NULL_SHA256");
221
  static const SSLCipherSuite Cipher201 = SSLCipherSuite(0xC03B, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_NULL, SSL_HASH_SHA384, "TLS_ECDHE_PSK_WITH_NULL_SHA384");
222
  static const SSLCipherSuite Cipher202 = SSLCipherSuite(0xC03C, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_RSA_WITH_ARIA_128_CBC_SHA256");
223
  static const SSLCipherSuite Cipher203 = SSLCipherSuite(0xC03D, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_RSA_WITH_ARIA_256_CBC_SHA384");
224
  static const SSLCipherSuite Cipher204 = SSLCipherSuite(0xC03E, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_ARIA_128_CBC_SHA256");
225
  static const SSLCipherSuite Cipher205 = SSLCipherSuite(0xC03F, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DH_DSS_WITH_ARIA_256_CBC_SHA384");
226
  static const SSLCipherSuite Cipher206 = SSLCipherSuite(0xC040, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_ARIA_128_CBC_SHA256");
227
  static const SSLCipherSuite Cipher207 = SSLCipherSuite(0xC041, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DH_RSA_WITH_ARIA_256_CBC_SHA384");
228
  static const SSLCipherSuite Cipher208 = SSLCipherSuite(0xC042, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_ARIA_128_CBC_SHA256");
229
  static const SSLCipherSuite Cipher209 = SSLCipherSuite(0xC043, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DHE_DSS_WITH_ARIA_256_CBC_SHA384");
230
  static const SSLCipherSuite Cipher210 = SSLCipherSuite(0xC044, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256");
231
  static const SSLCipherSuite Cipher211 = SSLCipherSuite(0xC045, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384");
232
  static const SSLCipherSuite Cipher212 = SSLCipherSuite(0xC046, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DH_anon_WITH_ARIA_128_CBC_SHA256");
233
  static const SSLCipherSuite Cipher213 = SSLCipherSuite(0xC047, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DH_anon_WITH_ARIA_256_CBC_SHA384");
234
  static const SSLCipherSuite Cipher214 = SSLCipherSuite(0xC048, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256");
235
  static const SSLCipherSuite Cipher215 = SSLCipherSuite(0xC049, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384");
236
  static const SSLCipherSuite Cipher216 = SSLCipherSuite(0xC04A, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256");
237
  static const SSLCipherSuite Cipher217 = SSLCipherSuite(0xC04B, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384");
238
  static const SSLCipherSuite Cipher218 = SSLCipherSuite(0xC04C, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256");
239
  static const SSLCipherSuite Cipher219 = SSLCipherSuite(0xC04D, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384");
240
  static const SSLCipherSuite Cipher220 = SSLCipherSuite(0xC04E, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256");
241
  static const SSLCipherSuite Cipher221 = SSLCipherSuite(0xC04F, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384");
242
  static const SSLCipherSuite Cipher222 = SSLCipherSuite(0xC050, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_RSA_WITH_ARIA_128_GCM_SHA256");
243
  static const SSLCipherSuite Cipher223 = SSLCipherSuite(0xC051, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_RSA_WITH_ARIA_256_GCM_SHA384");
244
  static const SSLCipherSuite Cipher224 = SSLCipherSuite(0xC052, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256");
245
  static const SSLCipherSuite Cipher225 = SSLCipherSuite(0xC053, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384");
246
  static const SSLCipherSuite Cipher226 = SSLCipherSuite(0xC054, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256");
247
  static const SSLCipherSuite Cipher227 = SSLCipherSuite(0xC055, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384");
248
  static const SSLCipherSuite Cipher228 = SSLCipherSuite(0xC056, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256");
249
  static const SSLCipherSuite Cipher229 = SSLCipherSuite(0xC057, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384");
250
  static const SSLCipherSuite Cipher230 = SSLCipherSuite(0xC058, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256");
251
  static const SSLCipherSuite Cipher231 = SSLCipherSuite(0xC059, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384");
252
  static const SSLCipherSuite Cipher232 = SSLCipherSuite(0xC05A, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_anon_WITH_ARIA_128_GCM_SHA256");
253
  static const SSLCipherSuite Cipher233 = SSLCipherSuite(0xC05B, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_anon_WITH_ARIA_256_GCM_SHA384");
254
  static const SSLCipherSuite Cipher234 = SSLCipherSuite(0xC05C, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256");
255
  static const SSLCipherSuite Cipher235 = SSLCipherSuite(0xC05D, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384");
256
  static const SSLCipherSuite Cipher236 = SSLCipherSuite(0xC05E, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256");
257
  static const SSLCipherSuite Cipher237 = SSLCipherSuite(0xC05F, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384");
258
  static const SSLCipherSuite Cipher238 = SSLCipherSuite(0xC060, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256");
259
  static const SSLCipherSuite Cipher239 = SSLCipherSuite(0xC061, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384");
260
  static const SSLCipherSuite Cipher240 = SSLCipherSuite(0xC062, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256");
261
  static const SSLCipherSuite Cipher241 = SSLCipherSuite(0xC063, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384");
262
  static const SSLCipherSuite Cipher242 = SSLCipherSuite(0xC064, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_PSK_WITH_ARIA_128_CBC_SHA256");
263
  static const SSLCipherSuite Cipher243 = SSLCipherSuite(0xC065, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_PSK_WITH_ARIA_256_CBC_SHA384");
264
  static const SSLCipherSuite Cipher244 = SSLCipherSuite(0xC066, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256");
265
  static const SSLCipherSuite Cipher245 = SSLCipherSuite(0xC067, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384");
266
  static const SSLCipherSuite Cipher246 = SSLCipherSuite(0xC068, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256");
267
  static const SSLCipherSuite Cipher247 = SSLCipherSuite(0xC069, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384");
268
  static const SSLCipherSuite Cipher248 = SSLCipherSuite(0xC06A, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_PSK_WITH_ARIA_128_GCM_SHA256");
269
  static const SSLCipherSuite Cipher249 = SSLCipherSuite(0xC06B, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_PSK_WITH_ARIA_256_GCM_SHA384");
270
  static const SSLCipherSuite Cipher250 = SSLCipherSuite(0xC06C, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256");
271
  static const SSLCipherSuite Cipher251 = SSLCipherSuite(0xC06D, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384");
272
  static const SSLCipherSuite Cipher252 = SSLCipherSuite(0xC06E, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_ARIA_128_GCM, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256");
273
  static const SSLCipherSuite Cipher253 = SSLCipherSuite(0xC06F, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_ARIA_256_GCM, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384");
274
  static const SSLCipherSuite Cipher254 = SSLCipherSuite(0xC070, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_ARIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256");
275
  static const SSLCipherSuite Cipher255 = SSLCipherSuite(0xC071, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_ARIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384");
276
  static const SSLCipherSuite Cipher256 = SSLCipherSuite(0xC072, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256");
277
  static const SSLCipherSuite Cipher257 = SSLCipherSuite(0xC073, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384");
278
  static const SSLCipherSuite Cipher258 = SSLCipherSuite(0xC074, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256");
279
  static const SSLCipherSuite Cipher259 = SSLCipherSuite(0xC075, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384");
280
  static const SSLCipherSuite Cipher260 = SSLCipherSuite(0xC076, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256");
281
  static const SSLCipherSuite Cipher261 = SSLCipherSuite(0xC077, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384");
282
  static const SSLCipherSuite Cipher262 = SSLCipherSuite(0xC078, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256");
283
  static const SSLCipherSuite Cipher263 = SSLCipherSuite(0xC079, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384");
284
  static const SSLCipherSuite Cipher264 = SSLCipherSuite(0xC07A, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256");
285
  static const SSLCipherSuite Cipher265 = SSLCipherSuite(0xC07B, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384");
286
  static const SSLCipherSuite Cipher266 = SSLCipherSuite(0xC07C, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256");
287
  static const SSLCipherSuite Cipher267 = SSLCipherSuite(0xC07D, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384");
288
  static const SSLCipherSuite Cipher268 = SSLCipherSuite(0xC07E, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_RSA_WITH_CAMELLIA_128_GCM_SHA256");
289
  static const SSLCipherSuite Cipher269 = SSLCipherSuite(0xC07F, SSL_KEYX_DH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_RSA_WITH_CAMELLIA_256_GCM_SHA384");
290
  static const SSLCipherSuite Cipher270 = SSLCipherSuite(0xC080, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_DSS_WITH_CAMELLIA_128_GCM_SHA256");
291
  static const SSLCipherSuite Cipher271 = SSLCipherSuite(0xC081, SSL_KEYX_DHE, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_DSS_WITH_CAMELLIA_256_GCM_SHA384");
292
  static const SSLCipherSuite Cipher272 = SSLCipherSuite(0xC082, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_DSS_WITH_CAMELLIA_128_GCM_SHA256");
293
  static const SSLCipherSuite Cipher273 = SSLCipherSuite(0xC083, SSL_KEYX_DH, SSL_AUTH_DSS, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_DSS_WITH_CAMELLIA_256_GCM_SHA384");
294
  static const SSLCipherSuite Cipher274 = SSLCipherSuite(0xC084, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DH_anon_WITH_CAMELLIA_128_GCM_SHA256");
295
  static const SSLCipherSuite Cipher275 = SSLCipherSuite(0xC085, SSL_KEYX_DH, SSL_AUTH_anon, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DH_anon_WITH_CAMELLIA_256_GCM_SHA384");
296
  static const SSLCipherSuite Cipher276 = SSLCipherSuite(0xC086, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256");
297
  static const SSLCipherSuite Cipher277 = SSLCipherSuite(0xC087, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384");
298
  static const SSLCipherSuite Cipher278 = SSLCipherSuite(0xC088, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256");
299
  static const SSLCipherSuite Cipher279 = SSLCipherSuite(0xC089, SSL_KEYX_ECDH, SSL_AUTH_ECDSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384");
300
  static const SSLCipherSuite Cipher280 = SSLCipherSuite(0xC08A, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256");
301
  static const SSLCipherSuite Cipher281 = SSLCipherSuite(0xC08B, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384");
302
  static const SSLCipherSuite Cipher282 = SSLCipherSuite(0xC08C, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256");
303
  static const SSLCipherSuite Cipher283 = SSLCipherSuite(0xC08D, SSL_KEYX_ECDH, SSL_AUTH_RSA, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384");
304
  static const SSLCipherSuite Cipher284 = SSLCipherSuite(0xC08E, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256");
305
  static const SSLCipherSuite Cipher285 = SSLCipherSuite(0xC08F, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384");
306
  static const SSLCipherSuite Cipher286 = SSLCipherSuite(0xC090, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256");
307
  static const SSLCipherSuite Cipher287 = SSLCipherSuite(0xC091, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384");
308
  static const SSLCipherSuite Cipher288 = SSLCipherSuite(0xC092, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_GCM, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256");
309
  static const SSLCipherSuite Cipher289 = SSLCipherSuite(0xC093, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_GCM, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384");
310
  static const SSLCipherSuite Cipher290 = SSLCipherSuite(0xC094, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256");
311
  static const SSLCipherSuite Cipher291 = SSLCipherSuite(0xC095, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384");
312
  static const SSLCipherSuite Cipher292 = SSLCipherSuite(0xC096, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256");
313
  static const SSLCipherSuite Cipher293 = SSLCipherSuite(0xC097, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384");
314
  static const SSLCipherSuite Cipher294 = SSLCipherSuite(0xC098, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256");
315
  static const SSLCipherSuite Cipher295 = SSLCipherSuite(0xC099, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384");
316
  static const SSLCipherSuite Cipher296 = SSLCipherSuite(0xC09A, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_128_CBC, SSL_HASH_SHA256, "TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256");
317
  static const SSLCipherSuite Cipher297 = SSLCipherSuite(0xC09B, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_CAMELLIA_256_CBC, SSL_HASH_SHA384, "TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384");
318
  static const SSLCipherSuite Cipher298 = SSLCipherSuite(0xC09C, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_128, SSL_HASH_CCM, "TLS_RSA_WITH_AES_128_CCM");
319
  static const SSLCipherSuite Cipher299 = SSLCipherSuite(0xC09D, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_256, SSL_HASH_CCM, "TLS_RSA_WITH_AES_256_CCM");
320
  static const SSLCipherSuite Cipher300 = SSLCipherSuite(0xC09E, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_128, SSL_HASH_CCM, "TLS_DHE_RSA_WITH_AES_128_CCM");
321
  static const SSLCipherSuite Cipher301 = SSLCipherSuite(0xC09F, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_256, SSL_HASH_CCM, "TLS_DHE_RSA_WITH_AES_256_CCM");
322
  static const SSLCipherSuite Cipher302 = SSLCipherSuite(0xC0A0, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_128, SSL_HASH_CCM_8, "TLS_RSA_WITH_AES_128_CCM_8");
323
  static const SSLCipherSuite Cipher303 = SSLCipherSuite(0xC0A1, SSL_KEYX_RSA, SSL_AUTH_RSA, SSL_SYM_AES_256, SSL_HASH_CCM_8, "TLS_RSA_WITH_AES_256_CCM_8");
324
  static const SSLCipherSuite Cipher304 = SSLCipherSuite(0xC0A2, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_128, SSL_HASH_CCM_8, "TLS_DHE_RSA_WITH_AES_128_CCM_8");
325
  static const SSLCipherSuite Cipher305 = SSLCipherSuite(0xC0A3, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_AES_256, SSL_HASH_CCM_8, "TLS_DHE_RSA_WITH_AES_256_CCM_8");
326
  static const SSLCipherSuite Cipher306 = SSLCipherSuite(0xC0A4, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_128, SSL_HASH_CCM, "TLS_PSK_WITH_AES_128_CCM");
327
  static const SSLCipherSuite Cipher307 = SSLCipherSuite(0xC0A5, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_256, SSL_HASH_CCM, "TLS_PSK_WITH_AES_256_CCM");
328
  static const SSLCipherSuite Cipher308 = SSLCipherSuite(0xC0A6, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_128, SSL_HASH_CCM, "TLS_DHE_PSK_WITH_AES_128_CCM");
329
  static const SSLCipherSuite Cipher309 = SSLCipherSuite(0xC0A7, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_AES_256, SSL_HASH_CCM, "TLS_DHE_PSK_WITH_AES_256_CCM");
330
  static const SSLCipherSuite Cipher310 = SSLCipherSuite(0xC0A8, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_128, SSL_HASH_CCM_8, "TLS_PSK_WITH_AES_128_CCM_8");
331
  static const SSLCipherSuite Cipher311 = SSLCipherSuite(0xC0A9, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_AES_256, SSL_HASH_CCM_8, "TLS_PSK_WITH_AES_256_CCM_8");
332
  static const SSLCipherSuite Cipher312 = SSLCipherSuite(0xC0AA, SSL_KEYX_PSK, SSL_AUTH_DHE, SSL_SYM_AES_128, SSL_HASH_CCM_8, "TLS_PSK_DHE_WITH_AES_128_CCM_8");
333
  static const SSLCipherSuite Cipher313 = SSLCipherSuite(0xC0AB, SSL_KEYX_PSK, SSL_AUTH_DHE, SSL_SYM_AES_256, SSL_HASH_CCM_8, "TLS_PSK_DHE_WITH_AES_256_CCM_8");
334
  static const SSLCipherSuite Cipher314 = SSLCipherSuite(0xC0AC, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_128, SSL_HASH_CCM, "TLS_ECDHE_ECDSA_WITH_AES_128_CCM");
335
  static const SSLCipherSuite Cipher315 = SSLCipherSuite(0xC0AD, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_256, SSL_HASH_CCM, "TLS_ECDHE_ECDSA_WITH_AES_256_CCM");
336
  static const SSLCipherSuite Cipher316 = SSLCipherSuite(0xC0AE, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_128, SSL_HASH_CCM_8, "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8");
337
  static const SSLCipherSuite Cipher317 = SSLCipherSuite(0xC0AF, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_AES_256, SSL_HASH_CCM_8, "TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8");
338
  static const SSLCipherSuite Cipher318 = SSLCipherSuite(0xCCA8, SSL_KEYX_ECDHE, SSL_AUTH_RSA, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256");
339
  static const SSLCipherSuite Cipher319 = SSLCipherSuite(0xCCA9, SSL_KEYX_ECDHE, SSL_AUTH_ECDSA, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256");
340
  static const SSLCipherSuite Cipher320 = SSLCipherSuite(0xCCAA, SSL_KEYX_DHE, SSL_AUTH_RSA, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256");
341
  static const SSLCipherSuite Cipher321 = SSLCipherSuite(0xCCAB, SSL_KEYX_PSK, SSL_AUTH_PSK, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_PSK_WITH_CHACHA20_POLY1305_SHA256");
342
  static const SSLCipherSuite Cipher322 = SSLCipherSuite(0xCCAC, SSL_KEYX_ECDHE, SSL_AUTH_PSK, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256");
343
  static const SSLCipherSuite Cipher323 = SSLCipherSuite(0xCCAD, SSL_KEYX_DHE, SSL_AUTH_PSK, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256");
344
  static const SSLCipherSuite Cipher324 = SSLCipherSuite(0xCCAE, SSL_KEYX_RSA, SSL_AUTH_PSK, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256");
345
  static const SSLCipherSuite Cipher325 = SSLCipherSuite(0x1301, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_AES_128_GCM, SSL_HASH_SHA256, "TLS_AES_128_GCM_SHA256");
346
  static const SSLCipherSuite Cipher326 = SSLCipherSuite(0x1302, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_AES_256_GCM, SSL_HASH_SHA384, "TLS_AES_256_GCM_SHA384");
347
  static const SSLCipherSuite Cipher327 = SSLCipherSuite(0x1303, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_CHACHA20_POLY1305, SSL_HASH_SHA256, "TLS_CHACHA20_POLY1305_SHA256");
348
  static const SSLCipherSuite Cipher328 = SSLCipherSuite(0x1304, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_AES_128_CCM, SSL_HASH_SHA256, "TLS_AES_128_CCM_SHA256");
349
  static const SSLCipherSuite Cipher329 = SSLCipherSuite(0x1305, SSL_KEYX_NULL, SSL_AUTH_NULL, SSL_SYM_AES_128_CCM_8, SSL_HASH_SHA256, "TLS_AES_128_CCM_8_SHA256");
350
  // clang-format on
351
352
  static std::unordered_map<uint16_t, SSLCipherSuite*> createCipherSuiteIdToObjectMap()
353
4
  {
354
4
    std::unordered_map<uint16_t, SSLCipherSuite*> result;
355
356
4
    result[0x0000] = (SSLCipherSuite*)&Cipher1;
357
4
    result[0x0001] = (SSLCipherSuite*)&Cipher2;
358
4
    result[0x0002] = (SSLCipherSuite*)&Cipher3;
359
4
    result[0x0003] = (SSLCipherSuite*)&Cipher4;
360
4
    result[0x0004] = (SSLCipherSuite*)&Cipher5;
361
4
    result[0x0005] = (SSLCipherSuite*)&Cipher6;
362
4
    result[0x0006] = (SSLCipherSuite*)&Cipher7;
363
4
    result[0x0007] = (SSLCipherSuite*)&Cipher8;
364
4
    result[0x0008] = (SSLCipherSuite*)&Cipher9;
365
4
    result[0x0009] = (SSLCipherSuite*)&Cipher10;
366
4
    result[0x000A] = (SSLCipherSuite*)&Cipher11;
367
4
    result[0x000B] = (SSLCipherSuite*)&Cipher12;
368
4
    result[0x000C] = (SSLCipherSuite*)&Cipher13;
369
4
    result[0x000D] = (SSLCipherSuite*)&Cipher14;
370
4
    result[0x000E] = (SSLCipherSuite*)&Cipher15;
371
4
    result[0x000F] = (SSLCipherSuite*)&Cipher16;
372
4
    result[0x0010] = (SSLCipherSuite*)&Cipher17;
373
4
    result[0x0011] = (SSLCipherSuite*)&Cipher18;
374
4
    result[0x0012] = (SSLCipherSuite*)&Cipher19;
375
4
    result[0x0013] = (SSLCipherSuite*)&Cipher20;
376
4
    result[0x0014] = (SSLCipherSuite*)&Cipher21;
377
4
    result[0x0015] = (SSLCipherSuite*)&Cipher22;
378
4
    result[0x0016] = (SSLCipherSuite*)&Cipher23;
379
4
    result[0x0017] = (SSLCipherSuite*)&Cipher24;
380
4
    result[0x0018] = (SSLCipherSuite*)&Cipher25;
381
4
    result[0x0019] = (SSLCipherSuite*)&Cipher26;
382
4
    result[0x001A] = (SSLCipherSuite*)&Cipher27;
383
4
    result[0x001B] = (SSLCipherSuite*)&Cipher28;
384
4
    result[0x001E] = (SSLCipherSuite*)&Cipher29;
385
4
    result[0x001F] = (SSLCipherSuite*)&Cipher30;
386
4
    result[0x0020] = (SSLCipherSuite*)&Cipher31;
387
4
    result[0x0021] = (SSLCipherSuite*)&Cipher32;
388
4
    result[0x0022] = (SSLCipherSuite*)&Cipher33;
389
4
    result[0x0023] = (SSLCipherSuite*)&Cipher34;
390
4
    result[0x0024] = (SSLCipherSuite*)&Cipher35;
391
4
    result[0x0025] = (SSLCipherSuite*)&Cipher36;
392
4
    result[0x0026] = (SSLCipherSuite*)&Cipher37;
393
4
    result[0x0027] = (SSLCipherSuite*)&Cipher38;
394
4
    result[0x0028] = (SSLCipherSuite*)&Cipher39;
395
4
    result[0x0029] = (SSLCipherSuite*)&Cipher40;
396
4
    result[0x002A] = (SSLCipherSuite*)&Cipher41;
397
4
    result[0x002B] = (SSLCipherSuite*)&Cipher42;
398
4
    result[0x002C] = (SSLCipherSuite*)&Cipher43;
399
4
    result[0x002D] = (SSLCipherSuite*)&Cipher44;
400
4
    result[0x002E] = (SSLCipherSuite*)&Cipher45;
401
4
    result[0x002F] = (SSLCipherSuite*)&Cipher46;
402
4
    result[0x0030] = (SSLCipherSuite*)&Cipher47;
403
4
    result[0x0031] = (SSLCipherSuite*)&Cipher48;
404
4
    result[0x0032] = (SSLCipherSuite*)&Cipher49;
405
4
    result[0x0033] = (SSLCipherSuite*)&Cipher50;
406
4
    result[0x0034] = (SSLCipherSuite*)&Cipher51;
407
4
    result[0x0035] = (SSLCipherSuite*)&Cipher52;
408
4
    result[0x0036] = (SSLCipherSuite*)&Cipher53;
409
4
    result[0x0037] = (SSLCipherSuite*)&Cipher54;
410
4
    result[0x0038] = (SSLCipherSuite*)&Cipher55;
411
4
    result[0x0039] = (SSLCipherSuite*)&Cipher56;
412
4
    result[0x003A] = (SSLCipherSuite*)&Cipher57;
413
4
    result[0x003B] = (SSLCipherSuite*)&Cipher58;
414
4
    result[0x003C] = (SSLCipherSuite*)&Cipher59;
415
4
    result[0x003D] = (SSLCipherSuite*)&Cipher60;
416
4
    result[0x003E] = (SSLCipherSuite*)&Cipher61;
417
4
    result[0x003F] = (SSLCipherSuite*)&Cipher62;
418
4
    result[0x0040] = (SSLCipherSuite*)&Cipher63;
419
4
    result[0x0041] = (SSLCipherSuite*)&Cipher64;
420
4
    result[0x0042] = (SSLCipherSuite*)&Cipher65;
421
4
    result[0x0043] = (SSLCipherSuite*)&Cipher66;
422
4
    result[0x0044] = (SSLCipherSuite*)&Cipher67;
423
4
    result[0x0045] = (SSLCipherSuite*)&Cipher68;
424
4
    result[0x0046] = (SSLCipherSuite*)&Cipher69;
425
4
    result[0x0067] = (SSLCipherSuite*)&Cipher70;
426
4
    result[0x0068] = (SSLCipherSuite*)&Cipher71;
427
4
    result[0x0069] = (SSLCipherSuite*)&Cipher72;
428
4
    result[0x006A] = (SSLCipherSuite*)&Cipher73;
429
4
    result[0x006B] = (SSLCipherSuite*)&Cipher74;
430
4
    result[0x006C] = (SSLCipherSuite*)&Cipher75;
431
4
    result[0x006D] = (SSLCipherSuite*)&Cipher76;
432
4
    result[0x0084] = (SSLCipherSuite*)&Cipher77;
433
4
    result[0x0085] = (SSLCipherSuite*)&Cipher78;
434
4
    result[0x0086] = (SSLCipherSuite*)&Cipher79;
435
4
    result[0x0087] = (SSLCipherSuite*)&Cipher80;
436
4
    result[0x0088] = (SSLCipherSuite*)&Cipher81;
437
4
    result[0x0089] = (SSLCipherSuite*)&Cipher82;
438
4
    result[0x008A] = (SSLCipherSuite*)&Cipher83;
439
4
    result[0x008B] = (SSLCipherSuite*)&Cipher84;
440
4
    result[0x008C] = (SSLCipherSuite*)&Cipher85;
441
4
    result[0x008D] = (SSLCipherSuite*)&Cipher86;
442
4
    result[0x008E] = (SSLCipherSuite*)&Cipher87;
443
4
    result[0x008F] = (SSLCipherSuite*)&Cipher88;
444
4
    result[0x0090] = (SSLCipherSuite*)&Cipher89;
445
4
    result[0x0091] = (SSLCipherSuite*)&Cipher90;
446
4
    result[0x0092] = (SSLCipherSuite*)&Cipher91;
447
4
    result[0x0093] = (SSLCipherSuite*)&Cipher92;
448
4
    result[0x0094] = (SSLCipherSuite*)&Cipher93;
449
4
    result[0x0095] = (SSLCipherSuite*)&Cipher94;
450
4
    result[0x0096] = (SSLCipherSuite*)&Cipher95;
451
4
    result[0x0097] = (SSLCipherSuite*)&Cipher96;
452
4
    result[0x0098] = (SSLCipherSuite*)&Cipher97;
453
4
    result[0x0099] = (SSLCipherSuite*)&Cipher98;
454
4
    result[0x009A] = (SSLCipherSuite*)&Cipher99;
455
4
    result[0x009B] = (SSLCipherSuite*)&Cipher100;
456
4
    result[0x009C] = (SSLCipherSuite*)&Cipher101;
457
4
    result[0x009D] = (SSLCipherSuite*)&Cipher102;
458
4
    result[0x009E] = (SSLCipherSuite*)&Cipher103;
459
4
    result[0x009F] = (SSLCipherSuite*)&Cipher104;
460
4
    result[0x00A0] = (SSLCipherSuite*)&Cipher105;
461
4
    result[0x00A1] = (SSLCipherSuite*)&Cipher106;
462
4
    result[0x00A2] = (SSLCipherSuite*)&Cipher107;
463
4
    result[0x00A3] = (SSLCipherSuite*)&Cipher108;
464
4
    result[0x00A4] = (SSLCipherSuite*)&Cipher109;
465
4
    result[0x00A5] = (SSLCipherSuite*)&Cipher110;
466
4
    result[0x00A6] = (SSLCipherSuite*)&Cipher111;
467
4
    result[0x00A7] = (SSLCipherSuite*)&Cipher112;
468
4
    result[0x00A8] = (SSLCipherSuite*)&Cipher113;
469
4
    result[0x00A9] = (SSLCipherSuite*)&Cipher114;
470
4
    result[0x00AA] = (SSLCipherSuite*)&Cipher115;
471
4
    result[0x00AB] = (SSLCipherSuite*)&Cipher116;
472
4
    result[0x00AC] = (SSLCipherSuite*)&Cipher117;
473
4
    result[0x00AD] = (SSLCipherSuite*)&Cipher118;
474
4
    result[0x00AE] = (SSLCipherSuite*)&Cipher119;
475
4
    result[0x00AF] = (SSLCipherSuite*)&Cipher120;
476
4
    result[0x00B0] = (SSLCipherSuite*)&Cipher121;
477
4
    result[0x00B1] = (SSLCipherSuite*)&Cipher122;
478
4
    result[0x00B2] = (SSLCipherSuite*)&Cipher123;
479
4
    result[0x00B3] = (SSLCipherSuite*)&Cipher124;
480
4
    result[0x00B4] = (SSLCipherSuite*)&Cipher125;
481
4
    result[0x00B5] = (SSLCipherSuite*)&Cipher126;
482
4
    result[0x00B6] = (SSLCipherSuite*)&Cipher127;
483
4
    result[0x00B7] = (SSLCipherSuite*)&Cipher128;
484
4
    result[0x00B8] = (SSLCipherSuite*)&Cipher129;
485
4
    result[0x00B9] = (SSLCipherSuite*)&Cipher130;
486
4
    result[0x00BA] = (SSLCipherSuite*)&Cipher131;
487
4
    result[0x00BB] = (SSLCipherSuite*)&Cipher132;
488
4
    result[0x00BC] = (SSLCipherSuite*)&Cipher133;
489
4
    result[0x00BD] = (SSLCipherSuite*)&Cipher134;
490
4
    result[0x00BE] = (SSLCipherSuite*)&Cipher135;
491
4
    result[0x00BF] = (SSLCipherSuite*)&Cipher136;
492
4
    result[0x00C0] = (SSLCipherSuite*)&Cipher137;
493
4
    result[0x00C1] = (SSLCipherSuite*)&Cipher138;
494
4
    result[0x00C2] = (SSLCipherSuite*)&Cipher139;
495
4
    result[0x00C3] = (SSLCipherSuite*)&Cipher140;
496
4
    result[0x00C4] = (SSLCipherSuite*)&Cipher141;
497
4
    result[0x00C5] = (SSLCipherSuite*)&Cipher142;
498
4
    result[0xC001] = (SSLCipherSuite*)&Cipher143;
499
4
    result[0xC002] = (SSLCipherSuite*)&Cipher144;
500
4
    result[0xC003] = (SSLCipherSuite*)&Cipher145;
501
4
    result[0xC004] = (SSLCipherSuite*)&Cipher146;
502
4
    result[0xC005] = (SSLCipherSuite*)&Cipher147;
503
4
    result[0xC006] = (SSLCipherSuite*)&Cipher148;
504
4
    result[0xC007] = (SSLCipherSuite*)&Cipher149;
505
4
    result[0xC008] = (SSLCipherSuite*)&Cipher150;
506
4
    result[0xC009] = (SSLCipherSuite*)&Cipher151;
507
4
    result[0xC00A] = (SSLCipherSuite*)&Cipher152;
508
4
    result[0xC00B] = (SSLCipherSuite*)&Cipher153;
509
4
    result[0xC00C] = (SSLCipherSuite*)&Cipher154;
510
4
    result[0xC00D] = (SSLCipherSuite*)&Cipher155;
511
4
    result[0xC00E] = (SSLCipherSuite*)&Cipher156;
512
4
    result[0xC00F] = (SSLCipherSuite*)&Cipher157;
513
4
    result[0xC010] = (SSLCipherSuite*)&Cipher158;
514
4
    result[0xC011] = (SSLCipherSuite*)&Cipher159;
515
4
    result[0xC012] = (SSLCipherSuite*)&Cipher160;
516
4
    result[0xC013] = (SSLCipherSuite*)&Cipher161;
517
4
    result[0xC014] = (SSLCipherSuite*)&Cipher162;
518
4
    result[0xC015] = (SSLCipherSuite*)&Cipher163;
519
4
    result[0xC016] = (SSLCipherSuite*)&Cipher164;
520
4
    result[0xC017] = (SSLCipherSuite*)&Cipher165;
521
4
    result[0xC018] = (SSLCipherSuite*)&Cipher166;
522
4
    result[0xC019] = (SSLCipherSuite*)&Cipher167;
523
4
    result[0xC01A] = (SSLCipherSuite*)&Cipher168;
524
4
    result[0xC01B] = (SSLCipherSuite*)&Cipher169;
525
4
    result[0xC01C] = (SSLCipherSuite*)&Cipher170;
526
4
    result[0xC01D] = (SSLCipherSuite*)&Cipher171;
527
4
    result[0xC01E] = (SSLCipherSuite*)&Cipher172;
528
4
    result[0xC01F] = (SSLCipherSuite*)&Cipher173;
529
4
    result[0xC020] = (SSLCipherSuite*)&Cipher174;
530
4
    result[0xC021] = (SSLCipherSuite*)&Cipher175;
531
4
    result[0xC022] = (SSLCipherSuite*)&Cipher176;
532
4
    result[0xC023] = (SSLCipherSuite*)&Cipher177;
533
4
    result[0xC024] = (SSLCipherSuite*)&Cipher178;
534
4
    result[0xC025] = (SSLCipherSuite*)&Cipher179;
535
4
    result[0xC026] = (SSLCipherSuite*)&Cipher180;
536
4
    result[0xC027] = (SSLCipherSuite*)&Cipher181;
537
4
    result[0xC028] = (SSLCipherSuite*)&Cipher182;
538
4
    result[0xC029] = (SSLCipherSuite*)&Cipher183;
539
4
    result[0xC02A] = (SSLCipherSuite*)&Cipher184;
540
4
    result[0xC02B] = (SSLCipherSuite*)&Cipher185;
541
4
    result[0xC02C] = (SSLCipherSuite*)&Cipher186;
542
4
    result[0xC02D] = (SSLCipherSuite*)&Cipher187;
543
4
    result[0xC02E] = (SSLCipherSuite*)&Cipher188;
544
4
    result[0xC02F] = (SSLCipherSuite*)&Cipher189;
545
4
    result[0xC030] = (SSLCipherSuite*)&Cipher190;
546
4
    result[0xC031] = (SSLCipherSuite*)&Cipher191;
547
4
    result[0xC032] = (SSLCipherSuite*)&Cipher192;
548
4
    result[0xC033] = (SSLCipherSuite*)&Cipher193;
549
4
    result[0xC034] = (SSLCipherSuite*)&Cipher194;
550
4
    result[0xC035] = (SSLCipherSuite*)&Cipher195;
551
4
    result[0xC036] = (SSLCipherSuite*)&Cipher196;
552
4
    result[0xC037] = (SSLCipherSuite*)&Cipher197;
553
4
    result[0xC038] = (SSLCipherSuite*)&Cipher198;
554
4
    result[0xC039] = (SSLCipherSuite*)&Cipher199;
555
4
    result[0xC03A] = (SSLCipherSuite*)&Cipher200;
556
4
    result[0xC03B] = (SSLCipherSuite*)&Cipher201;
557
4
    result[0xC03C] = (SSLCipherSuite*)&Cipher202;
558
4
    result[0xC03D] = (SSLCipherSuite*)&Cipher203;
559
4
    result[0xC03E] = (SSLCipherSuite*)&Cipher204;
560
4
    result[0xC03F] = (SSLCipherSuite*)&Cipher205;
561
4
    result[0xC040] = (SSLCipherSuite*)&Cipher206;
562
4
    result[0xC041] = (SSLCipherSuite*)&Cipher207;
563
4
    result[0xC042] = (SSLCipherSuite*)&Cipher208;
564
4
    result[0xC043] = (SSLCipherSuite*)&Cipher209;
565
4
    result[0xC044] = (SSLCipherSuite*)&Cipher210;
566
4
    result[0xC045] = (SSLCipherSuite*)&Cipher211;
567
4
    result[0xC046] = (SSLCipherSuite*)&Cipher212;
568
4
    result[0xC047] = (SSLCipherSuite*)&Cipher213;
569
4
    result[0xC048] = (SSLCipherSuite*)&Cipher214;
570
4
    result[0xC049] = (SSLCipherSuite*)&Cipher215;
571
4
    result[0xC04A] = (SSLCipherSuite*)&Cipher216;
572
4
    result[0xC04B] = (SSLCipherSuite*)&Cipher217;
573
4
    result[0xC04C] = (SSLCipherSuite*)&Cipher218;
574
4
    result[0xC04D] = (SSLCipherSuite*)&Cipher219;
575
4
    result[0xC04E] = (SSLCipherSuite*)&Cipher220;
576
4
    result[0xC04F] = (SSLCipherSuite*)&Cipher221;
577
4
    result[0xC050] = (SSLCipherSuite*)&Cipher222;
578
4
    result[0xC051] = (SSLCipherSuite*)&Cipher223;
579
4
    result[0xC052] = (SSLCipherSuite*)&Cipher224;
580
4
    result[0xC053] = (SSLCipherSuite*)&Cipher225;
581
4
    result[0xC054] = (SSLCipherSuite*)&Cipher226;
582
4
    result[0xC055] = (SSLCipherSuite*)&Cipher227;
583
4
    result[0xC056] = (SSLCipherSuite*)&Cipher228;
584
4
    result[0xC057] = (SSLCipherSuite*)&Cipher229;
585
4
    result[0xC058] = (SSLCipherSuite*)&Cipher230;
586
4
    result[0xC059] = (SSLCipherSuite*)&Cipher231;
587
4
    result[0xC05A] = (SSLCipherSuite*)&Cipher232;
588
4
    result[0xC05B] = (SSLCipherSuite*)&Cipher233;
589
4
    result[0xC05C] = (SSLCipherSuite*)&Cipher234;
590
4
    result[0xC05D] = (SSLCipherSuite*)&Cipher235;
591
4
    result[0xC05E] = (SSLCipherSuite*)&Cipher236;
592
4
    result[0xC05F] = (SSLCipherSuite*)&Cipher237;
593
4
    result[0xC060] = (SSLCipherSuite*)&Cipher238;
594
4
    result[0xC061] = (SSLCipherSuite*)&Cipher239;
595
4
    result[0xC062] = (SSLCipherSuite*)&Cipher240;
596
4
    result[0xC063] = (SSLCipherSuite*)&Cipher241;
597
4
    result[0xC064] = (SSLCipherSuite*)&Cipher242;
598
4
    result[0xC065] = (SSLCipherSuite*)&Cipher243;
599
4
    result[0xC066] = (SSLCipherSuite*)&Cipher244;
600
4
    result[0xC067] = (SSLCipherSuite*)&Cipher245;
601
4
    result[0xC068] = (SSLCipherSuite*)&Cipher246;
602
4
    result[0xC069] = (SSLCipherSuite*)&Cipher247;
603
4
    result[0xC06A] = (SSLCipherSuite*)&Cipher248;
604
4
    result[0xC06B] = (SSLCipherSuite*)&Cipher249;
605
4
    result[0xC06C] = (SSLCipherSuite*)&Cipher250;
606
4
    result[0xC06D] = (SSLCipherSuite*)&Cipher251;
607
4
    result[0xC06E] = (SSLCipherSuite*)&Cipher252;
608
4
    result[0xC06F] = (SSLCipherSuite*)&Cipher253;
609
4
    result[0xC070] = (SSLCipherSuite*)&Cipher254;
610
4
    result[0xC071] = (SSLCipherSuite*)&Cipher255;
611
4
    result[0xC072] = (SSLCipherSuite*)&Cipher256;
612
4
    result[0xC073] = (SSLCipherSuite*)&Cipher257;
613
4
    result[0xC074] = (SSLCipherSuite*)&Cipher258;
614
4
    result[0xC075] = (SSLCipherSuite*)&Cipher259;
615
4
    result[0xC076] = (SSLCipherSuite*)&Cipher260;
616
4
    result[0xC077] = (SSLCipherSuite*)&Cipher261;
617
4
    result[0xC078] = (SSLCipherSuite*)&Cipher262;
618
4
    result[0xC079] = (SSLCipherSuite*)&Cipher263;
619
4
    result[0xC07A] = (SSLCipherSuite*)&Cipher264;
620
4
    result[0xC07B] = (SSLCipherSuite*)&Cipher265;
621
4
    result[0xC07C] = (SSLCipherSuite*)&Cipher266;
622
4
    result[0xC07D] = (SSLCipherSuite*)&Cipher267;
623
4
    result[0xC07E] = (SSLCipherSuite*)&Cipher268;
624
4
    result[0xC07F] = (SSLCipherSuite*)&Cipher269;
625
4
    result[0xC080] = (SSLCipherSuite*)&Cipher270;
626
4
    result[0xC081] = (SSLCipherSuite*)&Cipher271;
627
4
    result[0xC082] = (SSLCipherSuite*)&Cipher272;
628
4
    result[0xC083] = (SSLCipherSuite*)&Cipher273;
629
4
    result[0xC084] = (SSLCipherSuite*)&Cipher274;
630
4
    result[0xC085] = (SSLCipherSuite*)&Cipher275;
631
4
    result[0xC086] = (SSLCipherSuite*)&Cipher276;
632
4
    result[0xC087] = (SSLCipherSuite*)&Cipher277;
633
4
    result[0xC088] = (SSLCipherSuite*)&Cipher278;
634
4
    result[0xC089] = (SSLCipherSuite*)&Cipher279;
635
4
    result[0xC08A] = (SSLCipherSuite*)&Cipher280;
636
4
    result[0xC08B] = (SSLCipherSuite*)&Cipher281;
637
4
    result[0xC08C] = (SSLCipherSuite*)&Cipher282;
638
4
    result[0xC08D] = (SSLCipherSuite*)&Cipher283;
639
4
    result[0xC08E] = (SSLCipherSuite*)&Cipher284;
640
4
    result[0xC08F] = (SSLCipherSuite*)&Cipher285;
641
4
    result[0xC090] = (SSLCipherSuite*)&Cipher286;
642
4
    result[0xC091] = (SSLCipherSuite*)&Cipher287;
643
4
    result[0xC092] = (SSLCipherSuite*)&Cipher288;
644
4
    result[0xC093] = (SSLCipherSuite*)&Cipher289;
645
4
    result[0xC094] = (SSLCipherSuite*)&Cipher290;
646
4
    result[0xC095] = (SSLCipherSuite*)&Cipher291;
647
4
    result[0xC096] = (SSLCipherSuite*)&Cipher292;
648
4
    result[0xC097] = (SSLCipherSuite*)&Cipher293;
649
4
    result[0xC098] = (SSLCipherSuite*)&Cipher294;
650
4
    result[0xC099] = (SSLCipherSuite*)&Cipher295;
651
4
    result[0xC09A] = (SSLCipherSuite*)&Cipher296;
652
4
    result[0xC09B] = (SSLCipherSuite*)&Cipher297;
653
4
    result[0xC09C] = (SSLCipherSuite*)&Cipher298;
654
4
    result[0xC09D] = (SSLCipherSuite*)&Cipher299;
655
4
    result[0xC09E] = (SSLCipherSuite*)&Cipher300;
656
4
    result[0xC09F] = (SSLCipherSuite*)&Cipher301;
657
4
    result[0xC0A0] = (SSLCipherSuite*)&Cipher302;
658
4
    result[0xC0A1] = (SSLCipherSuite*)&Cipher303;
659
4
    result[0xC0A2] = (SSLCipherSuite*)&Cipher304;
660
4
    result[0xC0A3] = (SSLCipherSuite*)&Cipher305;
661
4
    result[0xC0A4] = (SSLCipherSuite*)&Cipher306;
662
4
    result[0xC0A5] = (SSLCipherSuite*)&Cipher307;
663
4
    result[0xC0A6] = (SSLCipherSuite*)&Cipher308;
664
4
    result[0xC0A7] = (SSLCipherSuite*)&Cipher309;
665
4
    result[0xC0A8] = (SSLCipherSuite*)&Cipher310;
666
4
    result[0xC0A9] = (SSLCipherSuite*)&Cipher311;
667
4
    result[0xC0AA] = (SSLCipherSuite*)&Cipher312;
668
4
    result[0xC0AB] = (SSLCipherSuite*)&Cipher313;
669
4
    result[0xC0AC] = (SSLCipherSuite*)&Cipher314;
670
4
    result[0xC0AD] = (SSLCipherSuite*)&Cipher315;
671
4
    result[0xC0AE] = (SSLCipherSuite*)&Cipher316;
672
4
    result[0xC0AF] = (SSLCipherSuite*)&Cipher317;
673
4
    result[0xCCA8] = (SSLCipherSuite*)&Cipher318;
674
4
    result[0xCCA9] = (SSLCipherSuite*)&Cipher319;
675
4
    result[0xCCAA] = (SSLCipherSuite*)&Cipher320;
676
4
    result[0xCCAB] = (SSLCipherSuite*)&Cipher321;
677
4
    result[0xCCAC] = (SSLCipherSuite*)&Cipher322;
678
4
    result[0xCCAD] = (SSLCipherSuite*)&Cipher323;
679
4
    result[0xCCAE] = (SSLCipherSuite*)&Cipher324;
680
4
    result[0x1301] = (SSLCipherSuite*)&Cipher325;
681
4
    result[0x1302] = (SSLCipherSuite*)&Cipher326;
682
4
    result[0x1303] = (SSLCipherSuite*)&Cipher327;
683
4
    result[0x1304] = (SSLCipherSuite*)&Cipher328;
684
4
    result[0x1305] = (SSLCipherSuite*)&Cipher329;
685
4
    return result;
686
4
  }
687
688
277k
#define A 54059        ///< a prime
689
277k
#define B 76963        ///< another prime
690
#define C 86969        ///< yet another prime
691
13.2k
#define FIRST_HASH 37  ///< also prime
692
693
  static uint32_t hashString(std::string str)
694
13.2k
  {
695
13.2k
    unsigned h = FIRST_HASH;
696
290k
    for (auto i = 0u; i < str.size(); ++i)
697
277k
    {
698
277k
      h = (h * A) ^ (str[i] * B);
699
277k
    }
700
13.2k
    return h;
701
13.2k
  }
702
703
  static std::unordered_map<uint32_t, SSLCipherSuite*> createCipherSuiteStringToObjectMap()
704
4
  {
705
4
    std::unordered_map<uint32_t, SSLCipherSuite*> result;
706
707
4
    result[0x9F180F43] = (SSLCipherSuite*)&Cipher1;
708
4
    result[0x97D9341F] = (SSLCipherSuite*)&Cipher2;
709
4
    result[0x288FABA1] = (SSLCipherSuite*)&Cipher3;
710
4
    result[0x9179C5BD] = (SSLCipherSuite*)&Cipher4;
711
4
    result[0x68DF0C8F] = (SSLCipherSuite*)&Cipher5;
712
4
    result[0x5FB32DF1] = (SSLCipherSuite*)&Cipher6;
713
4
    result[0x2A1FC0FC] = (SSLCipherSuite*)&Cipher7;
714
4
    result[0x5BF6459E] = (SSLCipherSuite*)&Cipher8;
715
4
    result[0x60D692F4] = (SSLCipherSuite*)&Cipher9;
716
4
    result[0x26A21427] = (SSLCipherSuite*)&Cipher10;
717
4
    result[0xD3558C6D] = (SSLCipherSuite*)&Cipher11;
718
4
    result[0xAE2673E9] = (SSLCipherSuite*)&Cipher12;
719
4
    result[0xC63B19B0] = (SSLCipherSuite*)&Cipher13;
720
4
    result[0xFE49B3BC] = (SSLCipherSuite*)&Cipher14;
721
4
    result[0x625A86D5] = (SSLCipherSuite*)&Cipher15;
722
4
    result[0x60FF1BD4] = (SSLCipherSuite*)&Cipher16;
723
4
    result[0xE101D5C8] = (SSLCipherSuite*)&Cipher17;
724
4
    result[0x422859E8] = (SSLCipherSuite*)&Cipher18;
725
4
    result[0x88ABC503] = (SSLCipherSuite*)&Cipher19;
726
4
    result[0x44284B1] = (SSLCipherSuite*)&Cipher20;
727
4
    result[0xFD71B064] = (SSLCipherSuite*)&Cipher21;
728
4
    result[0x76F35237] = (SSLCipherSuite*)&Cipher22;
729
4
    result[0x7D93159D] = (SSLCipherSuite*)&Cipher23;
730
4
    result[0x6E9D1AE2] = (SSLCipherSuite*)&Cipher24;
731
4
    result[0xFA0974E4] = (SSLCipherSuite*)&Cipher25;
732
4
    result[0xEC27ACB1] = (SSLCipherSuite*)&Cipher26;
733
4
    result[0x6859C7A8] = (SSLCipherSuite*)&Cipher27;
734
4
    result[0x55FD3D14] = (SSLCipherSuite*)&Cipher28;
735
4
    result[0xA7650023] = (SSLCipherSuite*)&Cipher29;
736
4
    result[0xDC042011] = (SSLCipherSuite*)&Cipher30;
737
4
    result[0x94BFBF4D] = (SSLCipherSuite*)&Cipher31;
738
4
    result[0x2FE24162] = (SSLCipherSuite*)&Cipher32;
739
4
    result[0xC449D595] = (SSLCipherSuite*)&Cipher33;
740
4
    result[0xE11292AF] = (SSLCipherSuite*)&Cipher34;
741
4
    result[0x47D0643] = (SSLCipherSuite*)&Cipher35;
742
4
    result[0xC9ABBA3C] = (SSLCipherSuite*)&Cipher36;
743
4
    result[0x9F323A5F] = (SSLCipherSuite*)&Cipher37;
744
4
    result[0xFBF78046] = (SSLCipherSuite*)&Cipher38;
745
4
    result[0x859BD79F] = (SSLCipherSuite*)&Cipher39;
746
4
    result[0xF9FBBB39] = (SSLCipherSuite*)&Cipher40;
747
4
    result[0x63587748] = (SSLCipherSuite*)&Cipher41;
748
4
    result[0xF84CAE79] = (SSLCipherSuite*)&Cipher42;
749
4
    result[0xCA39F6F1] = (SSLCipherSuite*)&Cipher43;
750
4
    result[0xDC4D17C1] = (SSLCipherSuite*)&Cipher44;
751
4
    result[0x955FBE28] = (SSLCipherSuite*)&Cipher45;
752
4
    result[0x73ED7B86] = (SSLCipherSuite*)&Cipher46;
753
4
    result[0x14A51855] = (SSLCipherSuite*)&Cipher47;
754
4
    result[0x2CE54061] = (SSLCipherSuite*)&Cipher48;
755
4
    result[0x3360789A] = (SSLCipherSuite*)&Cipher49;
756
4
    result[0xDFEF59B6] = (SSLCipherSuite*)&Cipher50;
757
4
    result[0xE819855D] = (SSLCipherSuite*)&Cipher51;
758
4
    result[0x24CC3946] = (SSLCipherSuite*)&Cipher52;
759
4
    result[0x1CACB5FD] = (SSLCipherSuite*)&Cipher53;
760
4
    result[0x40193001] = (SSLCipherSuite*)&Cipher54;
761
4
    result[0xA3846DA2] = (SSLCipherSuite*)&Cipher55;
762
4
    result[0x8F3B7CF6] = (SSLCipherSuite*)&Cipher56;
763
4
    result[0xC7B09945] = (SSLCipherSuite*)&Cipher57;
764
4
    result[0xD8172F82] = (SSLCipherSuite*)&Cipher58;
765
4
    result[0xB6748503] = (SSLCipherSuite*)&Cipher59;
766
4
    result[0xDB105043] = (SSLCipherSuite*)&Cipher60;
767
4
    result[0x21E8AC2E] = (SSLCipherSuite*)&Cipher61;
768
4
    result[0x55096FC2] = (SSLCipherSuite*)&Cipher62;
769
4
    result[0x38F955AF] = (SSLCipherSuite*)&Cipher63;
770
4
    result[0xBA8C1D77] = (SSLCipherSuite*)&Cipher64;
771
4
    result[0x91128102] = (SSLCipherSuite*)&Cipher65;
772
4
    result[0xA7ED740E] = (SSLCipherSuite*)&Cipher66;
773
4
    result[0x75C4908B] = (SSLCipherSuite*)&Cipher67;
774
4
    result[0xBC6C5E87] = (SSLCipherSuite*)&Cipher68;
775
4
    result[0xA0499A2A] = (SSLCipherSuite*)&Cipher69;
776
4
    result[0x4F0FFC13] = (SSLCipherSuite*)&Cipher70;
777
4
    result[0xCCEE9996] = (SSLCipherSuite*)&Cipher71;
778
4
    result[0x8570DA22] = (SSLCipherSuite*)&Cipher72;
779
4
    result[0x75D4FD57] = (SSLCipherSuite*)&Cipher73;
780
4
    result[0x602E04D3] = (SSLCipherSuite*)&Cipher74;
781
4
    result[0x5EDC9C36] = (SSLCipherSuite*)&Cipher75;
782
4
    result[0xE66C167E] = (SSLCipherSuite*)&Cipher76;
783
4
    result[0x909F6D7B] = (SSLCipherSuite*)&Cipher77;
784
4
    result[0x3C35B1AA] = (SSLCipherSuite*)&Cipher78;
785
4
    result[0x6D4D1A2E] = (SSLCipherSuite*)&Cipher79;
786
4
    result[0xBF788317] = (SSLCipherSuite*)&Cipher80;
787
4
    result[0x5329738B] = (SSLCipherSuite*)&Cipher81;
788
4
    result[0x7D11AB2] = (SSLCipherSuite*)&Cipher82;
789
4
    result[0x461ACA21] = (SSLCipherSuite*)&Cipher83;
790
4
    result[0x15404ADD] = (SSLCipherSuite*)&Cipher84;
791
4
    result[0x3806AF6] = (SSLCipherSuite*)&Cipher85;
792
4
    result[0xB2D80EB6] = (SSLCipherSuite*)&Cipher86;
793
4
    result[0xE54425D1] = (SSLCipherSuite*)&Cipher87;
794
4
    result[0x476457CD] = (SSLCipherSuite*)&Cipher88;
795
4
    result[0x1D55E526] = (SSLCipherSuite*)&Cipher89;
796
4
    result[0x953C69E6] = (SSLCipherSuite*)&Cipher90;
797
4
    result[0x6ADE7E16] = (SSLCipherSuite*)&Cipher91;
798
4
    result[0xE8C7BBE8] = (SSLCipherSuite*)&Cipher92;
799
4
    result[0x623DC741] = (SSLCipherSuite*)&Cipher93;
800
4
    result[0xF403E1] = (SSLCipherSuite*)&Cipher94;
801
4
    result[0x90D8CADC] = (SSLCipherSuite*)&Cipher95;
802
4
    result[0xC30D1199] = (SSLCipherSuite*)&Cipher96;
803
4
    result[0x9CFB1B5D] = (SSLCipherSuite*)&Cipher97;
804
4
    result[0x2D3B99E8] = (SSLCipherSuite*)&Cipher98;
805
4
    result[0x4A9E8B0C] = (SSLCipherSuite*)&Cipher99;
806
4
    result[0x16BD2351] = (SSLCipherSuite*)&Cipher100;
807
4
    result[0x586BC20E] = (SSLCipherSuite*)&Cipher101;
808
4
    result[0x996B90AA] = (SSLCipherSuite*)&Cipher102;
809
4
    result[0x2F3871FE] = (SSLCipherSuite*)&Cipher103;
810
4
    result[0xF2DD519A] = (SSLCipherSuite*)&Cipher104;
811
4
    result[0x52615F23] = (SSLCipherSuite*)&Cipher105;
812
4
    result[0xDEE51337] = (SSLCipherSuite*)&Cipher106;
813
4
    result[0xB30890E2] = (SSLCipherSuite*)&Cipher107;
814
4
    result[0x40F3FF3E] = (SSLCipherSuite*)&Cipher108;
815
4
    result[0xE306EE17] = (SSLCipherSuite*)&Cipher109;
816
4
    result[0x870C6FCB] = (SSLCipherSuite*)&Cipher110;
817
4
    result[0xEB12CAEF] = (SSLCipherSuite*)&Cipher111;
818
4
    result[0x68795983] = (SSLCipherSuite*)&Cipher112;
819
4
    result[0x606BA9BE] = (SSLCipherSuite*)&Cipher113;
820
4
    result[0x2C33475A] = (SSLCipherSuite*)&Cipher114;
821
4
    result[0x640CAAEE] = (SSLCipherSuite*)&Cipher115;
822
4
    result[0x6603488A] = (SSLCipherSuite*)&Cipher116;
823
4
    result[0x8BA58643] = (SSLCipherSuite*)&Cipher117;
824
4
    result[0x16059E57] = (SSLCipherSuite*)&Cipher118;
825
4
    result[0x1B0606D3] = (SSLCipherSuite*)&Cipher119;
826
4
    result[0x1CF76007] = (SSLCipherSuite*)&Cipher120;
827
4
    result[0x618CE8F2] = (SSLCipherSuite*)&Cipher121;
828
4
    result[0xE264D3B6] = (SSLCipherSuite*)&Cipher122;
829
4
    result[0xB4C5AE63] = (SSLCipherSuite*)&Cipher123;
830
4
    result[0x95DF4757] = (SSLCipherSuite*)&Cipher124;
831
4
    result[0x1D1CF062] = (SSLCipherSuite*)&Cipher125;
832
4
    result[0xE7AA2826] = (SSLCipherSuite*)&Cipher126;
833
4
    result[0x38D94EE2] = (SSLCipherSuite*)&Cipher127;
834
4
    result[0x889BA306] = (SSLCipherSuite*)&Cipher128;
835
4
    result[0x5B816E75] = (SSLCipherSuite*)&Cipher129;
836
4
    result[0x6F18C4DD] = (SSLCipherSuite*)&Cipher130;
837
4
    result[0x2E1C05E0] = (SSLCipherSuite*)&Cipher131;
838
4
    result[0x5592CFF7] = (SSLCipherSuite*)&Cipher132;
839
4
    result[0x8221D38B] = (SSLCipherSuite*)&Cipher133;
840
4
    result[0x9538105C] = (SSLCipherSuite*)&Cipher134;
841
4
    result[0xF1100DD0] = (SSLCipherSuite*)&Cipher135;
842
4
    result[0xF492EF1F] = (SSLCipherSuite*)&Cipher136;
843
4
    result[0x226BD52C] = (SSLCipherSuite*)&Cipher137;
844
4
    result[0xBBACE99F] = (SSLCipherSuite*)&Cipher138;
845
4
    result[0xB3D4B66B] = (SSLCipherSuite*)&Cipher139;
846
4
    result[0x8C619440] = (SSLCipherSuite*)&Cipher140;
847
4
    result[0xE60B95C] = (SSLCipherSuite*)&Cipher141;
848
4
    result[0x24F48D07] = (SSLCipherSuite*)&Cipher142;
849
4
    result[0x15C7AF26] = (SSLCipherSuite*)&Cipher143;
850
4
    result[0xCBA219CC] = (SSLCipherSuite*)&Cipher144;
851
4
    result[0x9BD946BE] = (SSLCipherSuite*)&Cipher145;
852
4
    result[0x7CCA46FF] = (SSLCipherSuite*)&Cipher146;
853
4
    result[0x9FB51FA3] = (SSLCipherSuite*)&Cipher147;
854
4
    result[0xC82A275B] = (SSLCipherSuite*)&Cipher148;
855
4
    result[0x4472A583] = (SSLCipherSuite*)&Cipher149;
856
4
    result[0xDBA3A5CF] = (SSLCipherSuite*)&Cipher150;
857
4
    result[0x86338128] = (SSLCipherSuite*)&Cipher151;
858
4
    result[0x8CCE91E4] = (SSLCipherSuite*)&Cipher152;
859
4
    result[0xA81C6CA0] = (SSLCipherSuite*)&Cipher153;
860
4
    result[0x6D80815E] = (SSLCipherSuite*)&Cipher154;
861
4
    result[0xA383DEB0] = (SSLCipherSuite*)&Cipher155;
862
4
    result[0x52073879] = (SSLCipherSuite*)&Cipher156;
863
4
    result[0x5BA0B279] = (SSLCipherSuite*)&Cipher157;
864
4
    result[0xD787CCC9] = (SSLCipherSuite*)&Cipher158;
865
4
    result[0x9C86C6A9] = (SSLCipherSuite*)&Cipher159;
866
4
    result[0xDAE424E5] = (SSLCipherSuite*)&Cipher160;
867
4
    result[0x72C15ECE] = (SSLCipherSuite*)&Cipher161;
868
4
    result[0xF0E8FB6E] = (SSLCipherSuite*)&Cipher162;
869
4
    result[0xA2005D44] = (SSLCipherSuite*)&Cipher163;
870
4
    result[0x77F79962] = (SSLCipherSuite*)&Cipher164;
871
4
    result[0x25C8184C] = (SSLCipherSuite*)&Cipher165;
872
4
    result[0x2070F8A5] = (SSLCipherSuite*)&Cipher166;
873
4
    result[0x4189ED8D] = (SSLCipherSuite*)&Cipher167;
874
4
    result[0x94C21B1] = (SSLCipherSuite*)&Cipher168;
875
4
    result[0x1B0CB25C] = (SSLCipherSuite*)&Cipher169;
876
4
    result[0xF18127A0] = (SSLCipherSuite*)&Cipher170;
877
4
    result[0xC7FCA79A] = (SSLCipherSuite*)&Cipher171;
878
4
    result[0xC1DEE135] = (SSLCipherSuite*)&Cipher172;
879
4
    result[0xDA7143E9] = (SSLCipherSuite*)&Cipher173;
880
4
    result[0xE82B6A2] = (SSLCipherSuite*)&Cipher174;
881
4
    result[0x438EC1DD] = (SSLCipherSuite*)&Cipher175;
882
4
    result[0x6BE32FA9] = (SSLCipherSuite*)&Cipher176;
883
4
    result[0x18A5C375] = (SSLCipherSuite*)&Cipher177;
884
4
    result[0x24136C59] = (SSLCipherSuite*)&Cipher178;
885
4
    result[0x88529408] = (SSLCipherSuite*)&Cipher179;
886
4
    result[0xADAB33FC] = (SSLCipherSuite*)&Cipher180;
887
4
    result[0x79407DCB] = (SSLCipherSuite*)&Cipher181;
888
4
    result[0x64970FFF] = (SSLCipherSuite*)&Cipher182;
889
4
    result[0x8260DC9A] = (SSLCipherSuite*)&Cipher183;
890
4
    result[0x4B74FFFE] = (SSLCipherSuite*)&Cipher184;
891
4
    result[0x350DD5C8] = (SSLCipherSuite*)&Cipher185;
892
4
    result[0x53E057C] = (SSLCipherSuite*)&Cipher186;
893
4
    result[0x266020E1] = (SSLCipherSuite*)&Cipher187;
894
4
    result[0xE6DB4B9D] = (SSLCipherSuite*)&Cipher188;
895
4
    result[0x5A992E6] = (SSLCipherSuite*)&Cipher189;
896
4
    result[0x1B33C882] = (SSLCipherSuite*)&Cipher190;
897
4
    result[0x33579D2B] = (SSLCipherSuite*)&Cipher191;
898
4
    result[0x1BD7F7FF] = (SSLCipherSuite*)&Cipher192;
899
4
    result[0x39C59ED9] = (SSLCipherSuite*)&Cipher193;
900
4
    result[0x4F19FB95] = (SSLCipherSuite*)&Cipher194;
901
4
    result[0x8F4737BE] = (SSLCipherSuite*)&Cipher195;
902
4
    result[0x2567AA9E] = (SSLCipherSuite*)&Cipher196;
903
4
    result[0xEEF843DB] = (SSLCipherSuite*)&Cipher197;
904
4
    result[0x978C4E4F] = (SSLCipherSuite*)&Cipher198;
905
4
    result[0x2F8D17D9] = (SSLCipherSuite*)&Cipher199;
906
4
    result[0x7F80393A] = (SSLCipherSuite*)&Cipher200;
907
4
    result[0xDCA5AE1E] = (SSLCipherSuite*)&Cipher201;
908
4
    result[0x74AA95D7] = (SSLCipherSuite*)&Cipher202;
909
4
    result[0xB93174BB] = (SSLCipherSuite*)&Cipher203;
910
4
    result[0x46E274FC] = (SSLCipherSuite*)&Cipher204;
911
4
    result[0x9DC85330] = (SSLCipherSuite*)&Cipher205;
912
4
    result[0x972847B8] = (SSLCipherSuite*)&Cipher206;
913
4
    result[0xFCF61DAC] = (SSLCipherSuite*)&Cipher207;
914
4
    result[0x73C0029B] = (SSLCipherSuite*)&Cipher208;
915
4
    result[0xDA41D70F] = (SSLCipherSuite*)&Cipher209;
916
4
    result[0x12CBC4E7] = (SSLCipherSuite*)&Cipher210;
917
4
    result[0x8B2D5ACB] = (SSLCipherSuite*)&Cipher211;
918
4
    result[0x28C0C084] = (SSLCipherSuite*)&Cipher212;
919
4
    result[0x1602C1F8] = (SSLCipherSuite*)&Cipher213;
920
4
    result[0xF5FB9ED] = (SSLCipherSuite*)&Cipher214;
921
4
    result[0xE8E30E91] = (SSLCipherSuite*)&Cipher215;
922
4
    result[0x70BA7792] = (SSLCipherSuite*)&Cipher216;
923
4
    result[0x94C38076] = (SSLCipherSuite*)&Cipher217;
924
4
    result[0xE5B3483F] = (SSLCipherSuite*)&Cipher218;
925
4
    result[0x892DEBE3] = (SSLCipherSuite*)&Cipher219;
926
4
    result[0x65609E50] = (SSLCipherSuite*)&Cipher220;
927
4
    result[0xAB4F3F04] = (SSLCipherSuite*)&Cipher221;
928
4
    result[0x8BFC76DA] = (SSLCipherSuite*)&Cipher222;
929
4
    result[0xD4BDCD6] = (SSLCipherSuite*)&Cipher223;
930
4
    result[0xCAB8F54A] = (SSLCipherSuite*)&Cipher224;
931
4
    result[0xA10DCFC6] = (SSLCipherSuite*)&Cipher225;
932
4
    result[0xD6B71B71] = (SSLCipherSuite*)&Cipher226;
933
4
    result[0x6D775A2D] = (SSLCipherSuite*)&Cipher227;
934
4
    result[0x7997AD16] = (SSLCipherSuite*)&Cipher228;
935
4
    result[0x5338C632] = (SSLCipherSuite*)&Cipher229;
936
4
    result[0x45F0598D] = (SSLCipherSuite*)&Cipher230;
937
4
    result[0x2D8B6A99] = (SSLCipherSuite*)&Cipher231;
938
4
    result[0xE14DC125] = (SSLCipherSuite*)&Cipher232;
939
4
    result[0x1538351] = (SSLCipherSuite*)&Cipher233;
940
4
    result[0x1A8CE530] = (SSLCipherSuite*)&Cipher234;
941
4
    result[0xB01E69C4] = (SSLCipherSuite*)&Cipher235;
942
4
    result[0xCCBF70D3] = (SSLCipherSuite*)&Cipher236;
943
4
    result[0xEF664FE7] = (SSLCipherSuite*)&Cipher237;
944
4
    result[0xF6ED4F52] = (SSLCipherSuite*)&Cipher238;
945
4
    result[0x7D6522E] = (SSLCipherSuite*)&Cipher239;
946
4
    result[0xBDB5C9B9] = (SSLCipherSuite*)&Cipher240;
947
4
    result[0xD98D5C95] = (SSLCipherSuite*)&Cipher241;
948
4
    result[0x92B92727] = (SSLCipherSuite*)&Cipher242;
949
4
    result[0xB4FE570B] = (SSLCipherSuite*)&Cipher243;
950
4
    result[0x8DCF7F77] = (SSLCipherSuite*)&Cipher244;
951
4
    result[0x8208545B] = (SSLCipherSuite*)&Cipher245;
952
4
    result[0x39A13298] = (SSLCipherSuite*)&Cipher246;
953
4
    result[0xECB7070C] = (SSLCipherSuite*)&Cipher247;
954
4
    result[0xAFA95F8A] = (SSLCipherSuite*)&Cipher248;
955
4
    result[0x3D80E106] = (SSLCipherSuite*)&Cipher249;
956
4
    result[0x83AF9B7A] = (SSLCipherSuite*)&Cipher250;
957
4
    result[0x1FAAC2F6] = (SSLCipherSuite*)&Cipher251;
958
4
    result[0x2AF11F51] = (SSLCipherSuite*)&Cipher252;
959
4
    result[0xEDFD300D] = (SSLCipherSuite*)&Cipher253;
960
4
    result[0x91AA268F] = (SSLCipherSuite*)&Cipher254;
961
4
    result[0x9DF0E933] = (SSLCipherSuite*)&Cipher255;
962
4
    result[0xF3951A6A] = (SSLCipherSuite*)&Cipher256;
963
4
    result[0xE4FF8DCE] = (SSLCipherSuite*)&Cipher257;
964
4
    result[0xBE4DFC61] = (SSLCipherSuite*)&Cipher258;
965
4
    result[0xBB2CF025] = (SSLCipherSuite*)&Cipher259;
966
4
    result[0x354D38A8] = (SSLCipherSuite*)&Cipher260;
967
4
    result[0xE2444B9C] = (SSLCipherSuite*)&Cipher261;
968
4
    result[0xF8298D43] = (SSLCipherSuite*)&Cipher262;
969
4
    result[0x3EC413B7] = (SSLCipherSuite*)&Cipher263;
970
4
    result[0xE0C75BE9] = (SSLCipherSuite*)&Cipher264;
971
4
    result[0x7191BE45] = (SSLCipherSuite*)&Cipher265;
972
4
    result[0xDDE7C439] = (SSLCipherSuite*)&Cipher266;
973
4
    result[0xBE715415] = (SSLCipherSuite*)&Cipher267;
974
4
    result[0x6CF8F9A6] = (SSLCipherSuite*)&Cipher268;
975
4
    result[0x36D61242] = (SSLCipherSuite*)&Cipher269;
976
4
    result[0xFA9BA9ED] = (SSLCipherSuite*)&Cipher270;
977
4
    result[0x4588B179] = (SSLCipherSuite*)&Cipher271;
978
4
    result[0xB3C246FA] = (SSLCipherSuite*)&Cipher272;
979
4
    result[0x750EEB76] = (SSLCipherSuite*)&Cipher273;
980
4
    result[0xC50ACCB2] = (SSLCipherSuite*)&Cipher274;
981
4
    result[0x9555CD0E] = (SSLCipherSuite*)&Cipher275;
982
4
    result[0xF25A659B] = (SSLCipherSuite*)&Cipher276;
983
4
    result[0x1670E72F] = (SSLCipherSuite*)&Cipher277;
984
4
    result[0xDB0DD6BC] = (SSLCipherSuite*)&Cipher278;
985
4
    result[0x19CACD70] = (SSLCipherSuite*)&Cipher279;
986
4
    result[0xC54D5481] = (SSLCipherSuite*)&Cipher280;
987
4
    result[0x7BCCA2BD] = (SSLCipherSuite*)&Cipher281;
988
4
    result[0xA851374E] = (SSLCipherSuite*)&Cipher282;
989
4
    result[0xE887BEA] = (SSLCipherSuite*)&Cipher283;
990
4
    result[0xDECAA7F9] = (SSLCipherSuite*)&Cipher284;
991
4
    result[0x29DA73D5] = (SSLCipherSuite*)&Cipher285;
992
4
    result[0xAC69ECC9] = (SSLCipherSuite*)&Cipher286;
993
4
    result[0x6AE55625] = (SSLCipherSuite*)&Cipher287;
994
4
    result[0x2BB24546] = (SSLCipherSuite*)&Cipher288;
995
4
    result[0x7AB5F262] = (SSLCipherSuite*)&Cipher289;
996
4
    result[0x3DB83990] = (SSLCipherSuite*)&Cipher290;
997
4
    result[0xC852A244] = (SSLCipherSuite*)&Cipher291;
998
4
    result[0xA3C952C0] = (SSLCipherSuite*)&Cipher292;
999
4
    result[0xAF630C34] = (SSLCipherSuite*)&Cipher293;
1000
4
    result[0xD4EE22B] = (SSLCipherSuite*)&Cipher294;
1001
4
    result[0x83F4C5DF] = (SSLCipherSuite*)&Cipher295;
1002
4
    result[0xCCF6F918] = (SSLCipherSuite*)&Cipher296;
1003
4
    result[0x955C9E8C] = (SSLCipherSuite*)&Cipher297;
1004
4
    result[0xF3559154] = (SSLCipherSuite*)&Cipher298;
1005
4
    result[0xE0991C14] = (SSLCipherSuite*)&Cipher299;
1006
4
    result[0x7F6BF424] = (SSLCipherSuite*)&Cipher300;
1007
4
    result[0x4A129264] = (SSLCipherSuite*)&Cipher301;
1008
4
    result[0xB25E29E3] = (SSLCipherSuite*)&Cipher302;
1009
4
    result[0xA6E15A23] = (SSLCipherSuite*)&Cipher303;
1010
4
    result[0x637C5C53] = (SSLCipherSuite*)&Cipher304;
1011
4
    result[0x22794513] = (SSLCipherSuite*)&Cipher305;
1012
4
    result[0x4CE30464] = (SSLCipherSuite*)&Cipher306;
1013
4
    result[0xFDFE3B24] = (SSLCipherSuite*)&Cipher307;
1014
4
    result[0xDC8A2074] = (SSLCipherSuite*)&Cipher308;
1015
4
    result[0xFD448934] = (SSLCipherSuite*)&Cipher309;
1016
4
    result[0xF4FC2B13] = (SSLCipherSuite*)&Cipher310;
1017
4
    result[0xB10ECD53] = (SSLCipherSuite*)&Cipher311;
1018
4
    result[0xF44F4BC7] = (SSLCipherSuite*)&Cipher312;
1019
4
    result[0x49AF0BF] = (SSLCipherSuite*)&Cipher313;
1020
4
    result[0xDFAF479A] = (SSLCipherSuite*)&Cipher314;
1021
4
    result[0x82BF78CE] = (SSLCipherSuite*)&Cipher315;
1022
4
    result[0x46CD83C9] = (SSLCipherSuite*)&Cipher316;
1023
4
    result[0x8F7D7465] = (SSLCipherSuite*)&Cipher317;
1024
4
    result[0xBD9CDFE5] = (SSLCipherSuite*)&Cipher318;
1025
4
    result[0x92942203] = (SSLCipherSuite*)&Cipher319;
1026
4
    result[0x783C98AD] = (SSLCipherSuite*)&Cipher320;
1027
4
    result[0x92213B6D] = (SSLCipherSuite*)&Cipher321;
1028
4
    result[0xCFCB1A55] = (SSLCipherSuite*)&Cipher322;
1029
4
    result[0x54C2D55D] = (SSLCipherSuite*)&Cipher323;
1030
4
    result[0xDCD6F114] = (SSLCipherSuite*)&Cipher324;
1031
4
    result[0x6AD23C40] = (SSLCipherSuite*)&Cipher325;
1032
4
    result[0x5F5239D4] = (SSLCipherSuite*)&Cipher326;
1033
4
    result[0xAB27704B] = (SSLCipherSuite*)&Cipher327;
1034
4
    result[0xA3178D0C] = (SSLCipherSuite*)&Cipher328;
1035
4
    result[0x5DAAA195] = (SSLCipherSuite*)&Cipher329;
1036
1037
4
    return result;
1038
4
  }
1039
1040
  std::set<uint16_t> createGreaseSet()
1041
4
  {
1042
4
    uint16_t greaseExtensions[] = { 0x0a0a, 0x1a1a, 0x2a2a, 0x3a3a, 0x4a4a, 0x5a5a, 0x6a6a, 0x7a7a,
1043
4
                                  0x8a8a, 0x9a9a, 0xaaaa, 0xbaba, 0xcaca, 0xdada, 0xeaea, 0xfafa };
1044
4
    return std::set<uint16_t>(greaseExtensions, greaseExtensions + 16);
1045
4
  }
1046
1047
  static const std::unordered_map<uint16_t, SSLCipherSuite*> CipherSuiteIdToObjectMap =
1048
      createCipherSuiteIdToObjectMap();
1049
1050
  static const std::unordered_map<uint32_t, SSLCipherSuite*> CipherSuiteStringToObjectMap =
1051
      createCipherSuiteStringToObjectMap();
1052
1053
  static const std::set<uint16_t> GreaseSet = createGreaseSet();
1054
1055
  SSLCipherSuite* SSLCipherSuite::getCipherSuiteByID(uint16_t id)
1056
232k
  {
1057
232k
    std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id);
1058
232k
    if (pos == CipherSuiteIdToObjectMap.end())
1059
77.6k
      return nullptr;
1060
154k
    else
1061
154k
      return pos->second;
1062
232k
  }
1063
1064
  SSLCipherSuite* SSLCipherSuite::getCipherSuiteByName(std::string name)
1065
13.2k
  {
1066
13.2k
    uint32_t nameHash = hashString(std::move(name));
1067
13.2k
    std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash);
1068
13.2k
    if (pos == CipherSuiteStringToObjectMap.end())
1069
0
      return nullptr;
1070
13.2k
    else
1071
13.2k
      return pos->second;
1072
13.2k
  }
1073
1074
  // --------------------
1075
  // SSLExtension methods
1076
  // --------------------
1077
1078
0
  SSLExtension::SSLExtension(uint8_t* data) : m_RawData(data), m_RawDataLen(-1)
1079
0
  {}
1080
1081
654k
  SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
1082
654k
  {
1083
654k
    if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
1084
0
    {
1085
0
      throw std::invalid_argument("Insufficient data buffer for SSL extension header");
1086
0
    }
1087
1088
654k
    uint16_t extDataLen = getLength();
1089
654k
    if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
1090
0
    {
1091
0
      throw std::invalid_argument("Insufficient data buffer for SSL extension data");
1092
0
    }
1093
654k
  }
1094
1095
  SSLExtensionType SSLExtension::getType() const
1096
36.4k
  {
1097
36.4k
    uint16_t typeAsInt = getTypeAsInt();
1098
36.4k
    if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
1099
24.3k
      return (SSLExtensionType)typeAsInt;
1100
1101
12.0k
    return SSL_EXT_Unknown;
1102
36.4k
  }
1103
1104
  uint16_t SSLExtension::getTypeAsInt() const
1105
174k
  {
1106
174k
    return be16toh(getExtensionStruct()->extensionType);
1107
174k
  }
1108
1109
  uint16_t SSLExtension::getLength() const
1110
1.37M
  {
1111
1.37M
    return getExtensionStruct()->getDataLength();
1112
1.37M
  }
1113
1114
  uint16_t SSLExtension::getTotalLength() const
1115
654k
  {
1116
654k
    return getLength() + 2 * sizeof(uint16_t);
1117
654k
  }
1118
1119
  uint8_t* SSLExtension::getData() const
1120
41.7k
  {
1121
41.7k
    if (getLength() > 0)
1122
40.3k
    {
1123
40.3k
      return getExtensionStruct()->extensionData;
1124
40.3k
    }
1125
1126
1.44k
    return nullptr;
1127
41.7k
  }
1128
1129
  uint16_t SSLExtension::SSLExtensionStruct::getDataLength() const
1130
2.05M
  {
1131
2.05M
    return be16toh(extensionDataLength);
1132
2.05M
  }
1133
1134
  // ----------------------------------------
1135
  // SSLServerNameIndicationExtension methods
1136
  // ----------------------------------------
1137
1138
  std::string SSLServerNameIndicationExtension::getHostName() const
1139
8.52k
  {
1140
8.52k
    auto* extensionDataPtr = getData();
1141
8.52k
    if (extensionDataPtr == nullptr)
1142
1.44k
    {
1143
1.44k
      return "";
1144
1.44k
    }
1145
1146
7.07k
    uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
1147
7.07k
    uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
1148
1149
7.07k
    uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
1150
7.07k
    uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
1151
7.07k
    uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
1152
1153
7.07k
    if (hostNameDataEndIt > extensionDataEndIt)
1154
44
    {
1155
44
      PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
1156
44
      hostNameDataEndIt = extensionDataEndIt;
1157
44
    }
1158
1159
7.07k
    return std::string(hostNameDataIt, hostNameDataEndIt);
1160
8.52k
  }
1161
1162
  // -------------------------------------
1163
  // SSLSupportedVersionsExtension methods
1164
  // -------------------------------------
1165
1166
  std::vector<SSLVersion> SSLSupportedVersionsExtension::getSupportedVersions() const
1167
5.30k
  {
1168
5.30k
    std::vector<SSLVersion> result;
1169
5.30k
    uint16_t extensionLength = getLength();
1170
5.30k
    if (extensionLength == 2)  // server hello message
1171
2.47k
    {
1172
2.47k
      result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
1173
2.47k
    }
1174
2.82k
    else  // client-hello message
1175
2.82k
    {
1176
2.82k
      uint8_t listLength = *getData();
1177
2.82k
      if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
1178
47
        return result;  // bad extension data
1179
1180
2.78k
      uint8_t* dataPtr = getData() + sizeof(uint8_t);
1181
10.6k
      for (int i = 0; i < listLength / 2; i++)
1182
7.84k
      {
1183
7.84k
        result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
1184
7.84k
        dataPtr += sizeof(uint16_t);
1185
7.84k
      }
1186
2.78k
    }
1187
1188
5.25k
    return result;
1189
5.30k
  }
1190
1191
  // -----------------------------------
1192
  // TLSSupportedGroupsExtension methods
1193
  // -----------------------------------
1194
1195
  std::vector<uint16_t> TLSSupportedGroupsExtension::getSupportedGroups() const
1196
7.45k
  {
1197
7.45k
    std::vector<uint16_t> result;
1198
1199
7.45k
    uint16_t extensionLength = getLength();
1200
7.45k
    if (extensionLength < sizeof(uint16_t))
1201
9
      return result;  // bad extension data
1202
1203
7.44k
    uint16_t listLength = be16toh(*(uint16_t*)getData());
1204
7.44k
    if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
1205
306
      return result;  // bad extension data
1206
1207
7.14k
    uint8_t* dataPtr = getData() + sizeof(uint16_t);
1208
41.1k
    for (int i = 0; i < listLength / 2; i++)
1209
34.0k
    {
1210
34.0k
      result.push_back(be16toh(*(uint16_t*)dataPtr));
1211
34.0k
      dataPtr += sizeof(uint16_t);
1212
34.0k
    }
1213
1214
7.14k
    return result;
1215
7.44k
  }
1216
1217
  // ---------------------------------
1218
  // TLSECPointFormatExtension methods
1219
  // ---------------------------------
1220
1221
  std::vector<uint8_t> TLSECPointFormatExtension::getECPointFormatList() const
1222
5.36k
  {
1223
5.36k
    std::vector<uint8_t> result;
1224
1225
5.36k
    uint16_t extensionLength = getLength();
1226
1227
5.36k
    if (extensionLength < 1)
1228
12
      return result;
1229
1230
5.35k
    uint8_t listLength = *getData();
1231
1232
5.35k
    if (extensionLength != static_cast<uint16_t>(listLength) + 1)
1233
141
      return result;  // bad extension data
1234
1235
5.21k
    uint8_t* dataPtr = getData() + sizeof(uint8_t);
1236
11.9k
    for (int i = 0; i < listLength; i++)
1237
6.75k
    {
1238
6.75k
      result.push_back(*dataPtr);
1239
6.75k
      dataPtr += sizeof(uint8_t);
1240
6.75k
    }
1241
1242
5.21k
    return result;
1243
5.35k
  }
1244
1245
  // --------------------------
1246
  // SSLx509Certificate methods
1247
  // --------------------------
1248
1249
  Asn1SequenceRecord* SSLx509Certificate::getRootAsn1Record()
1250
0
  {
1251
0
    if (!m_AllDataExists)
1252
0
    {
1253
0
      PCPP_LOG_ERROR("Certificate data is not complete, cannot parse ASN.1 record");
1254
0
      return nullptr;
1255
0
    }
1256
1257
0
    if (m_Asn1Record == nullptr)
1258
0
    {
1259
0
      m_Asn1Record = Asn1Record::decode(m_Data, m_DataLen);
1260
0
    }
1261
1262
0
    return m_Asn1Record->castAs<Asn1SequenceRecord>();
1263
0
  }
1264
1265
  std::unique_ptr<X509Certificate> SSLx509Certificate::getX509Certificate()
1266
0
  {
1267
0
    if (!m_AllDataExists)
1268
0
    {
1269
0
      PCPP_LOG_ERROR("Certificate data is not complete, cannot parse X509 certificate");
1270
0
      return nullptr;
1271
0
    }
1272
1273
0
    return X509Certificate::fromDER(m_Data, m_DataLen);
1274
0
  }
1275
1276
  // ---------------------------
1277
  // SSLHandshakeMessage methods
1278
  // ---------------------------
1279
1280
  SSLHandshakeMessage::SSLHandshakeMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container)
1281
300k
  {
1282
300k
    m_Data = data;
1283
300k
    m_DataLen = dataLen;
1284
300k
    m_Container = container;
1285
300k
  }
1286
1287
  SSLHandshakeMessage* SSLHandshakeMessage::createHandshakeMessage(uint8_t* data, size_t dataLen,
1288
                                                                   SSLHandshakeLayer* container)
1289
509k
  {
1290
509k
    if (dataLen < sizeof(ssl_tls_handshake_layer))
1291
209k
      return nullptr;
1292
1293
300k
    ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
1294
1295
300k
    if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
1296
64.7k
    {
1297
      // possibly Encrypted Handshake Message
1298
      // used heuristic:
1299
      // - handshake layer of more than 16 byte
1300
      // - first 5 bytes of the handshake message are zeroes
1301
      // - or wrong message length is over 64K
1302
      // - or message type makes so sense (handled through the switch statement)
1303
64.7k
      return new SSLUnknownMessage(data, dataLen, container);
1304
64.7k
    }
1305
1306
235k
    switch (hsMsgHeader->handshakeType)
1307
235k
    {
1308
73.0k
    case SSL_CLIENT_HELLO:
1309
73.0k
      return new SSLClientHelloMessage(data, dataLen, container);
1310
63.5k
    case SSL_SERVER_HELLO:
1311
63.5k
      return new SSLServerHelloMessage(data, dataLen, container);
1312
36.0k
    case SSL_HELLO_REQUEST:
1313
36.0k
      return new SSLHelloRequestMessage(data, dataLen, container);
1314
12.6k
    case SSL_CERTIFICATE:
1315
12.6k
      return new SSLCertificateMessage(data, dataLen, container);
1316
3.70k
    case SSL_SERVER_KEY_EXCHANGE:
1317
3.70k
      return new SSLServerKeyExchangeMessage(data, dataLen, container);
1318
12.7k
    case SSL_CERTIFICATE_REQUEST:
1319
12.7k
      return new SSLCertificateRequestMessage(data, dataLen, container);
1320
870
    case SSL_CERTIFICATE_VERIFY:
1321
870
      return new SSLCertificateVerifyMessage(data, dataLen, container);
1322
8.80k
    case SSL_CLIENT_KEY_EXCHANGE:
1323
8.80k
      return new SSLClientKeyExchangeMessage(data, dataLen, container);
1324
2.81k
    case SSL_FINISHED:
1325
2.81k
      return new SSLFinishedMessage(data, dataLen, container);
1326
13.4k
    case SSL_SERVER_DONE:
1327
13.4k
      return new SSLServerHelloDoneMessage(data, dataLen, container);
1328
2.64k
    case SSL_NEW_SESSION_TICKET:
1329
2.64k
      return new SSLNewSessionTicketMessage(data, dataLen, container);
1330
5.40k
    default:
1331
5.40k
      return new SSLUnknownMessage(data, dataLen, container);
1332
235k
    }
1333
235k
  }
1334
1335
  SSLHandshakeType SSLHandshakeMessage::getHandshakeType() const
1336
13.2k
  {
1337
13.2k
    ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
1338
13.2k
    return (SSLHandshakeType)handshakeLayer->handshakeType;
1339
13.2k
  }
1340
1341
  size_t SSLHandshakeMessage::getMessageLength() const
1342
580k
  {
1343
580k
    ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
1344
    // TODO: add handshakeLayer->length1 to the calculation
1345
580k
    size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
1346
580k
    if (len > m_DataLen)
1347
119k
      return m_DataLen;
1348
1349
460k
    return len;
1350
580k
  }
1351
1352
  bool SSLHandshakeMessage::isMessageComplete() const
1353
31.3k
  {
1354
31.3k
    if (m_DataLen < sizeof(ssl_tls_handshake_layer))
1355
0
      return false;
1356
1357
31.3k
    ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
1358
31.3k
    size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
1359
31.3k
    return len <= m_DataLen;
1360
31.3k
  }
1361
1362
  // -----------------------------
1363
  // SSLClientHelloMessage methods
1364
  // -----------------------------
1365
1366
  SSLClientHelloMessage::SSLClientHelloMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container)
1367
73.0k
      : SSLHandshakeMessage(data, dataLen, container)
1368
73.0k
  {
1369
73.0k
    size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
1370
73.0k
                                   sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
1371
73.0k
                                   2 * sizeof(uint8_t);
1372
73.0k
    if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
1373
20.3k
      return;
1374
1375
52.7k
    uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
1376
52.7k
    uint16_t extensionLength = getExtensionsLength();
1377
52.7k
    uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
1378
1379
52.7k
    size_t messageLen = getMessageLength();
1380
1381
    // Iterators for the entire extension data buffer containing the extensions blocks.
1382
52.7k
    uint8_t* extensionIt = extensionPos;
1383
52.7k
    uint8_t* extensionEndIt = extensionPos + extensionLength;
1384
1385
    // If the message length is smaller that the extension data buffer, we might have malformed data.
1386
    // In this case, the extension data buffer is truncated to the message length, to avoid out-of-bounds access.
1387
52.7k
    uint8_t* endOfMessageIt = m_Data + messageLen;
1388
52.7k
    if (endOfMessageIt < extensionEndIt)
1389
13.6k
    {
1390
13.6k
      extensionEndIt = endOfMessageIt;
1391
13.6k
    }
1392
1393
52.7k
    constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
1394
630k
    while (extensionIt < extensionEndIt &&
1395
605k
           std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
1396
595k
    {
1397
595k
      std::unique_ptr<SSLExtension> newExt;
1398
1399
595k
      uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
1400
595k
      size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
1401
1402
595k
      switch (sslExtType)
1403
595k
      {
1404
128k
      case SSL_EXT_SERVER_NAME:
1405
128k
      {
1406
128k
        newExt =
1407
128k
            SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
1408
128k
        break;
1409
0
      }
1410
13.9k
      case SSL_EXT_SUPPORTED_VERSIONS:
1411
13.9k
      {
1412
13.9k
        newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
1413
13.9k
        break;
1414
0
      }
1415
38.4k
      case SSL_EXT_SUPPORTED_GROUPS:
1416
38.4k
      {
1417
38.4k
        newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
1418
38.4k
        break;
1419
0
      }
1420
27.6k
      case SSL_EXT_EC_POINT_FORMATS:
1421
27.6k
      {
1422
27.6k
        newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
1423
27.6k
        break;
1424
0
      }
1425
387k
      default:
1426
387k
      {
1427
387k
        newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
1428
387k
      }
1429
595k
      }
1430
1431
595k
      if (newExt == nullptr)
1432
18.1k
      {
1433
18.1k
        PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
1434
18.1k
                                                                << " skipping remaining extensions.");
1435
18.1k
        break;
1436
18.1k
      }
1437
1438
      // Total length can be zero only if getLength() == 0xfffc which is way too large
1439
      // and means that this extension (and packet) are malformed
1440
577k
      size_t newExtTotalLen = newExt->getTotalLength();
1441
577k
      if (newExtTotalLen == 0)
1442
0
      {
1443
0
        break;
1444
0
      }
1445
1446
577k
      m_ExtensionList.pushBack(std::move(newExt));
1447
577k
      std::advance(extensionIt, newExtTotalLen);
1448
577k
    }
1449
52.7k
  }
1450
1451
  SSLVersion SSLClientHelloMessage::getHandshakeVersion() const
1452
26.4k
  {
1453
26.4k
    if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
1454
0
      return SSLVersion(0);
1455
1456
26.4k
    uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
1457
26.4k
    return SSLVersion(handshakeVersion);
1458
26.4k
  }
1459
1460
  uint8_t SSLClientHelloMessage::getSessionIDLength() const
1461
35.5M
  {
1462
35.5M
    if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
1463
9.00k
      return 0;
1464
1465
35.5M
    uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
1466
35.5M
    if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
1467
7.88k
      return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
1468
1469
35.5M
    return val;
1470
35.5M
  }
1471
1472
  uint8_t* SSLClientHelloMessage::getSessionID() const
1473
13.2k
  {
1474
13.2k
    if (getSessionIDLength() > 0)
1475
5.23k
      return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
1476
7.98k
    else
1477
7.98k
      return nullptr;
1478
13.2k
  }
1479
1480
  int SSLClientHelloMessage::getCipherSuiteCount() const
1481
20.2M
  {
1482
20.2M
    size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
1483
20.2M
    if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
1484
19.7k
      return 0;
1485
1486
20.2M
    uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
1487
20.2M
    return be16toh(cipherSuiteLen) / 2;
1488
20.2M
  }
1489
1490
  SSLCipherSuite* SSLClientHelloMessage::getCipherSuite(int index) const
1491
5.03M
  {
1492
5.03M
    bool isValid;
1493
5.03M
    uint16_t id = getCipherSuiteID(index, isValid);
1494
5.03M
    return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
1495
5.03M
  }
1496
1497
  uint16_t SSLClientHelloMessage::getCipherSuiteID(int index, bool& isValid) const
1498
15.0M
  {
1499
15.0M
    if (index < 0 || index >= getCipherSuiteCount())
1500
0
    {
1501
0
      isValid = false;
1502
0
      return 0;
1503
0
    }
1504
1505
15.0M
    size_t cipherSuiteStartOffset =
1506
15.0M
        sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
1507
15.0M
    if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
1508
14.4M
    {
1509
14.4M
      isValid = false;
1510
14.4M
      return 0;
1511
14.4M
    }
1512
1513
677k
    isValid = true;
1514
677k
    uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
1515
677k
    return be16toh(*(cipherSuiteStartPos + index));
1516
15.0M
  }
1517
1518
  uint8_t SSLClientHelloMessage::getCompressionMethodsValue() const
1519
13.2k
  {
1520
13.2k
    size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
1521
13.2k
                    sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
1522
13.2k
    if (offset + sizeof(uint8_t) > m_DataLen)
1523
3.38k
      return 0xff;
1524
1525
9.82k
    uint8_t* pos = m_Data + offset;
1526
9.82k
    return *pos;
1527
13.2k
  }
1528
1529
  int SSLClientHelloMessage::getExtensionCount() const
1530
13.2k
  {
1531
13.2k
    return m_ExtensionList.size();
1532
13.2k
  }
1533
1534
  uint16_t SSLClientHelloMessage::getExtensionsLength() const
1535
52.7k
  {
1536
52.7k
    size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
1537
52.7k
                                   sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
1538
52.7k
                                   2 * sizeof(uint8_t);
1539
52.7k
    if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
1540
0
      return 0;
1541
1542
52.7k
    uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
1543
52.7k
    return be16toh(*(uint16_t*)extensionLengthPos);
1544
52.7k
  }
1545
1546
  SSLExtension* SSLClientHelloMessage::getExtension(int index) const
1547
104k
  {
1548
104k
    return const_cast<SSLExtension*>(m_ExtensionList.at(index));
1549
104k
  }
1550
1551
  SSLExtension* SSLClientHelloMessage::getExtensionOfType(uint16_t type) const
1552
13.2k
  {
1553
13.2k
    size_t vecSize = m_ExtensionList.size();
1554
25.6k
    for (size_t i = 0; i < vecSize; i++)
1555
20.9k
    {
1556
20.9k
      SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
1557
20.9k
      if (curElem->getTypeAsInt() == type)
1558
8.52k
        return curElem;
1559
20.9k
    }
1560
1561
4.69k
    return nullptr;
1562
13.2k
  }
1563
1564
  SSLExtension* SSLClientHelloMessage::getExtensionOfType(SSLExtensionType type) const
1565
13.2k
  {
1566
13.2k
    size_t vecSize = m_ExtensionList.size();
1567
25.6k
    for (size_t i = 0; i < vecSize; i++)
1568
20.9k
    {
1569
20.9k
      SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
1570
20.9k
      if (curElem->getType() == type)
1571
8.52k
        return curElem;
1572
20.9k
    }
1573
1574
4.69k
    return nullptr;
1575
13.2k
  }
1576
1577
  SSLClientHelloMessage::ClientHelloTLSFingerprint SSLClientHelloMessage::generateTLSFingerprint() const
1578
13.2k
  {
1579
13.2k
    SSLClientHelloMessage::ClientHelloTLSFingerprint result;
1580
1581
    // extract version
1582
13.2k
    result.tlsVersion = getHandshakeVersion().asUInt();
1583
1584
    // extract cipher suites
1585
13.2k
    int cipherSuiteCount = getCipherSuiteCount();
1586
5.04M
    for (int i = 0; i < cipherSuiteCount; i++)
1587
5.03M
    {
1588
5.03M
      bool isValid = false;
1589
5.03M
      uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
1590
5.03M
      if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
1591
223k
        result.cipherSuites.push_back(cipherSuiteID);
1592
5.03M
    }
1593
1594
    // extract extensions
1595
13.2k
    int extensionCount = getExtensionCount();
1596
118k
    for (int i = 0; i < extensionCount; i++)
1597
104k
    {
1598
104k
      uint16_t extensionType = getExtension(i)->getTypeAsInt();
1599
104k
      if (GreaseSet.find(extensionType) != GreaseSet.end())
1600
2.54k
        continue;
1601
1602
102k
      result.extensions.push_back(extensionType);
1603
102k
    }
1604
1605
    // extract supported groups
1606
13.2k
    TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
1607
13.2k
    if (supportedGroupsExt != nullptr)
1608
7.45k
    {
1609
7.45k
      std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
1610
7.45k
      for (const auto& iter : supportedGroups)
1611
34.0k
        if (GreaseSet.find(iter) == GreaseSet.end())
1612
32.9k
          result.supportedGroups.push_back(iter);
1613
7.45k
    }
1614
1615
    // extract EC point formats
1616
13.2k
    TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
1617
13.2k
    if (ecPointFormatExt != nullptr)
1618
5.36k
    {
1619
5.36k
      result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
1620
5.36k
    }
1621
1622
13.2k
    return result;
1623
13.2k
  }
1624
1625
  std::string SSLClientHelloMessage::toString() const
1626
26.5k
  {
1627
26.5k
    return "Client Hello message";
1628
26.5k
  }
1629
1630
  // ------------------------------------------------
1631
  // SSLClientHelloMessage::ClientHelloTLSFingerprint
1632
  // ------------------------------------------------
1633
1634
  std::string SSLClientHelloMessage::ClientHelloTLSFingerprint::toString()
1635
13.2k
  {
1636
13.2k
    std::stringstream tlsFingerprint;
1637
1638
    // add version
1639
13.2k
    tlsFingerprint << tlsVersion << ",";
1640
1641
    // add cipher suites
1642
13.2k
    bool firstCipher = true;
1643
13.2k
    for (const auto& iter : cipherSuites)
1644
223k
    {
1645
223k
      tlsFingerprint << (firstCipher ? "" : "-") << iter;
1646
223k
      firstCipher = false;
1647
223k
    }
1648
13.2k
    tlsFingerprint << ",";
1649
1650
    // add extensions
1651
13.2k
    bool firstExtension = true;
1652
13.2k
    for (const auto& iter : extensions)
1653
102k
    {
1654
102k
      tlsFingerprint << (firstExtension ? "" : "-") << iter;
1655
102k
      firstExtension = false;
1656
102k
    }
1657
13.2k
    tlsFingerprint << ",";
1658
1659
    // add supported groups
1660
13.2k
    bool firstGroup = true;
1661
13.2k
    for (const auto& iter : supportedGroups)
1662
32.9k
    {
1663
32.9k
      tlsFingerprint << (firstGroup ? "" : "-") << iter;
1664
32.9k
      firstGroup = false;
1665
32.9k
    }
1666
13.2k
    tlsFingerprint << ",";
1667
1668
    // add EC point formats
1669
13.2k
    bool firstPointFormat = true;
1670
13.2k
    for (auto iter : ecPointFormats)
1671
6.75k
    {
1672
6.75k
      tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
1673
6.75k
      firstPointFormat = false;
1674
6.75k
    }
1675
1676
13.2k
    return tlsFingerprint.str();
1677
13.2k
  }
1678
1679
  std::string SSLClientHelloMessage::ClientHelloTLSFingerprint::toMD5()
1680
13.2k
  {
1681
13.2k
    return toStringAndMD5().second;
1682
13.2k
  }
1683
1684
  std::pair<std::string, std::string> SSLClientHelloMessage::ClientHelloTLSFingerprint::toStringAndMD5()
1685
13.2k
  {
1686
13.2k
    std::string str = toString();
1687
13.2k
    MD5 md5;
1688
13.2k
    return std::pair<std::string, std::string>(str, md5(str));
1689
13.2k
  }
1690
1691
  // -----------------------------
1692
  // SSLServerHelloMessage methods
1693
  // -----------------------------
1694
1695
  SSLServerHelloMessage::SSLServerHelloMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container)
1696
63.5k
      : SSLHandshakeMessage(data, dataLen, container)
1697
63.5k
  {
1698
63.5k
    size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
1699
63.5k
                                   sizeof(uint16_t) + sizeof(uint8_t);
1700
63.5k
    if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
1701
20.4k
      return;
1702
1703
43.0k
    uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
1704
43.0k
    uint16_t extensionLength = getExtensionsLength();
1705
43.0k
    uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
1706
43.0k
    size_t messageLen = getMessageLength();
1707
1708
43.0k
    uint8_t* extensionIt = extensionPos;
1709
43.0k
    uint8_t* extensionEndIt = extensionPos + extensionLength;
1710
1711
43.0k
    uint8_t* endOfMessageIt = m_Data + messageLen;
1712
43.0k
    if (endOfMessageIt < extensionEndIt)
1713
20.4k
    {
1714
20.4k
      extensionEndIt = endOfMessageIt;
1715
20.4k
    }
1716
1717
43.0k
    constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
1718
120k
    while (extensionIt < extensionEndIt &&
1719
89.5k
           std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
1720
85.7k
    {
1721
85.7k
      std::unique_ptr<SSLExtension> newExt;
1722
1723
85.7k
      uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
1724
85.7k
      size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
1725
1726
85.7k
      switch (sslExtType)
1727
85.7k
      {
1728
15.8k
      case SSL_EXT_SERVER_NAME:
1729
15.8k
      {
1730
15.8k
        newExt =
1731
15.8k
            SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
1732
15.8k
        break;
1733
0
      }
1734
10.0k
      case SSL_EXT_SUPPORTED_VERSIONS:
1735
10.0k
      {
1736
10.0k
        newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
1737
10.0k
        break;
1738
0
      }
1739
6
      case SSL_EXT_SUPPORTED_GROUPS:
1740
6
      {
1741
6
        newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
1742
6
        break;
1743
0
      }
1744
5.73k
      case SSL_EXT_EC_POINT_FORMATS:
1745
5.73k
      {
1746
5.73k
        newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
1747
5.73k
        break;
1748
0
      }
1749
54.0k
      default:
1750
54.0k
      {
1751
54.0k
        newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
1752
54.0k
      }
1753
85.7k
      }
1754
1755
85.7k
      if (newExt == nullptr)
1756
8.82k
      {
1757
8.82k
        PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
1758
8.82k
                                                                << " skipping remaining extensions.");
1759
8.82k
        break;
1760
8.82k
      }
1761
1762
      // Total length can be zero only if getLength() == 0xfffc which is way too large
1763
      // and means that this extension (and packet) are malformed
1764
76.9k
      size_t newExtTotalLen = newExt->getTotalLength();
1765
76.9k
      if (newExtTotalLen == 0)
1766
0
      {
1767
0
        break;
1768
0
      }
1769
1770
76.9k
      m_ExtensionList.pushBack(std::move(newExt));
1771
76.9k
      std::advance(extensionIt, newExtTotalLen);
1772
76.9k
    }
1773
43.0k
  }
1774
1775
  SSLVersion SSLServerHelloMessage::getHandshakeVersion() const
1776
17.5k
  {
1777
17.5k
    SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
1778
17.5k
    if (supportedVersionsExt != nullptr)
1779
2.53k
    {
1780
2.53k
      std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
1781
2.53k
      if (supportedVersions.size() == 1)
1782
2.46k
        return supportedVersions[0];
1783
2.53k
    }
1784
1785
15.1k
    if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
1786
0
      return SSLVersion(0);
1787
1788
15.1k
    uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
1789
15.1k
    return SSLVersion(handshakeVersion);
1790
15.1k
  }
1791
  uint8_t SSLServerHelloMessage::getSessionIDLength() const
1792
141k
  {
1793
141k
    if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
1794
12.0k
      return 0;
1795
1796
129k
    uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
1797
129k
    if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
1798
14.9k
      return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
1799
1800
114k
    return val;
1801
129k
  }
1802
1803
  uint8_t* SSLServerHelloMessage::getSessionID() const
1804
8.78k
  {
1805
8.78k
    if (getSessionIDLength() > 0)
1806
6.63k
      return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
1807
2.14k
    else
1808
2.14k
      return nullptr;
1809
8.78k
  }
1810
1811
  SSLCipherSuite* SSLServerHelloMessage::getCipherSuite() const
1812
8.78k
  {
1813
8.78k
    bool isValid;
1814
8.78k
    uint16_t id = getCipherSuiteID(isValid);
1815
8.78k
    return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
1816
8.78k
  }
1817
1818
  uint16_t SSLServerHelloMessage::getCipherSuiteID(bool& isValid) const
1819
17.5k
  {
1820
17.5k
    size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
1821
17.5k
    if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
1822
4.59k
    {
1823
4.59k
      isValid = false;
1824
4.59k
      return 0;
1825
4.59k
    }
1826
1827
12.9k
    isValid = true;
1828
12.9k
    uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
1829
12.9k
    return be16toh(*(cipherSuiteStartPos));
1830
17.5k
  }
1831
1832
  uint8_t SSLServerHelloMessage::getCompressionMethodsValue() const
1833
8.78k
  {
1834
8.78k
    size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
1835
8.78k
    if (offset + sizeof(uint8_t) > m_DataLen)
1836
2.30k
      return 0xff;
1837
1838
6.48k
    uint8_t* pos = m_Data + offset;
1839
6.48k
    return *pos;
1840
8.78k
  }
1841
1842
  int SSLServerHelloMessage::getExtensionCount() const
1843
8.78k
  {
1844
8.78k
    return m_ExtensionList.size();
1845
8.78k
  }
1846
1847
  uint16_t SSLServerHelloMessage::getExtensionsLength() const
1848
43.0k
  {
1849
43.0k
    size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
1850
43.0k
                                   sizeof(uint16_t) + sizeof(uint8_t);
1851
43.0k
    if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
1852
0
      return 0;
1853
1854
43.0k
    uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
1855
43.0k
    return be16toh(*extensionLengthPos);
1856
43.0k
  }
1857
1858
  SSLExtension* SSLServerHelloMessage::getExtension(int index) const
1859
12.0k
  {
1860
12.0k
    if (index < 0 || index >= (int)m_ExtensionList.size())
1861
0
      return nullptr;
1862
1863
12.0k
    return const_cast<SSLExtension*>(m_ExtensionList.at(index));
1864
12.0k
  }
1865
1866
  SSLExtension* SSLServerHelloMessage::getExtensionOfType(uint16_t type) const
1867
8.78k
  {
1868
8.78k
    size_t vecSize = m_ExtensionList.size();
1869
15.3k
    for (size_t i = 0; i < vecSize; i++)
1870
7.76k
    {
1871
7.76k
      SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
1872
7.76k
      if (curElem->getType() == type)
1873
1.15k
        return curElem;
1874
7.76k
    }
1875
1876
7.62k
    return nullptr;
1877
8.78k
  }
1878
1879
  SSLExtension* SSLServerHelloMessage::getExtensionOfType(SSLExtensionType type) const
1880
8.78k
  {
1881
8.78k
    size_t vecSize = m_ExtensionList.size();
1882
15.3k
    for (size_t i = 0; i < vecSize; i++)
1883
7.76k
    {
1884
7.76k
      SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
1885
7.76k
      if (curElem->getType() == type)
1886
1.15k
        return curElem;
1887
7.76k
    }
1888
1889
7.62k
    return nullptr;
1890
8.78k
  }
1891
1892
  SSLServerHelloMessage::ServerHelloTLSFingerprint SSLServerHelloMessage::generateTLSFingerprint() const
1893
8.78k
  {
1894
8.78k
    SSLServerHelloMessage::ServerHelloTLSFingerprint result;
1895
1896
    // extract version
1897
8.78k
    result.tlsVersion = getHandshakeVersion().asUInt();
1898
1899
    // extract cipher suite
1900
8.78k
    bool isValid;
1901
8.78k
    uint16_t cipherSuite = getCipherSuiteID(isValid);
1902
8.78k
    result.cipherSuite = (isValid ? cipherSuite : 0);
1903
1904
    // extract extensions
1905
8.78k
    int extensionCount = getExtensionCount();
1906
20.8k
    for (int i = 0; i < extensionCount; i++)
1907
12.0k
    {
1908
12.0k
      uint16_t extensionType = getExtension(i)->getTypeAsInt();
1909
12.0k
      result.extensions.push_back(extensionType);
1910
12.0k
    }
1911
1912
8.78k
    return result;
1913
8.78k
  }
1914
1915
  std::string SSLServerHelloMessage::toString() const
1916
17.8k
  {
1917
17.8k
    return "Server Hello message";
1918
17.8k
  }
1919
1920
  // ------------------------------------------------
1921
  // SSLServerHelloMessage::ServerHelloTLSFingerprint
1922
  // ------------------------------------------------
1923
1924
  std::string SSLServerHelloMessage::ServerHelloTLSFingerprint::toString()
1925
8.78k
  {
1926
8.78k
    std::stringstream tlsFingerprint;
1927
1928
    // add version and cipher suite
1929
8.78k
    tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
1930
1931
    // add extensions
1932
8.78k
    bool firstExtension = true;
1933
8.78k
    for (const auto& iter : extensions)
1934
12.0k
    {
1935
12.0k
      tlsFingerprint << (firstExtension ? "" : "-") << iter;
1936
12.0k
      firstExtension = false;
1937
12.0k
    }
1938
1939
8.78k
    return tlsFingerprint.str();
1940
8.78k
  }
1941
1942
  std::string SSLServerHelloMessage::ServerHelloTLSFingerprint::toMD5()
1943
8.78k
  {
1944
8.78k
    return toStringAndMD5().second;
1945
8.78k
  }
1946
1947
  std::pair<std::string, std::string> SSLServerHelloMessage::ServerHelloTLSFingerprint::toStringAndMD5()
1948
8.78k
  {
1949
8.78k
    std::string str = toString();
1950
8.78k
    MD5 md5;
1951
8.78k
    return std::pair<std::string, std::string>(str, md5(str));
1952
8.78k
  }
1953
1954
  // -----------------------------
1955
  // SSLCertificateMessage methods
1956
  // -----------------------------
1957
1958
  SSLCertificateMessage::SSLCertificateMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container)
1959
12.6k
      : SSLHandshakeMessage(data, dataLen, container)
1960
12.6k
  {
1961
12.6k
    if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
1962
65
      return;
1963
1964
12.5k
    size_t messageLen = getMessageLength();
1965
    // read certificates length
1966
    // TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
1967
12.5k
    uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
1968
12.5k
    uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos));
1969
12.5k
    if (certificatesLength == 0)
1970
144
      return;
1971
1972
    // advance to position of first certificate
1973
12.4k
    curPos += sizeof(uint16_t);
1974
1975
38.4k
    while (true)
1976
38.4k
    {
1977
      // try to read certificate length (3B)
1978
      // TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
1979
38.4k
      if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
1980
12.4k
        break;
1981
1982
      // read certificate length
1983
25.9k
      curPos += sizeof(uint8_t);
1984
25.9k
      uint16_t certificateLength = be16toh(*(uint16_t*)(curPos));
1985
1986
      // advance to start position of certificate
1987
25.9k
      curPos += sizeof(uint16_t);
1988
1989
      // if packet doesn't contain the full certificate, read only what you got from current position till the
1990
      // end of the packet
1991
25.9k
      bool certificateFull = true;
1992
25.9k
      if (curPos - data + certificateLength > (int)messageLen)
1993
11.7k
      {
1994
11.7k
        certificateLength = messageLen - (curPos - data);
1995
11.7k
        certificateFull = false;
1996
11.7k
      }
1997
1998
25.9k
      PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
1999
25.9k
      SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
2000
25.9k
      m_CertificateList.pushBack(newCert);
2001
2002
25.9k
      curPos += certificateLength;
2003
25.9k
    }
2004
12.4k
  }
2005
2006
  std::string SSLCertificateMessage::toString() const
2007
4.08k
  {
2008
4.08k
    return "Certificate message";
2009
4.08k
  }
2010
2011
  int SSLCertificateMessage::getNumOfCertificates() const
2012
0
  {
2013
0
    return m_CertificateList.size();
2014
0
  }
2015
2016
  SSLx509Certificate* SSLCertificateMessage::getCertificate(int index) const
2017
0
  {
2018
0
    if (index < 0 || index > (int)m_CertificateList.size())
2019
0
    {
2020
0
      PCPP_LOG_DEBUG("certificate index out of range: asked for index " << index << ", total size is "
2021
0
                                                                        << m_CertificateList.size());
2022
0
      return nullptr;
2023
0
    }
2024
2025
0
    return const_cast<SSLx509Certificate*>(m_CertificateList.at(index));
2026
0
  }
2027
2028
  // ------------------------------
2029
  // SSLHelloRequestMessage methods
2030
  // ------------------------------
2031
2032
  std::string SSLHelloRequestMessage::toString() const
2033
10.5k
  {
2034
10.5k
    return "Hello Request message";
2035
10.5k
  }
2036
2037
  // ---------------------------------
2038
  // SSLServerHelloDoneMessage methods
2039
  // ---------------------------------
2040
2041
  std::string SSLServerHelloDoneMessage::toString() const
2042
3.41k
  {
2043
3.41k
    return "Server Hello Done message";
2044
3.41k
  }
2045
2046
  // -----------------------------------
2047
  // SSLServerKeyExchangeMessage methods
2048
  // -----------------------------------
2049
2050
  uint8_t* SSLServerKeyExchangeMessage::getServerKeyExchangeParams() const
2051
0
  {
2052
0
    if (getMessageLength() > sizeof(ssl_tls_handshake_layer))
2053
0
      return (m_Data + sizeof(ssl_tls_handshake_layer));
2054
2055
0
    return nullptr;
2056
0
  }
2057
2058
  size_t SSLServerKeyExchangeMessage::getServerKeyExchangeParamsLength() const
2059
0
  {
2060
0
    size_t msgLength = getMessageLength();
2061
0
    if (msgLength <= sizeof(ssl_tls_handshake_layer))
2062
0
      return 0;
2063
2064
0
    return msgLength - sizeof(ssl_tls_handshake_layer);
2065
0
  }
2066
2067
  std::string SSLServerKeyExchangeMessage::toString() const
2068
1.18k
  {
2069
1.18k
    return "Server Key Exchange message";
2070
1.18k
  }
2071
2072
  // -----------------------------------
2073
  // SSLClientKeyExchangeMessage methods
2074
  // -----------------------------------
2075
2076
  uint8_t* SSLClientKeyExchangeMessage::getClientKeyExchangeParams() const
2077
0
  {
2078
0
    if (getMessageLength() > sizeof(ssl_tls_handshake_layer))
2079
0
      return (m_Data + sizeof(ssl_tls_handshake_layer));
2080
2081
0
    return nullptr;
2082
0
  }
2083
2084
  size_t SSLClientKeyExchangeMessage::getClientKeyExchangeParamsLength() const
2085
0
  {
2086
0
    size_t msgLength = getMessageLength();
2087
0
    if (msgLength <= sizeof(ssl_tls_handshake_layer))
2088
0
      return 0;
2089
2090
0
    return msgLength - sizeof(ssl_tls_handshake_layer);
2091
0
  }
2092
2093
  std::string SSLClientKeyExchangeMessage::toString() const
2094
2.61k
  {
2095
2.61k
    return "Client Key Exchange message";
2096
2.61k
  }
2097
2098
  // ------------------------------------
2099
  // SSLCertificateRequestMessage methods
2100
  // ------------------------------------
2101
2102
  SSLCertificateRequestMessage::SSLCertificateRequestMessage(uint8_t* data, size_t dataLen,
2103
                                                             SSLHandshakeLayer* container)
2104
12.7k
      : SSLHandshakeMessage(data, dataLen, container)
2105
12.7k
  {
2106
12.7k
    size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
2107
12.7k
    if (dataLen < minMessageSize)
2108
1.49k
      return;
2109
2110
11.2k
    size_t messageLen = getMessageLength();
2111
11.2k
    if (messageLen < minMessageSize)
2112
1.15k
      return;
2113
2114
10.1k
    uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
2115
2116
10.1k
    if (certificateTypesCount > messageLen - minMessageSize)
2117
6.17k
      certificateTypesCount = messageLen - minMessageSize;
2118
2119
10.1k
    uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
2120
271k
    for (uint8_t i = 0; i < certificateTypesCount; i++)
2121
261k
    {
2122
261k
      uint8_t certType = *(uint8_t*)(pos + i);
2123
261k
      if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
2124
212k
        m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
2125
49.0k
      else
2126
49.0k
        m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
2127
261k
    }
2128
10.1k
  }
2129
2130
  std::vector<SSLClientCertificateType>& SSLCertificateRequestMessage::getCertificateTypes()
2131
0
  {
2132
0
    return m_ClientCertificateTypes;
2133
0
  }
2134
2135
  uint8_t* SSLCertificateRequestMessage::getCertificateAuthorityData() const
2136
0
  {
2137
0
    size_t messageLen = getMessageLength();
2138
0
    size_t offset =
2139
0
        sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) + m_ClientCertificateTypes.size() + sizeof(uint16_t);
2140
0
    if (offset >= messageLen)
2141
0
      return nullptr;
2142
2143
0
    return m_Data + offset;
2144
0
  }
2145
2146
  size_t SSLCertificateRequestMessage::getCertificateAuthorityLength() const
2147
0
  {
2148
0
    size_t messageLen = getMessageLength();
2149
0
    size_t offset = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) + m_ClientCertificateTypes.size();
2150
0
    if (offset + sizeof(uint16_t) >= messageLen)
2151
0
      return 0;
2152
2153
0
    uint16_t certAuthLen = be16toh(*(uint16_t*)(m_Data + offset));
2154
2155
0
    offset += sizeof(uint16_t);
2156
2157
0
    if (messageLen - offset < certAuthLen)
2158
0
      return messageLen - offset;
2159
2160
0
    return certAuthLen;
2161
0
  }
2162
2163
  std::string SSLCertificateRequestMessage::toString() const
2164
4.00k
  {
2165
4.00k
    return "Certificate Request message";
2166
4.00k
  }
2167
2168
  // -----------------------------------
2169
  // SSLCertificateVerifyMessage methods
2170
  // -----------------------------------
2171
2172
  uint8_t* SSLCertificateVerifyMessage::getSignedHash() const
2173
0
  {
2174
0
    if (getMessageLength() > sizeof(ssl_tls_handshake_layer))
2175
0
      return (m_Data + sizeof(ssl_tls_handshake_layer));
2176
2177
0
    return nullptr;
2178
0
  }
2179
2180
  size_t SSLCertificateVerifyMessage::getSignedHashLength() const
2181
0
  {
2182
0
    size_t msgLength = getMessageLength();
2183
0
    if (msgLength <= sizeof(ssl_tls_handshake_layer))
2184
0
      return 0;
2185
2186
0
    return msgLength - sizeof(ssl_tls_handshake_layer);
2187
0
  }
2188
2189
  std::string SSLCertificateVerifyMessage::toString() const
2190
290
  {
2191
290
    return "Certificate Verify message";
2192
290
  }
2193
2194
  // --------------------------
2195
  // SSLFinishedMessage methods
2196
  // --------------------------
2197
2198
  uint8_t* SSLFinishedMessage::getSignedHash() const
2199
0
  {
2200
0
    if (getMessageLength() > sizeof(ssl_tls_handshake_layer))
2201
0
      return (m_Data + sizeof(ssl_tls_handshake_layer));
2202
2203
0
    return nullptr;
2204
0
  }
2205
2206
  size_t SSLFinishedMessage::getSignedHashLength() const
2207
0
  {
2208
0
    size_t msgLength = getMessageLength();
2209
0
    if (msgLength <= sizeof(ssl_tls_handshake_layer))
2210
0
      return 0;
2211
2212
0
    return msgLength - sizeof(ssl_tls_handshake_layer);
2213
0
  }
2214
2215
  std::string SSLFinishedMessage::toString() const
2216
382
  {
2217
382
    return "Finished message";
2218
382
  }
2219
2220
  // ----------------------------------
2221
  // SSLNewSessionTicketMessage methods
2222
  // ----------------------------------
2223
2224
  uint8_t* SSLNewSessionTicketMessage::getSessionTicketData() const
2225
0
  {
2226
0
    if (getMessageLength() > sizeof(ssl_tls_handshake_layer))
2227
0
      return (m_Data + sizeof(ssl_tls_handshake_layer));
2228
2229
0
    return nullptr;
2230
0
  }
2231
2232
  size_t SSLNewSessionTicketMessage::getSessionTicketDataLength() const
2233
0
  {
2234
0
    size_t msgLength = getMessageLength();
2235
0
    if (msgLength <= sizeof(ssl_tls_handshake_layer))
2236
0
      return 0;
2237
2238
0
    return msgLength - sizeof(ssl_tls_handshake_layer);
2239
0
  }
2240
2241
  std::string SSLNewSessionTicketMessage::toString() const
2242
804
  {
2243
804
    return "New Session Ticket message";
2244
804
  }
2245
2246
  // -------------------------
2247
  // SSLUnknownMessage methods
2248
  // -------------------------
2249
2250
  SSLHandshakeType SSLUnknownMessage::getHandshakeType() const
2251
0
  {
2252
    // if message type is unknown, it may be some encrypted message so message type isn't necessarily written
2253
    // in clear in the first byte. So always return SSL_HANDSHAKE_UNKNOWN
2254
0
    return SSL_HANDSHAKE_UNKNOWN;
2255
0
  }
2256
2257
  size_t SSLUnknownMessage::getMessageLength() const
2258
140k
  {
2259
    // if message type is unknown, it may be some encrypted message so message length isn't necessarily written
2260
    // in clear. So in this case assume message is in length of all remaining data
2261
140k
    return m_DataLen;
2262
140k
  }
2263
2264
  std::string SSLUnknownMessage::toString() const
2265
21.1k
  {
2266
21.1k
    return "Unknown message";
2267
21.1k
  }
2268
2269
}  // namespace pcpp