| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_HANDSHAKE_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
| 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 QuicTag key_exchange; | 36 QuicTag key_exchange; |
| 37 QuicTag aead; | 37 QuicTag aead; |
| 38 std::string initial_premaster_secret; | 38 std::string initial_premaster_secret; |
| 39 std::string forward_secure_premaster_secret; | 39 std::string forward_secure_premaster_secret; |
| 40 CrypterPair initial_crypters; | 40 CrypterPair initial_crypters; |
| 41 CrypterPair forward_secure_crypters; | 41 CrypterPair forward_secure_crypters; |
| 42 // Normalized SNI: converted to lower case and trailing '.' removed. | 42 // Normalized SNI: converted to lower case and trailing '.' removed. |
| 43 std::string sni; | 43 std::string sni; |
| 44 std::string client_nonce; | 44 std::string client_nonce; |
| 45 std::string server_nonce; | 45 std::string server_nonce; |
| 46 // hkdf_input_suffix contains the HKDF input following the label: the GUID, | 46 // hkdf_input_suffix contains the HKDF input following the label: the |
| 47 // client hello and server config. This is only populated in the client | 47 // ConnectionId, client hello and server config. This is only populated in the |
| 48 // because only the client needs to derive the forward secure keys at a later | 48 // client because only the client needs to derive the forward secure keys at a |
| 49 // time from the initial keys. | 49 // later time from the initial keys. |
| 50 std::string hkdf_input_suffix; | 50 std::string hkdf_input_suffix; |
| 51 // cached_certs contains the cached certificates that a client used when | 51 // cached_certs contains the cached certificates that a client used when |
| 52 // sending a client hello. | 52 // sending a client hello. |
| 53 std::vector<std::string> cached_certs; | 53 std::vector<std::string> cached_certs; |
| 54 // client_key_exchange is used by clients to store the ephemeral KeyExchange | 54 // client_key_exchange is used by clients to store the ephemeral KeyExchange |
| 55 // for the connection. | 55 // for the connection. |
| 56 scoped_ptr<KeyExchange> client_key_exchange; | 56 scoped_ptr<KeyExchange> client_key_exchange; |
| 57 // channel_id is set by servers to a ChannelID key when the client correctly | 57 // channel_id is set by servers to a ChannelID key when the client correctly |
| 58 // proves possession of the corresponding private key. It consists of 32 | 58 // proves possession of the corresponding private key. It consists of 32 |
| 59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values | 59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values |
| (...skipping 29 matching lines...) Expand all Loading... |
| 89 | 89 |
| 90 const CommonCertSets* common_cert_sets; | 90 const CommonCertSets* common_cert_sets; |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); | 93 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace net | 96 } // namespace net |
| 97 | 97 |
| 98 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 98 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
| OLD | NEW |