Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: net/quic/crypto/quic_crypto_client_config.h

Issue 1904213002: QUIC: support diversified keys with version 33. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hkdf
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/crypto/null_decrypter.cc ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_QUIC_CRYPTO_CLIENT_CONFIG_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // filled with the results of the handshake that the server is expected to 227 // filled with the results of the handshake that the server is expected to
228 // accept. |preferred_version| is the version of the QUIC protocol that this 228 // accept. |preferred_version| is the version of the QUIC protocol that this
229 // client chose to use initially. This allows the server to detect downgrade 229 // client chose to use initially. This allows the server to detect downgrade
230 // attacks. 230 // attacks.
231 // 231 //
232 // If |channel_id_key| is not null, it is used to sign a secret value derived 232 // If |channel_id_key| is not null, it is used to sign a secret value derived
233 // from the client and server's keys, and the Channel ID public key and the 233 // from the client and server's keys, and the Channel ID public key and the
234 // signature are placed in the CETV value of the CHLO. 234 // signature are placed in the CETV value of the CHLO.
235 QuicErrorCode FillClientHello(const QuicServerId& server_id, 235 QuicErrorCode FillClientHello(const QuicServerId& server_id,
236 QuicConnectionId connection_id, 236 QuicConnectionId connection_id,
237 const QuicVersion actual_version,
237 const QuicVersion preferred_version, 238 const QuicVersion preferred_version,
238 const CachedState* cached, 239 const CachedState* cached,
239 QuicWallTime now, 240 QuicWallTime now,
240 QuicRandom* rand, 241 QuicRandom* rand,
241 const ChannelIDKey* channel_id_key, 242 const ChannelIDKey* channel_id_key,
242 QuicCryptoNegotiatedParameters* out_params, 243 QuicCryptoNegotiatedParameters* out_params,
243 CryptoHandshakeMessage* out, 244 CryptoHandshakeMessage* out,
244 std::string* error_details) const; 245 std::string* error_details) const;
245 246
246 // ProcessRejection processes a REJ message from a server and updates the 247 // ProcessRejection processes a REJ message from a server and updates the
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 375
375 // The |user_agent_id_| passed in QUIC's CHLO message. 376 // The |user_agent_id_| passed in QUIC's CHLO message.
376 std::string user_agent_id_; 377 std::string user_agent_id_;
377 378
378 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 379 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
379 }; 380 };
380 381
381 } // namespace net 382 } // namespace net
382 383
383 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 384 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/null_decrypter.cc ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698