/src/PcapPlusPlus/Packet++/src/SSLHandshake.cpp
Line | Count | Source |
1 | 43.7k | #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 | 242k | #define A 54059 ///< a prime |
689 | 242k | #define B 76963 ///< another prime |
690 | | #define C 86969 ///< yet another prime |
691 | 11.5k | #define FIRST_HASH 37 ///< also prime |
692 | | |
693 | | static uint32_t hashString(std::string str) |
694 | 11.5k | { |
695 | 11.5k | unsigned h = FIRST_HASH; |
696 | 253k | for (auto i = 0u; i < str.size(); ++i) |
697 | 242k | { |
698 | 242k | h = (h * A) ^ (str[i] * B); |
699 | 242k | } |
700 | 11.5k | return h; |
701 | 11.5k | } |
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 | 268k | { |
1057 | 268k | std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id); |
1058 | 268k | if (pos == CipherSuiteIdToObjectMap.end()) |
1059 | 116k | return nullptr; |
1060 | 151k | else |
1061 | 151k | return pos->second; |
1062 | 268k | } |
1063 | | |
1064 | | SSLCipherSuite* SSLCipherSuite::getCipherSuiteByName(std::string name) |
1065 | 11.5k | { |
1066 | 11.5k | uint32_t nameHash = hashString(std::move(name)); |
1067 | 11.5k | std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash); |
1068 | 11.5k | if (pos == CipherSuiteStringToObjectMap.end()) |
1069 | 0 | return nullptr; |
1070 | 11.5k | else |
1071 | 11.5k | return pos->second; |
1072 | 11.5k | } |
1073 | | |
1074 | | // -------------------- |
1075 | | // SSLExtension methods |
1076 | | // -------------------- |
1077 | | |
1078 | | SSLExtension::SSLExtension(uint8_t* data) |
1079 | 638k | { |
1080 | 638k | m_RawData = data; |
1081 | 638k | } |
1082 | | |
1083 | | SSLExtensionType SSLExtension::getType() const |
1084 | 40.5k | { |
1085 | 40.5k | uint16_t typeAsInt = getTypeAsInt(); |
1086 | 40.5k | if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281) |
1087 | 24.8k | return (SSLExtensionType)typeAsInt; |
1088 | | |
1089 | 15.6k | return SSL_EXT_Unknown; |
1090 | 40.5k | } |
1091 | | |
1092 | | uint16_t SSLExtension::getTypeAsInt() const |
1093 | 173k | { |
1094 | 173k | return be16toh(getExtensionStruct()->extensionType); |
1095 | 173k | } |
1096 | | |
1097 | | uint16_t SSLExtension::getLength() const |
1098 | 1.33M | { |
1099 | 1.33M | return be16toh(getExtensionStruct()->extensionDataLength); |
1100 | 1.33M | } |
1101 | | |
1102 | | uint16_t SSLExtension::getTotalLength() const |
1103 | 1.27M | { |
1104 | 1.27M | return getLength() + 2 * sizeof(uint16_t); |
1105 | 1.27M | } |
1106 | | |
1107 | | uint8_t* SSLExtension::getData() const |
1108 | 39.6k | { |
1109 | 39.6k | if (getLength() > 0) |
1110 | 38.7k | { |
1111 | 38.7k | return getExtensionStruct()->extensionData; |
1112 | 38.7k | } |
1113 | | |
1114 | 865 | return nullptr; |
1115 | 39.6k | } |
1116 | | |
1117 | | // ---------------------------------------- |
1118 | | // SSLServerNameIndicationExtension methods |
1119 | | // ---------------------------------------- |
1120 | | |
1121 | | std::string SSLServerNameIndicationExtension::getHostName() const |
1122 | 7.46k | { |
1123 | 7.46k | auto* extensionDataPtr = getData(); |
1124 | 7.46k | if (extensionDataPtr == nullptr) |
1125 | 865 | { |
1126 | 865 | return ""; |
1127 | 865 | } |
1128 | | |
1129 | 6.60k | uint8_t* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t); |
1130 | 6.60k | uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t*>(hostNameLengthPos)); |
1131 | | |
1132 | 6.60k | char* hostNameAsCharArr = new char[hostNameLength + 1]; |
1133 | 6.60k | memset(hostNameAsCharArr, 0, hostNameLength + 1); |
1134 | 6.60k | memcpy(hostNameAsCharArr, hostNameLengthPos + sizeof(uint16_t), hostNameLength); |
1135 | | |
1136 | 6.60k | std::string res = std::string(hostNameAsCharArr); |
1137 | 6.60k | delete[] hostNameAsCharArr; |
1138 | 6.60k | return res; |
1139 | 7.46k | } |
1140 | | |
1141 | | // ------------------------------------- |
1142 | | // SSLSupportedVersionsExtension methods |
1143 | | // ------------------------------------- |
1144 | | |
1145 | | std::vector<SSLVersion> SSLSupportedVersionsExtension::getSupportedVersions() const |
1146 | 5.91k | { |
1147 | 5.91k | std::vector<SSLVersion> result; |
1148 | 5.91k | uint16_t extensionLength = getLength(); |
1149 | 5.91k | if (extensionLength == 2) // server hello message |
1150 | 2.62k | { |
1151 | 2.62k | result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData())))); |
1152 | 2.62k | } |
1153 | 3.29k | else // client-hello message |
1154 | 3.29k | { |
1155 | 3.29k | uint8_t listLength = *getData(); |
1156 | 3.29k | if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0) |
1157 | 564 | return result; // bad extension data |
1158 | | |
1159 | 2.72k | uint8_t* dataPtr = getData() + sizeof(uint8_t); |
1160 | 10.7k | for (int i = 0; i < listLength / 2; i++) |
1161 | 8.00k | { |
1162 | 8.00k | result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr)))); |
1163 | 8.00k | dataPtr += sizeof(uint16_t); |
1164 | 8.00k | } |
1165 | 2.72k | } |
1166 | | |
1167 | 5.35k | return result; |
1168 | 5.91k | } |
1169 | | |
1170 | | // ----------------------------------- |
1171 | | // TLSSupportedGroupsExtension methods |
1172 | | // ----------------------------------- |
1173 | | |
1174 | | std::vector<uint16_t> TLSSupportedGroupsExtension::getSupportedGroups() const |
1175 | 6.74k | { |
1176 | 6.74k | std::vector<uint16_t> result; |
1177 | | |
1178 | 6.74k | uint16_t extensionLength = getLength(); |
1179 | 6.74k | if (extensionLength < sizeof(uint16_t)) |
1180 | 34 | return result; // bad extension data |
1181 | | |
1182 | 6.71k | uint16_t listLength = be16toh(*(uint16_t*)getData()); |
1183 | 6.71k | if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0) |
1184 | 362 | return result; // bad extension data |
1185 | | |
1186 | 6.34k | uint8_t* dataPtr = getData() + sizeof(uint16_t); |
1187 | 36.1k | for (int i = 0; i < listLength / 2; i++) |
1188 | 29.8k | { |
1189 | 29.8k | result.push_back(be16toh(*(uint16_t*)dataPtr)); |
1190 | 29.8k | dataPtr += sizeof(uint16_t); |
1191 | 29.8k | } |
1192 | | |
1193 | 6.34k | return result; |
1194 | 6.71k | } |
1195 | | |
1196 | | // --------------------------------- |
1197 | | // TLSECPointFormatExtension methods |
1198 | | // --------------------------------- |
1199 | | |
1200 | | std::vector<uint8_t> TLSECPointFormatExtension::getECPointFormatList() const |
1201 | 5.33k | { |
1202 | 5.33k | std::vector<uint8_t> result; |
1203 | | |
1204 | 5.33k | uint16_t extensionLength = getLength(); |
1205 | 5.33k | uint8_t listLength = *getData(); |
1206 | 5.33k | if (listLength != static_cast<uint8_t>(extensionLength - 1)) |
1207 | 185 | return result; // bad extension data |
1208 | | |
1209 | 5.14k | uint8_t* dataPtr = getData() + sizeof(uint8_t); |
1210 | 12.2k | for (int i = 0; i < listLength; i++) |
1211 | 7.07k | { |
1212 | 7.07k | result.push_back(*dataPtr); |
1213 | 7.07k | dataPtr += sizeof(uint8_t); |
1214 | 7.07k | } |
1215 | | |
1216 | 5.14k | return result; |
1217 | 5.33k | } |
1218 | | |
1219 | | // -------------------------- |
1220 | | // SSLx509Certificate methods |
1221 | | // -------------------------- |
1222 | | |
1223 | | Asn1SequenceRecord* SSLx509Certificate::getRootAsn1Record() |
1224 | 0 | { |
1225 | 0 | if (!m_AllDataExists) |
1226 | 0 | { |
1227 | 0 | PCPP_LOG_ERROR("Certificate data is not complete, cannot parse ASN.1 record"); |
1228 | 0 | return nullptr; |
1229 | 0 | } |
1230 | | |
1231 | 0 | if (m_Asn1Record == nullptr) |
1232 | 0 | { |
1233 | 0 | m_Asn1Record = Asn1Record::decode(m_Data, m_DataLen); |
1234 | 0 | } |
1235 | |
|
1236 | 0 | return m_Asn1Record->castAs<Asn1SequenceRecord>(); |
1237 | 0 | } |
1238 | | |
1239 | | std::unique_ptr<X509Certificate> SSLx509Certificate::getX509Certificate() |
1240 | 0 | { |
1241 | 0 | if (!m_AllDataExists) |
1242 | 0 | { |
1243 | 0 | PCPP_LOG_ERROR("Certificate data is not complete, cannot parse X509 certificate"); |
1244 | 0 | return nullptr; |
1245 | 0 | } |
1246 | | |
1247 | 0 | return X509Certificate::fromDER(m_Data, m_DataLen); |
1248 | 0 | } |
1249 | | |
1250 | | // --------------------------- |
1251 | | // SSLHandshakeMessage methods |
1252 | | // --------------------------- |
1253 | | |
1254 | | SSLHandshakeMessage::SSLHandshakeMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container) |
1255 | 311k | { |
1256 | 311k | m_Data = data; |
1257 | 311k | m_DataLen = dataLen; |
1258 | 311k | m_Container = container; |
1259 | 311k | } |
1260 | | |
1261 | | SSLHandshakeMessage* SSLHandshakeMessage::createHandshakeMessage(uint8_t* data, size_t dataLen, |
1262 | | SSLHandshakeLayer* container) |
1263 | 516k | { |
1264 | 516k | if (dataLen < sizeof(ssl_tls_handshake_layer)) |
1265 | 204k | return nullptr; |
1266 | | |
1267 | 311k | ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data); |
1268 | | |
1269 | 311k | if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1)) |
1270 | 59.2k | { |
1271 | | // possibly Encrypted Handshake Message |
1272 | | // used heuristic: |
1273 | | // - handshake layer of more than 16 byte |
1274 | | // - first 5 bytes of the handshake message are zeroes |
1275 | | // - or wrong message length is over 64K |
1276 | | // - or message type makes so sense (handled through the switch statement) |
1277 | 59.2k | return new SSLUnknownMessage(data, dataLen, container); |
1278 | 59.2k | } |
1279 | | |
1280 | 252k | switch (hsMsgHeader->handshakeType) |
1281 | 252k | { |
1282 | 66.2k | case SSL_CLIENT_HELLO: |
1283 | 66.2k | return new SSLClientHelloMessage(data, dataLen, container); |
1284 | 72.2k | case SSL_SERVER_HELLO: |
1285 | 72.2k | return new SSLServerHelloMessage(data, dataLen, container); |
1286 | 32.5k | case SSL_HELLO_REQUEST: |
1287 | 32.5k | return new SSLHelloRequestMessage(data, dataLen, container); |
1288 | 18.6k | case SSL_CERTIFICATE: |
1289 | 18.6k | return new SSLCertificateMessage(data, dataLen, container); |
1290 | 7.87k | case SSL_SERVER_KEY_EXCHANGE: |
1291 | 7.87k | return new SSLServerKeyExchangeMessage(data, dataLen, container); |
1292 | 19.5k | case SSL_CERTIFICATE_REQUEST: |
1293 | 19.5k | return new SSLCertificateRequestMessage(data, dataLen, container); |
1294 | 1.19k | case SSL_CERTIFICATE_VERIFY: |
1295 | 1.19k | return new SSLCertificateVerifyMessage(data, dataLen, container); |
1296 | 10.4k | case SSL_CLIENT_KEY_EXCHANGE: |
1297 | 10.4k | return new SSLClientKeyExchangeMessage(data, dataLen, container); |
1298 | 1.88k | case SSL_FINISHED: |
1299 | 1.88k | return new SSLFinishedMessage(data, dataLen, container); |
1300 | 11.2k | case SSL_SERVER_DONE: |
1301 | 11.2k | return new SSLServerHelloDoneMessage(data, dataLen, container); |
1302 | 4.65k | case SSL_NEW_SESSION_TICKET: |
1303 | 4.65k | return new SSLNewSessionTicketMessage(data, dataLen, container); |
1304 | 5.92k | default: |
1305 | 5.92k | return new SSLUnknownMessage(data, dataLen, container); |
1306 | 252k | } |
1307 | 252k | } |
1308 | | |
1309 | | SSLHandshakeType SSLHandshakeMessage::getHandshakeType() const |
1310 | 11.5k | { |
1311 | 11.5k | ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data); |
1312 | 11.5k | return (SSLHandshakeType)handshakeLayer->handshakeType; |
1313 | 11.5k | } |
1314 | | |
1315 | | size_t SSLHandshakeMessage::getMessageLength() const |
1316 | 624k | { |
1317 | 624k | ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data); |
1318 | | // TODO: add handshakeLayer->length1 to the calculation |
1319 | 624k | size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2); |
1320 | 624k | if (len > m_DataLen) |
1321 | 132k | return m_DataLen; |
1322 | | |
1323 | 492k | return len; |
1324 | 624k | } |
1325 | | |
1326 | | bool SSLHandshakeMessage::isMessageComplete() const |
1327 | 31.5k | { |
1328 | 31.5k | if (m_DataLen < sizeof(ssl_tls_handshake_layer)) |
1329 | 0 | return false; |
1330 | | |
1331 | 31.5k | ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data); |
1332 | 31.5k | size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2); |
1333 | 31.5k | return len <= m_DataLen; |
1334 | 31.5k | } |
1335 | | |
1336 | | // ----------------------------- |
1337 | | // SSLClientHelloMessage methods |
1338 | | // ----------------------------- |
1339 | | |
1340 | | SSLClientHelloMessage::SSLClientHelloMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container) |
1341 | 66.2k | : SSLHandshakeMessage(data, dataLen, container) |
1342 | 66.2k | { |
1343 | 66.2k | size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + |
1344 | 66.2k | sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + |
1345 | 66.2k | 2 * sizeof(uint8_t); |
1346 | 66.2k | if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen) |
1347 | 18.5k | return; |
1348 | | |
1349 | 47.6k | uint8_t* extensionLengthPos = m_Data + extensionLengthOffset; |
1350 | 47.6k | uint16_t extensionLength = getExtensionsLength(); |
1351 | 47.6k | uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t); |
1352 | 47.6k | uint8_t* curPos = extensionPos; |
1353 | 47.6k | size_t messageLen = getMessageLength(); |
1354 | 47.6k | size_t minSSLExtensionLen = 2 * sizeof(uint16_t); |
1355 | 584k | while ((curPos - extensionPos) < (int)extensionLength && (curPos - m_Data) < (int)messageLen && |
1356 | 544k | (int)messageLen - (curPos - m_Data) >= (int)minSSLExtensionLen) |
1357 | 536k | { |
1358 | 536k | SSLExtension* newExt = nullptr; |
1359 | 536k | uint16_t sslExtType = be16toh(*(uint16_t*)curPos); |
1360 | 536k | switch (sslExtType) |
1361 | 536k | { |
1362 | 133k | case SSL_EXT_SERVER_NAME: |
1363 | 133k | newExt = new SSLServerNameIndicationExtension(curPos); |
1364 | 133k | break; |
1365 | 13.7k | case SSL_EXT_SUPPORTED_VERSIONS: |
1366 | 13.7k | newExt = new SSLSupportedVersionsExtension(curPos); |
1367 | 13.7k | break; |
1368 | 34.5k | case SSL_EXT_SUPPORTED_GROUPS: |
1369 | 34.5k | newExt = new TLSSupportedGroupsExtension(curPos); |
1370 | 34.5k | break; |
1371 | 27.1k | case SSL_EXT_EC_POINT_FORMATS: |
1372 | 27.1k | newExt = new TLSECPointFormatExtension(curPos); |
1373 | 27.1k | break; |
1374 | 328k | default: |
1375 | 328k | newExt = new SSLExtension(curPos); |
1376 | 536k | } |
1377 | | |
1378 | | // Total length can be zero only if getLength() == 0xfffc which is way too large |
1379 | | // and means that this extension (and packet) are malformed |
1380 | 536k | if (newExt->getTotalLength() == 0) |
1381 | 121 | { |
1382 | 121 | delete newExt; |
1383 | 121 | break; |
1384 | 121 | } |
1385 | | |
1386 | 536k | m_ExtensionList.pushBack(newExt); |
1387 | 536k | curPos += newExt->getTotalLength(); |
1388 | 536k | } |
1389 | 47.6k | } |
1390 | | |
1391 | | SSLVersion SSLClientHelloMessage::getHandshakeVersion() const |
1392 | 23.0k | { |
1393 | 23.0k | uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion); |
1394 | 23.0k | return SSLVersion(handshakeVersion); |
1395 | 23.0k | } |
1396 | | |
1397 | | uint8_t SSLClientHelloMessage::getSessionIDLength() const |
1398 | 77.1M | { |
1399 | 77.1M | if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t)) |
1400 | 7.92k | return 0; |
1401 | | |
1402 | 77.1M | uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello)); |
1403 | 77.1M | if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1) |
1404 | 8.92k | return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1); |
1405 | | |
1406 | 77.0M | return val; |
1407 | 77.1M | } |
1408 | | |
1409 | | uint8_t* SSLClientHelloMessage::getSessionID() const |
1410 | 11.5k | { |
1411 | 11.5k | if (getSessionIDLength() > 0) |
1412 | 5.99k | return (m_Data + sizeof(ssl_tls_client_server_hello) + 1); |
1413 | 5.52k | else |
1414 | 5.52k | return nullptr; |
1415 | 11.5k | } |
1416 | | |
1417 | | int SSLClientHelloMessage::getCipherSuiteCount() const |
1418 | 44.0M | { |
1419 | 44.0M | size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength(); |
1420 | 44.0M | if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen) |
1421 | 15.3k | return 0; |
1422 | | |
1423 | 44.0M | uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset); |
1424 | 44.0M | return be16toh(cipherSuiteLen) / 2; |
1425 | 44.0M | } |
1426 | | |
1427 | | SSLCipherSuite* SSLClientHelloMessage::getCipherSuite(int index) const |
1428 | 10.9M | { |
1429 | 10.9M | bool isValid; |
1430 | 10.9M | uint16_t id = getCipherSuiteID(index, isValid); |
1431 | 10.9M | return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr); |
1432 | 10.9M | } |
1433 | | |
1434 | | uint16_t SSLClientHelloMessage::getCipherSuiteID(int index, bool& isValid) const |
1435 | 32.9M | { |
1436 | 32.9M | if (index < 0 || index >= getCipherSuiteCount()) |
1437 | 0 | { |
1438 | 0 | isValid = false; |
1439 | 0 | return 0; |
1440 | 0 | } |
1441 | | |
1442 | 32.9M | size_t cipherSuiteStartOffset = |
1443 | 32.9M | sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t); |
1444 | 32.9M | if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen) |
1445 | 32.1M | { |
1446 | 32.1M | isValid = false; |
1447 | 32.1M | return 0; |
1448 | 32.1M | } |
1449 | | |
1450 | 785k | isValid = true; |
1451 | 785k | uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset); |
1452 | 785k | return be16toh(*(cipherSuiteStartPos + index)); |
1453 | 32.9M | } |
1454 | | |
1455 | | uint8_t SSLClientHelloMessage::getCompressionMethodsValue() const |
1456 | 11.5k | { |
1457 | 11.5k | size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + |
1458 | 11.5k | sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t); |
1459 | 11.5k | if (offset + sizeof(uint8_t) > m_DataLen) |
1460 | 2.73k | return 0xff; |
1461 | | |
1462 | 8.79k | uint8_t* pos = m_Data + offset; |
1463 | 8.79k | return *pos; |
1464 | 11.5k | } |
1465 | | |
1466 | | int SSLClientHelloMessage::getExtensionCount() const |
1467 | 11.5k | { |
1468 | 11.5k | return m_ExtensionList.size(); |
1469 | 11.5k | } |
1470 | | |
1471 | | uint16_t SSLClientHelloMessage::getExtensionsLength() const |
1472 | 47.6k | { |
1473 | 47.6k | size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + |
1474 | 47.6k | sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + |
1475 | 47.6k | 2 * sizeof(uint8_t); |
1476 | 47.6k | if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen) |
1477 | 0 | return 0; |
1478 | | |
1479 | 47.6k | uint8_t* extensionLengthPos = m_Data + extensionLengthOffset; |
1480 | 47.6k | return be16toh(*(uint16_t*)extensionLengthPos); |
1481 | 47.6k | } |
1482 | | |
1483 | | SSLExtension* SSLClientHelloMessage::getExtension(int index) const |
1484 | 99.0k | { |
1485 | 99.0k | return const_cast<SSLExtension*>(m_ExtensionList.at(index)); |
1486 | 99.0k | } |
1487 | | |
1488 | | SSLExtension* SSLClientHelloMessage::getExtensionOfType(uint16_t type) const |
1489 | 11.5k | { |
1490 | 11.5k | size_t vecSize = m_ExtensionList.size(); |
1491 | 23.8k | for (size_t i = 0; i < vecSize; i++) |
1492 | 19.7k | { |
1493 | 19.7k | SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i)); |
1494 | 19.7k | if (curElem->getTypeAsInt() == type) |
1495 | 7.46k | return curElem; |
1496 | 19.7k | } |
1497 | | |
1498 | 4.05k | return nullptr; |
1499 | 11.5k | } |
1500 | | |
1501 | | SSLExtension* SSLClientHelloMessage::getExtensionOfType(SSLExtensionType type) const |
1502 | 11.5k | { |
1503 | 11.5k | size_t vecSize = m_ExtensionList.size(); |
1504 | 23.8k | for (size_t i = 0; i < vecSize; i++) |
1505 | 19.7k | { |
1506 | 19.7k | SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i)); |
1507 | 19.7k | if (curElem->getType() == type) |
1508 | 7.46k | return curElem; |
1509 | 19.7k | } |
1510 | | |
1511 | 4.05k | return nullptr; |
1512 | 11.5k | } |
1513 | | |
1514 | | SSLClientHelloMessage::ClientHelloTLSFingerprint SSLClientHelloMessage::generateTLSFingerprint() const |
1515 | 11.5k | { |
1516 | 11.5k | SSLClientHelloMessage::ClientHelloTLSFingerprint result; |
1517 | | |
1518 | | // extract version |
1519 | 11.5k | result.tlsVersion = getHandshakeVersion().asUInt(); |
1520 | | |
1521 | | // extract cipher suites |
1522 | 11.5k | int cipherSuiteCount = getCipherSuiteCount(); |
1523 | 10.9M | for (int i = 0; i < cipherSuiteCount; i++) |
1524 | 10.9M | { |
1525 | 10.9M | bool isValid = false; |
1526 | 10.9M | uint16_t cipherSuiteID = getCipherSuiteID(i, isValid); |
1527 | 10.9M | if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end()) |
1528 | 259k | result.cipherSuites.push_back(cipherSuiteID); |
1529 | 10.9M | } |
1530 | | |
1531 | | // extract extensions |
1532 | 11.5k | int extensionCount = getExtensionCount(); |
1533 | 110k | for (int i = 0; i < extensionCount; i++) |
1534 | 99.0k | { |
1535 | 99.0k | uint16_t extensionType = getExtension(i)->getTypeAsInt(); |
1536 | 99.0k | if (GreaseSet.find(extensionType) != GreaseSet.end()) |
1537 | 2.26k | continue; |
1538 | | |
1539 | 96.7k | result.extensions.push_back(extensionType); |
1540 | 96.7k | } |
1541 | | |
1542 | | // extract supported groups |
1543 | 11.5k | TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>(); |
1544 | 11.5k | if (supportedGroupsExt != nullptr) |
1545 | 6.74k | { |
1546 | 6.74k | std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups(); |
1547 | 6.74k | for (const auto& iter : supportedGroups) |
1548 | 29.8k | if (GreaseSet.find(iter) == GreaseSet.end()) |
1549 | 28.7k | result.supportedGroups.push_back(iter); |
1550 | 6.74k | } |
1551 | | |
1552 | | // extract EC point formats |
1553 | 11.5k | TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>(); |
1554 | 11.5k | if (ecPointFormatExt != nullptr) |
1555 | 5.33k | { |
1556 | 5.33k | result.ecPointFormats = ecPointFormatExt->getECPointFormatList(); |
1557 | 5.33k | } |
1558 | | |
1559 | 11.5k | return result; |
1560 | 11.5k | } |
1561 | | |
1562 | | std::string SSLClientHelloMessage::toString() const |
1563 | 23.3k | { |
1564 | 23.3k | return "Client Hello message"; |
1565 | 23.3k | } |
1566 | | |
1567 | | // ------------------------------------------------ |
1568 | | // SSLClientHelloMessage::ClientHelloTLSFingerprint |
1569 | | // ------------------------------------------------ |
1570 | | |
1571 | | std::string SSLClientHelloMessage::ClientHelloTLSFingerprint::toString() |
1572 | 11.5k | { |
1573 | 11.5k | std::stringstream tlsFingerprint; |
1574 | | |
1575 | | // add version |
1576 | 11.5k | tlsFingerprint << tlsVersion << ","; |
1577 | | |
1578 | | // add cipher suites |
1579 | 11.5k | bool firstCipher = true; |
1580 | 11.5k | for (const auto& iter : cipherSuites) |
1581 | 259k | { |
1582 | 259k | tlsFingerprint << (firstCipher ? "" : "-") << iter; |
1583 | 259k | firstCipher = false; |
1584 | 259k | } |
1585 | 11.5k | tlsFingerprint << ","; |
1586 | | |
1587 | | // add extensions |
1588 | 11.5k | bool firstExtension = true; |
1589 | 11.5k | for (const auto& iter : extensions) |
1590 | 96.7k | { |
1591 | 96.7k | tlsFingerprint << (firstExtension ? "" : "-") << iter; |
1592 | 96.7k | firstExtension = false; |
1593 | 96.7k | } |
1594 | 11.5k | tlsFingerprint << ","; |
1595 | | |
1596 | | // add supported groups |
1597 | 11.5k | bool firstGroup = true; |
1598 | 11.5k | for (const auto& iter : supportedGroups) |
1599 | 28.7k | { |
1600 | 28.7k | tlsFingerprint << (firstGroup ? "" : "-") << iter; |
1601 | 28.7k | firstGroup = false; |
1602 | 28.7k | } |
1603 | 11.5k | tlsFingerprint << ","; |
1604 | | |
1605 | | // add EC point formats |
1606 | 11.5k | bool firstPointFormat = true; |
1607 | 11.5k | for (auto iter : ecPointFormats) |
1608 | 7.07k | { |
1609 | 7.07k | tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter; |
1610 | 7.07k | firstPointFormat = false; |
1611 | 7.07k | } |
1612 | | |
1613 | 11.5k | return tlsFingerprint.str(); |
1614 | 11.5k | } |
1615 | | |
1616 | | std::string SSLClientHelloMessage::ClientHelloTLSFingerprint::toMD5() |
1617 | 11.5k | { |
1618 | 11.5k | return toStringAndMD5().second; |
1619 | 11.5k | } |
1620 | | |
1621 | | std::pair<std::string, std::string> SSLClientHelloMessage::ClientHelloTLSFingerprint::toStringAndMD5() |
1622 | 11.5k | { |
1623 | 11.5k | std::string str = toString(); |
1624 | 11.5k | MD5 md5; |
1625 | 11.5k | return std::pair<std::string, std::string>(str, md5(str)); |
1626 | 11.5k | } |
1627 | | |
1628 | | // ----------------------------- |
1629 | | // SSLServerHelloMessage methods |
1630 | | // ----------------------------- |
1631 | | |
1632 | | SSLServerHelloMessage::SSLServerHelloMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container) |
1633 | 72.2k | : SSLHandshakeMessage(data, dataLen, container) |
1634 | 72.2k | { |
1635 | 72.2k | size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + |
1636 | 72.2k | sizeof(uint16_t) + sizeof(uint8_t); |
1637 | 72.2k | if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen) |
1638 | 20.2k | return; |
1639 | | |
1640 | 52.0k | uint8_t* extensionLengthPos = m_Data + extensionLengthOffset; |
1641 | 52.0k | uint16_t extensionLength = getExtensionsLength(); |
1642 | 52.0k | uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t); |
1643 | 52.0k | uint8_t* curPos = extensionPos; |
1644 | 52.0k | size_t messageLen = getMessageLength(); |
1645 | 52.0k | size_t minSSLExtensionLen = 2 * sizeof(uint16_t); |
1646 | 154k | while ((curPos - extensionPos) < (int)extensionLength && (curPos - m_Data) < (int)messageLen && |
1647 | 107k | (int)messageLen - (curPos - m_Data) >= (int)minSSLExtensionLen) |
1648 | 102k | { |
1649 | 102k | SSLExtension* newExt = nullptr; |
1650 | 102k | uint16_t sslExtType = be16toh(*(uint16_t*)curPos); |
1651 | 102k | switch (sslExtType) |
1652 | 102k | { |
1653 | 14.9k | case SSL_EXT_SERVER_NAME: |
1654 | 14.9k | newExt = new SSLServerNameIndicationExtension(curPos); |
1655 | 14.9k | break; |
1656 | 11.6k | case SSL_EXT_SUPPORTED_VERSIONS: |
1657 | 11.6k | newExt = new SSLSupportedVersionsExtension(curPos); |
1658 | 11.6k | break; |
1659 | 110 | case SSL_EXT_SUPPORTED_GROUPS: |
1660 | 110 | newExt = new TLSSupportedGroupsExtension(curPos); |
1661 | 110 | break; |
1662 | 6.00k | case SSL_EXT_EC_POINT_FORMATS: |
1663 | 6.00k | newExt = new TLSECPointFormatExtension(curPos); |
1664 | 6.00k | break; |
1665 | 69.5k | default: |
1666 | 69.5k | newExt = new SSLExtension(curPos); |
1667 | 102k | } |
1668 | | |
1669 | 102k | if (newExt->getTotalLength() == 0) |
1670 | 79 | { |
1671 | 79 | delete newExt; |
1672 | 79 | break; |
1673 | 79 | } |
1674 | | |
1675 | 102k | m_ExtensionList.pushBack(newExt); |
1676 | 102k | curPos += newExt->getTotalLength(); |
1677 | 102k | } |
1678 | 52.0k | } |
1679 | | |
1680 | | SSLVersion SSLServerHelloMessage::getHandshakeVersion() const |
1681 | 17.2k | { |
1682 | 17.2k | SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>(); |
1683 | 17.2k | if (supportedVersionsExt != nullptr) |
1684 | 3.18k | { |
1685 | 3.18k | std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions(); |
1686 | 3.18k | if (supportedVersions.size() == 1) |
1687 | 2.60k | return supportedVersions[0]; |
1688 | 3.18k | } |
1689 | | |
1690 | 14.6k | uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion); |
1691 | 14.6k | return SSLVersion(handshakeVersion); |
1692 | 17.2k | } |
1693 | | uint8_t SSLServerHelloMessage::getSessionIDLength() const |
1694 | 158k | { |
1695 | 158k | if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t)) |
1696 | 16.9k | return 0; |
1697 | | |
1698 | 141k | uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello)); |
1699 | 141k | if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1) |
1700 | 8.38k | return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1); |
1701 | | |
1702 | 133k | return val; |
1703 | 141k | } |
1704 | | |
1705 | | uint8_t* SSLServerHelloMessage::getSessionID() const |
1706 | 8.63k | { |
1707 | 8.63k | if (getSessionIDLength() > 0) |
1708 | 5.97k | return (m_Data + sizeof(ssl_tls_client_server_hello) + 1); |
1709 | 2.66k | else |
1710 | 2.66k | return nullptr; |
1711 | 8.63k | } |
1712 | | |
1713 | | SSLCipherSuite* SSLServerHelloMessage::getCipherSuite() const |
1714 | 8.63k | { |
1715 | 8.63k | bool isValid; |
1716 | 8.63k | uint16_t id = getCipherSuiteID(isValid); |
1717 | 8.63k | return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr); |
1718 | 8.63k | } |
1719 | | |
1720 | | uint16_t SSLServerHelloMessage::getCipherSuiteID(bool& isValid) const |
1721 | 17.2k | { |
1722 | 17.2k | size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength(); |
1723 | 17.2k | if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen) |
1724 | 4.04k | { |
1725 | 4.04k | isValid = false; |
1726 | 4.04k | return 0; |
1727 | 4.04k | } |
1728 | | |
1729 | 13.2k | isValid = true; |
1730 | 13.2k | uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset); |
1731 | 13.2k | return be16toh(*(cipherSuiteStartPos)); |
1732 | 17.2k | } |
1733 | | |
1734 | | uint8_t SSLServerHelloMessage::getCompressionMethodsValue() const |
1735 | 8.63k | { |
1736 | 8.63k | size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t); |
1737 | 8.63k | if (offset + sizeof(uint8_t) > m_DataLen) |
1738 | 2.02k | return 0xff; |
1739 | | |
1740 | 6.60k | uint8_t* pos = m_Data + offset; |
1741 | 6.60k | return *pos; |
1742 | 8.63k | } |
1743 | | |
1744 | | int SSLServerHelloMessage::getExtensionCount() const |
1745 | 8.63k | { |
1746 | 8.63k | return m_ExtensionList.size(); |
1747 | 8.63k | } |
1748 | | |
1749 | | uint16_t SSLServerHelloMessage::getExtensionsLength() const |
1750 | 52.0k | { |
1751 | 52.0k | size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + |
1752 | 52.0k | sizeof(uint16_t) + sizeof(uint8_t); |
1753 | 52.0k | if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen) |
1754 | 0 | return 0; |
1755 | | |
1756 | 52.0k | uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset); |
1757 | 52.0k | return be16toh(*extensionLengthPos); |
1758 | 52.0k | } |
1759 | | |
1760 | | SSLExtension* SSLServerHelloMessage::getExtension(int index) const |
1761 | 14.4k | { |
1762 | 14.4k | if (index < 0 || index >= (int)m_ExtensionList.size()) |
1763 | 0 | return nullptr; |
1764 | | |
1765 | 14.4k | return const_cast<SSLExtension*>(m_ExtensionList.at(index)); |
1766 | 14.4k | } |
1767 | | |
1768 | | SSLExtension* SSLServerHelloMessage::getExtensionOfType(uint16_t type) const |
1769 | 8.63k | { |
1770 | 8.63k | size_t vecSize = m_ExtensionList.size(); |
1771 | 17.8k | for (size_t i = 0; i < vecSize; i++) |
1772 | 10.3k | { |
1773 | 10.3k | SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i)); |
1774 | 10.3k | if (curElem->getType() == type) |
1775 | 1.15k | return curElem; |
1776 | 10.3k | } |
1777 | | |
1778 | 7.47k | return nullptr; |
1779 | 8.63k | } |
1780 | | |
1781 | | SSLExtension* SSLServerHelloMessage::getExtensionOfType(SSLExtensionType type) const |
1782 | 8.63k | { |
1783 | 8.63k | size_t vecSize = m_ExtensionList.size(); |
1784 | 17.8k | for (size_t i = 0; i < vecSize; i++) |
1785 | 10.3k | { |
1786 | 10.3k | SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i)); |
1787 | 10.3k | if (curElem->getType() == type) |
1788 | 1.15k | return curElem; |
1789 | 10.3k | } |
1790 | | |
1791 | 7.47k | return nullptr; |
1792 | 8.63k | } |
1793 | | |
1794 | | SSLServerHelloMessage::ServerHelloTLSFingerprint SSLServerHelloMessage::generateTLSFingerprint() const |
1795 | 8.63k | { |
1796 | 8.63k | SSLServerHelloMessage::ServerHelloTLSFingerprint result; |
1797 | | |
1798 | | // extract version |
1799 | 8.63k | result.tlsVersion = getHandshakeVersion().asUInt(); |
1800 | | |
1801 | | // extract cipher suite |
1802 | 8.63k | bool isValid; |
1803 | 8.63k | uint16_t cipherSuite = getCipherSuiteID(isValid); |
1804 | 8.63k | result.cipherSuite = (isValid ? cipherSuite : 0); |
1805 | | |
1806 | | // extract extensions |
1807 | 8.63k | int extensionCount = getExtensionCount(); |
1808 | 23.1k | for (int i = 0; i < extensionCount; i++) |
1809 | 14.4k | { |
1810 | 14.4k | uint16_t extensionType = getExtension(i)->getTypeAsInt(); |
1811 | 14.4k | result.extensions.push_back(extensionType); |
1812 | 14.4k | } |
1813 | | |
1814 | 8.63k | return result; |
1815 | 8.63k | } |
1816 | | |
1817 | | std::string SSLServerHelloMessage::toString() const |
1818 | 18.1k | { |
1819 | 18.1k | return "Server Hello message"; |
1820 | 18.1k | } |
1821 | | |
1822 | | // ------------------------------------------------ |
1823 | | // SSLServerHelloMessage::ServerHelloTLSFingerprint |
1824 | | // ------------------------------------------------ |
1825 | | |
1826 | | std::string SSLServerHelloMessage::ServerHelloTLSFingerprint::toString() |
1827 | 8.63k | { |
1828 | 8.63k | std::stringstream tlsFingerprint; |
1829 | | |
1830 | | // add version and cipher suite |
1831 | 8.63k | tlsFingerprint << tlsVersion << "," << cipherSuite << ","; |
1832 | | |
1833 | | // add extensions |
1834 | 8.63k | bool firstExtension = true; |
1835 | 8.63k | for (const auto& iter : extensions) |
1836 | 14.4k | { |
1837 | 14.4k | tlsFingerprint << (firstExtension ? "" : "-") << iter; |
1838 | 14.4k | firstExtension = false; |
1839 | 14.4k | } |
1840 | | |
1841 | 8.63k | return tlsFingerprint.str(); |
1842 | 8.63k | } |
1843 | | |
1844 | | std::string SSLServerHelloMessage::ServerHelloTLSFingerprint::toMD5() |
1845 | 8.63k | { |
1846 | 8.63k | return toStringAndMD5().second; |
1847 | 8.63k | } |
1848 | | |
1849 | | std::pair<std::string, std::string> SSLServerHelloMessage::ServerHelloTLSFingerprint::toStringAndMD5() |
1850 | 8.63k | { |
1851 | 8.63k | std::string str = toString(); |
1852 | 8.63k | MD5 md5; |
1853 | 8.63k | return std::pair<std::string, std::string>(str, md5(str)); |
1854 | 8.63k | } |
1855 | | |
1856 | | // ----------------------------- |
1857 | | // SSLCertificateMessage methods |
1858 | | // ----------------------------- |
1859 | | |
1860 | | SSLCertificateMessage::SSLCertificateMessage(uint8_t* data, size_t dataLen, SSLHandshakeLayer* container) |
1861 | 18.6k | : SSLHandshakeMessage(data, dataLen, container) |
1862 | 18.6k | { |
1863 | 18.6k | if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3) // certificates length (3B) |
1864 | 79 | return; |
1865 | | |
1866 | 18.6k | size_t messageLen = getMessageLength(); |
1867 | | // read certificates length |
1868 | | // TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs |
1869 | 18.6k | uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t); |
1870 | 18.6k | uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos)); |
1871 | 18.6k | if (certificatesLength == 0) |
1872 | 314 | return; |
1873 | | |
1874 | | // advance to position of first certificate |
1875 | 18.2k | curPos += sizeof(uint16_t); |
1876 | | |
1877 | 62.0k | while (true) |
1878 | 62.0k | { |
1879 | | // try to read certificate length (3B) |
1880 | | // TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs |
1881 | 62.0k | if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen) |
1882 | 18.2k | break; |
1883 | | |
1884 | | // read certificate length |
1885 | 43.7k | curPos += sizeof(uint8_t); |
1886 | 43.7k | uint16_t certificateLength = be16toh(*(uint16_t*)(curPos)); |
1887 | | |
1888 | | // advance to start position of certificate |
1889 | 43.7k | curPos += sizeof(uint16_t); |
1890 | | |
1891 | | // if packet doesn't contain the full certificate, read only what you got from current position till the |
1892 | | // end of the packet |
1893 | 43.7k | bool certificateFull = true; |
1894 | 43.7k | if (curPos - data + certificateLength > (int)messageLen) |
1895 | 17.4k | { |
1896 | 17.4k | certificateLength = messageLen - (curPos - data); |
1897 | 17.4k | certificateFull = false; |
1898 | 17.4k | } |
1899 | | |
1900 | 43.7k | PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength); |
1901 | 43.7k | SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull); |
1902 | 43.7k | m_CertificateList.pushBack(newCert); |
1903 | | |
1904 | 43.7k | curPos += certificateLength; |
1905 | 43.7k | } |
1906 | 18.2k | } |
1907 | | |
1908 | | std::string SSLCertificateMessage::toString() const |
1909 | 6.02k | { |
1910 | 6.02k | return "Certificate message"; |
1911 | 6.02k | } |
1912 | | |
1913 | | int SSLCertificateMessage::getNumOfCertificates() const |
1914 | 0 | { |
1915 | 0 | return m_CertificateList.size(); |
1916 | 0 | } |
1917 | | |
1918 | | SSLx509Certificate* SSLCertificateMessage::getCertificate(int index) const |
1919 | 0 | { |
1920 | 0 | if (index < 0 || index > (int)m_CertificateList.size()) |
1921 | 0 | { |
1922 | 0 | PCPP_LOG_DEBUG("certificate index out of range: asked for index " << index << ", total size is " |
1923 | 0 | << m_CertificateList.size()); |
1924 | 0 | return nullptr; |
1925 | 0 | } |
1926 | | |
1927 | 0 | return const_cast<SSLx509Certificate*>(m_CertificateList.at(index)); |
1928 | 0 | } |
1929 | | |
1930 | | // ------------------------------ |
1931 | | // SSLHelloRequestMessage methods |
1932 | | // ------------------------------ |
1933 | | |
1934 | | std::string SSLHelloRequestMessage::toString() const |
1935 | 9.14k | { |
1936 | 9.14k | return "Hello Request message"; |
1937 | 9.14k | } |
1938 | | |
1939 | | // --------------------------------- |
1940 | | // SSLServerHelloDoneMessage methods |
1941 | | // --------------------------------- |
1942 | | |
1943 | | std::string SSLServerHelloDoneMessage::toString() const |
1944 | 2.22k | { |
1945 | 2.22k | return "Server Hello Done message"; |
1946 | 2.22k | } |
1947 | | |
1948 | | // ----------------------------------- |
1949 | | // SSLServerKeyExchangeMessage methods |
1950 | | // ----------------------------------- |
1951 | | |
1952 | | uint8_t* SSLServerKeyExchangeMessage::getServerKeyExchangeParams() const |
1953 | 0 | { |
1954 | 0 | if (getMessageLength() > sizeof(ssl_tls_handshake_layer)) |
1955 | 0 | return (m_Data + sizeof(ssl_tls_handshake_layer)); |
1956 | | |
1957 | 0 | return nullptr; |
1958 | 0 | } |
1959 | | |
1960 | | size_t SSLServerKeyExchangeMessage::getServerKeyExchangeParamsLength() const |
1961 | 0 | { |
1962 | 0 | size_t msgLength = getMessageLength(); |
1963 | 0 | if (msgLength <= sizeof(ssl_tls_handshake_layer)) |
1964 | 0 | return 0; |
1965 | | |
1966 | 0 | return msgLength - sizeof(ssl_tls_handshake_layer); |
1967 | 0 | } |
1968 | | |
1969 | | std::string SSLServerKeyExchangeMessage::toString() const |
1970 | 2.58k | { |
1971 | 2.58k | return "Server Key Exchange message"; |
1972 | 2.58k | } |
1973 | | |
1974 | | // ----------------------------------- |
1975 | | // SSLClientKeyExchangeMessage methods |
1976 | | // ----------------------------------- |
1977 | | |
1978 | | uint8_t* SSLClientKeyExchangeMessage::getClientKeyExchangeParams() const |
1979 | 0 | { |
1980 | 0 | if (getMessageLength() > sizeof(ssl_tls_handshake_layer)) |
1981 | 0 | return (m_Data + sizeof(ssl_tls_handshake_layer)); |
1982 | | |
1983 | 0 | return nullptr; |
1984 | 0 | } |
1985 | | |
1986 | | size_t SSLClientKeyExchangeMessage::getClientKeyExchangeParamsLength() const |
1987 | 0 | { |
1988 | 0 | size_t msgLength = getMessageLength(); |
1989 | 0 | if (msgLength <= sizeof(ssl_tls_handshake_layer)) |
1990 | 0 | return 0; |
1991 | | |
1992 | 0 | return msgLength - sizeof(ssl_tls_handshake_layer); |
1993 | 0 | } |
1994 | | |
1995 | | std::string SSLClientKeyExchangeMessage::toString() const |
1996 | 3.08k | { |
1997 | 3.08k | return "Client Key Exchange message"; |
1998 | 3.08k | } |
1999 | | |
2000 | | // ------------------------------------ |
2001 | | // SSLCertificateRequestMessage methods |
2002 | | // ------------------------------------ |
2003 | | |
2004 | | SSLCertificateRequestMessage::SSLCertificateRequestMessage(uint8_t* data, size_t dataLen, |
2005 | | SSLHandshakeLayer* container) |
2006 | 19.5k | : SSLHandshakeMessage(data, dataLen, container) |
2007 | 19.5k | { |
2008 | 19.5k | size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t); // certificate types count (1B) |
2009 | 19.5k | if (dataLen < minMessageSize) |
2010 | 6.34k | return; |
2011 | | |
2012 | 13.2k | size_t messageLen = getMessageLength(); |
2013 | 13.2k | if (messageLen < minMessageSize) |
2014 | 1.42k | return; |
2015 | | |
2016 | 11.8k | uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer)); |
2017 | | |
2018 | 11.8k | if (certificateTypesCount > messageLen - minMessageSize) |
2019 | 7.46k | certificateTypesCount = messageLen - minMessageSize; |
2020 | | |
2021 | 11.8k | uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t); |
2022 | 390k | for (uint8_t i = 0; i < certificateTypesCount; i++) |
2023 | 378k | { |
2024 | 378k | uint8_t certType = *(uint8_t*)(pos + i); |
2025 | 378k | if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64) |
2026 | 320k | m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN); |
2027 | 57.5k | else |
2028 | 57.5k | m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType)); |
2029 | 378k | } |
2030 | 11.8k | } |
2031 | | |
2032 | | std::vector<SSLClientCertificateType>& SSLCertificateRequestMessage::getCertificateTypes() |
2033 | 0 | { |
2034 | 0 | return m_ClientCertificateTypes; |
2035 | 0 | } |
2036 | | |
2037 | | uint8_t* SSLCertificateRequestMessage::getCertificateAuthorityData() const |
2038 | 0 | { |
2039 | 0 | size_t messageLen = getMessageLength(); |
2040 | 0 | size_t offset = |
2041 | 0 | sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) + m_ClientCertificateTypes.size() + sizeof(uint16_t); |
2042 | 0 | if (offset >= messageLen) |
2043 | 0 | return nullptr; |
2044 | | |
2045 | 0 | return m_Data + offset; |
2046 | 0 | } |
2047 | | |
2048 | | size_t SSLCertificateRequestMessage::getCertificateAuthorityLength() const |
2049 | 0 | { |
2050 | 0 | size_t messageLen = getMessageLength(); |
2051 | 0 | size_t offset = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) + m_ClientCertificateTypes.size(); |
2052 | 0 | if (offset + sizeof(uint16_t) >= messageLen) |
2053 | 0 | return 0; |
2054 | | |
2055 | 0 | uint16_t certAuthLen = be16toh(*(uint16_t*)(m_Data + offset)); |
2056 | |
|
2057 | 0 | offset += sizeof(uint16_t); |
2058 | |
|
2059 | 0 | if (messageLen - offset < certAuthLen) |
2060 | 0 | return messageLen - offset; |
2061 | | |
2062 | 0 | return certAuthLen; |
2063 | 0 | } |
2064 | | |
2065 | | std::string SSLCertificateRequestMessage::toString() const |
2066 | 5.91k | { |
2067 | 5.91k | return "Certificate Request message"; |
2068 | 5.91k | } |
2069 | | |
2070 | | // ----------------------------------- |
2071 | | // SSLCertificateVerifyMessage methods |
2072 | | // ----------------------------------- |
2073 | | |
2074 | | uint8_t* SSLCertificateVerifyMessage::getSignedHash() const |
2075 | 0 | { |
2076 | 0 | if (getMessageLength() > sizeof(ssl_tls_handshake_layer)) |
2077 | 0 | return (m_Data + sizeof(ssl_tls_handshake_layer)); |
2078 | | |
2079 | 0 | return nullptr; |
2080 | 0 | } |
2081 | | |
2082 | | size_t SSLCertificateVerifyMessage::getSignedHashLength() const |
2083 | 0 | { |
2084 | 0 | size_t msgLength = getMessageLength(); |
2085 | 0 | if (msgLength <= sizeof(ssl_tls_handshake_layer)) |
2086 | 0 | return 0; |
2087 | | |
2088 | 0 | return msgLength - sizeof(ssl_tls_handshake_layer); |
2089 | 0 | } |
2090 | | |
2091 | | std::string SSLCertificateVerifyMessage::toString() const |
2092 | 368 | { |
2093 | 368 | return "Certificate Verify message"; |
2094 | 368 | } |
2095 | | |
2096 | | // -------------------------- |
2097 | | // SSLFinishedMessage methods |
2098 | | // -------------------------- |
2099 | | |
2100 | | uint8_t* SSLFinishedMessage::getSignedHash() const |
2101 | 0 | { |
2102 | 0 | if (getMessageLength() > sizeof(ssl_tls_handshake_layer)) |
2103 | 0 | return (m_Data + sizeof(ssl_tls_handshake_layer)); |
2104 | | |
2105 | 0 | return nullptr; |
2106 | 0 | } |
2107 | | |
2108 | | size_t SSLFinishedMessage::getSignedHashLength() const |
2109 | 0 | { |
2110 | 0 | size_t msgLength = getMessageLength(); |
2111 | 0 | if (msgLength <= sizeof(ssl_tls_handshake_layer)) |
2112 | 0 | return 0; |
2113 | | |
2114 | 0 | return msgLength - sizeof(ssl_tls_handshake_layer); |
2115 | 0 | } |
2116 | | |
2117 | | std::string SSLFinishedMessage::toString() const |
2118 | 430 | { |
2119 | 430 | return "Finished message"; |
2120 | 430 | } |
2121 | | |
2122 | | // ---------------------------------- |
2123 | | // SSLNewSessionTicketMessage methods |
2124 | | // ---------------------------------- |
2125 | | |
2126 | | uint8_t* SSLNewSessionTicketMessage::getSessionTicketData() const |
2127 | 0 | { |
2128 | 0 | if (getMessageLength() > sizeof(ssl_tls_handshake_layer)) |
2129 | 0 | return (m_Data + sizeof(ssl_tls_handshake_layer)); |
2130 | | |
2131 | 0 | return nullptr; |
2132 | 0 | } |
2133 | | |
2134 | | size_t SSLNewSessionTicketMessage::getSessionTicketDataLength() const |
2135 | 0 | { |
2136 | 0 | size_t msgLength = getMessageLength(); |
2137 | 0 | if (msgLength <= sizeof(ssl_tls_handshake_layer)) |
2138 | 0 | return 0; |
2139 | | |
2140 | 0 | return msgLength - sizeof(ssl_tls_handshake_layer); |
2141 | 0 | } |
2142 | | |
2143 | | std::string SSLNewSessionTicketMessage::toString() const |
2144 | 1.09k | { |
2145 | 1.09k | return "New Session Ticket message"; |
2146 | 1.09k | } |
2147 | | |
2148 | | // ------------------------- |
2149 | | // SSLUnknownMessage methods |
2150 | | // ------------------------- |
2151 | | |
2152 | | SSLHandshakeType SSLUnknownMessage::getHandshakeType() const |
2153 | 0 | { |
2154 | | // if message type is unknown, it may be some encrypted message so message type isn't necessarily written |
2155 | | // in clear in the first byte. So always return SSL_HANDSHAKE_UNKNOWN |
2156 | 0 | return SSL_HANDSHAKE_UNKNOWN; |
2157 | 0 | } |
2158 | | |
2159 | | size_t SSLUnknownMessage::getMessageLength() const |
2160 | 130k | { |
2161 | | // if message type is unknown, it may be some encrypted message so message length isn't necessarily written |
2162 | | // in clear. So in this case assume message is in length of all remaining data |
2163 | 130k | return m_DataLen; |
2164 | 130k | } |
2165 | | |
2166 | | std::string SSLUnknownMessage::toString() const |
2167 | 20.2k | { |
2168 | 20.2k | return "Unknown message"; |
2169 | 20.2k | } |
2170 | | |
2171 | | } // namespace pcpp |