OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 typedef std::string ServerConfigID; | 27 typedef std::string ServerConfigID; |
28 | 28 |
29 const QuicTag kCHLO = TAG('C', 'H', 'L', 'O'); // Client hello | 29 const QuicTag kCHLO = TAG('C', 'H', 'L', 'O'); // Client hello |
30 const QuicTag kSHLO = TAG('S', 'H', 'L', 'O'); // Server hello | 30 const QuicTag kSHLO = TAG('S', 'H', 'L', 'O'); // Server hello |
31 const QuicTag kSCFG = TAG('S', 'C', 'F', 'G'); // Server config | 31 const QuicTag kSCFG = TAG('S', 'C', 'F', 'G'); // Server config |
32 const QuicTag kREJ = TAG('R', 'E', 'J', '\0'); // Reject | 32 const QuicTag kREJ = TAG('R', 'E', 'J', '\0'); // Reject |
33 const QuicTag kCETV = TAG('C', 'E', 'T', 'V'); // Client encrypted tag-value | 33 const QuicTag kCETV = TAG('C', 'E', 'T', 'V'); // Client encrypted tag-value |
34 // pairs | 34 // pairs |
35 const QuicTag kPRST = TAG('P', 'R', 'S', 'T'); // Public reset | 35 const QuicTag kPRST = TAG('P', 'R', 'S', 'T'); // Public reset |
| 36 const QuicTag kSCUP = TAG('S', 'C', 'U', 'P'); // Server config update. |
36 | 37 |
37 // Key exchange methods | 38 // Key exchange methods |
38 const QuicTag kP256 = TAG('P', '2', '5', '6'); // ECDH, Curve P-256 | 39 const QuicTag kP256 = TAG('P', '2', '5', '6'); // ECDH, Curve P-256 |
39 const QuicTag kC255 = TAG('C', '2', '5', '5'); // ECDH, Curve25519 | 40 const QuicTag kC255 = TAG('C', '2', '5', '5'); // ECDH, Curve25519 |
40 | 41 |
41 // AEAD algorithms | 42 // AEAD algorithms |
42 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm | 43 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm |
43 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 | 44 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 |
44 const QuicTag kCC12 = TAG('C', 'C', '1', '2'); // ChaCha20 + Poly1305 | 45 const QuicTag kCC12 = TAG('C', 'C', '1', '2'); // ChaCha20 + Poly1305 |
45 | 46 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // amplification factor of any mirror DoS attack. | 162 // amplification factor of any mirror DoS attack. |
162 // | 163 // |
163 // A client may pad an inchoate client hello to a size larger than | 164 // A client may pad an inchoate client hello to a size larger than |
164 // kClientHelloMinimumSize to make it more likely to receive a complete | 165 // kClientHelloMinimumSize to make it more likely to receive a complete |
165 // rejection message. | 166 // rejection message. |
166 const size_t kClientHelloMinimumSize = 1024; | 167 const size_t kClientHelloMinimumSize = 1024; |
167 | 168 |
168 } // namespace net | 169 } // namespace net |
169 | 170 |
170 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 171 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |