| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const CryptoTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout | 65 const CryptoTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout |
| 66 const CryptoTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name | 66 const CryptoTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name |
| 67 // indication | 67 // indication |
| 68 const CryptoTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values | 68 const CryptoTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values |
| 69 const CryptoTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id | 69 const CryptoTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id |
| 70 const CryptoTag kSRCT = TAG('S', 'R', 'C', 'T'); // Source-address token | 70 const CryptoTag kSRCT = TAG('S', 'R', 'C', 'T'); // Source-address token |
| 71 const CryptoTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. | 71 const CryptoTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. |
| 72 const CryptoTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. | 72 const CryptoTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. |
| 73 const CryptoTag kCERT = TAG('C', 'E', 'R', 'T'); // Certificate chain | 73 const CryptoTag kCERT = TAG('C', 'E', 'R', 'T'); // Certificate chain |
| 74 const CryptoTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). | 74 const CryptoTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). |
| 75 const CryptoTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set |
| 76 const CryptoTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate |
| 75 | 77 |
| 76 #undef TAG | 78 #undef TAG |
| 77 | 79 |
| 78 const size_t kMaxEntries = 128; // Max number of entries in a message. | 80 const size_t kMaxEntries = 128; // Max number of entries in a message. |
| 79 | 81 |
| 80 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. | 82 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. |
| 81 | 83 |
| 82 const size_t kOrbitSize = 8; // Number of bytes in an orbit value. | 84 const size_t kOrbitSize = 8; // Number of bytes in an orbit value. |
| 83 | 85 |
| 84 // kProofSignatureLabel is prepended to server configs before signing to avoid | 86 // kProofSignatureLabel is prepended to server configs before signing to avoid |
| 85 // any cross-protocol attacks on the signature. | 87 // any cross-protocol attacks on the signature. |
| 86 const char kProofSignatureLabel[] = "QUIC server config signature"; | 88 const char kProofSignatureLabel[] = "QUIC server config signature"; |
| 87 | 89 |
| 88 } // namespace net | 90 } // namespace net |
| 89 | 91 |
| 90 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 92 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |