| 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 29 matching lines...) Expand all Loading... |
| 40 // AEAD algorithms | 40 // AEAD algorithms |
| 41 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm | 41 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm |
| 42 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 | 42 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 |
| 43 const QuicTag kCC12 = TAG('C', 'C', '1', '2'); // ChaCha20 + Poly1305 | 43 const QuicTag kCC12 = TAG('C', 'C', '1', '2'); // ChaCha20 + Poly1305 |
| 44 | 44 |
| 45 // Congestion control feedback types | 45 // Congestion control feedback types |
| 46 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic | 46 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic |
| 47 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic | 47 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic |
| 48 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival | 48 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival |
| 49 | 49 |
| 50 // Congestion control options |
| 51 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP |
| 52 |
| 50 // Loss detection algorithm types | 53 // Loss detection algorithm types |
| 51 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting | 54 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting |
| 52 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based | 55 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based |
| 53 | 56 |
| 54 // Proof types (i.e. certificate types) | 57 // Proof types (i.e. certificate types) |
| 55 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R | 58 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R |
| 56 // is allowed and is equivalent to specifying only kX509. | 59 // is allowed and is equivalent to specifying only kX509. |
| 57 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key | 60 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key |
| 58 // types | 61 // types |
| 59 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys | 62 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys |
| 60 // only | 63 // only |
| 61 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. | 64 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. |
| 62 | 65 |
| 63 // Client hello tags | 66 // Client hello tags |
| 64 const QuicTag kVER = TAG('V', 'E', 'R', '\0'); // Version (new) | 67 const QuicTag kVER = TAG('V', 'E', 'R', '\0'); // Version (new) |
| 65 const QuicTag kNONC = TAG('N', 'O', 'N', 'C'); // The client's nonce | 68 const QuicTag kNONC = TAG('N', 'O', 'N', 'C'); // The client's nonce |
| 66 const QuicTag kKEXS = TAG('K', 'E', 'X', 'S'); // Key exchange methods | 69 const QuicTag kKEXS = TAG('K', 'E', 'X', 'S'); // Key exchange methods |
| 67 const QuicTag kAEAD = TAG('A', 'E', 'A', 'D'); // Authenticated | 70 const QuicTag kAEAD = TAG('A', 'E', 'A', 'D'); // Authenticated |
| 68 // encryption algorithms | 71 // encryption algorithms |
| 69 const QuicTag kCGST = TAG('C', 'G', 'S', 'T'); // Congestion control | 72 const QuicTag kCGST = TAG('C', 'G', 'S', 'T'); // Congestion control |
| 70 // feedback types | 73 // feedback types |
| 74 const QuicTag kCOPT = TAG('C', 'O', 'P', 'T'); // Congestion control options |
| 71 // kLOSS was 'L', 'O', 'S', 'S', but was changed from a tag vector to a tag. | 75 // kLOSS was 'L', 'O', 'S', 'S', but was changed from a tag vector to a tag. |
| 72 const QuicTag kLOSS = TAG('L', 'O', 'S', 'A'); // Loss detection algorithms | 76 const QuicTag kLOSS = TAG('L', 'O', 'S', 'A'); // Loss detection algorithms |
| 73 const QuicTag kICSL = TAG('I', 'C', 'S', 'L'); // Idle connection state | 77 const QuicTag kICSL = TAG('I', 'C', 'S', 'L'); // Idle connection state |
| 74 // lifetime | 78 // lifetime |
| 75 const QuicTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout | 79 const QuicTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout |
| 76 const QuicTag kMSPC = TAG('M', 'S', 'P', 'C'); // Max streams per connection. | 80 const QuicTag kMSPC = TAG('M', 'S', 'P', 'C'); // Max streams per connection. |
| 77 const QuicTag kIRTT = TAG('I', 'R', 'T', 'T'); // Estimated initial RTT in us. | 81 const QuicTag kIRTT = TAG('I', 'R', 'T', 'T'); // Estimated initial RTT in us. |
| 78 const QuicTag kSWND = TAG('S', 'W', 'N', 'D'); // Server's Initial congestion | 82 const QuicTag kSWND = TAG('S', 'W', 'N', 'D'); // Server's Initial congestion |
| 79 // window. | 83 // window. |
| 80 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name | 84 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // amplification factor of any mirror DoS attack. | 147 // amplification factor of any mirror DoS attack. |
| 144 // | 148 // |
| 145 // A client may pad an inchoate client hello to a size larger than | 149 // A client may pad an inchoate client hello to a size larger than |
| 146 // kClientHelloMinimumSize to make it more likely to receive a complete | 150 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 147 // rejection message. | 151 // rejection message. |
| 148 const size_t kClientHelloMinimumSize = 1024; | 152 const size_t kClientHelloMinimumSize = 1024; |
| 149 | 153 |
| 150 } // namespace net | 154 } // namespace net |
| 151 | 155 |
| 152 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 156 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |