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

Side by Side Diff: net/quic/core/crypto/crypto_protocol.h

Issue 2566783002: Various formatting cleanups to net/quic/crypto and net/quic/congestion_control (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
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_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ 5 #ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_
6 #define NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ 6 #define NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <cstddef>
9 #include <stdint.h>
10
11 #include <string> 9 #include <string>
12 10
13 #include "net/quic/core/quic_tag.h" 11 #include "net/quic/core/quic_tag.h"
14 12
15 // Version and Crypto tags are written to the wire with a big-endian 13 // Version and Crypto tags are written to the wire with a big-endian
16 // representation of the name of the tag. For example 14 // representation of the name of the tag. For example
17 // the client hello tag (CHLO) will be written as the 15 // the client hello tag (CHLO) will be written as the
18 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is 16 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is
19 // stored in memory as a little endian uint32_t, we need 17 // stored in memory as a little endian uint32_t, we need
20 // to reverse the order of the bytes. 18 // to reverse the order of the bytes.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // amplification factor of any mirror DoS attack. 265 // amplification factor of any mirror DoS attack.
268 // 266 //
269 // A client may pad an inchoate client hello to a size larger than 267 // A client may pad an inchoate client hello to a size larger than
270 // kClientHelloMinimumSize to make it more likely to receive a complete 268 // kClientHelloMinimumSize to make it more likely to receive a complete
271 // rejection message. 269 // rejection message.
272 const size_t kClientHelloMinimumSize = 1024; 270 const size_t kClientHelloMinimumSize = 1024;
273 271
274 } // namespace net 272 } // namespace net
275 273
276 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ 274 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_handshake_message_test.cc ('k') | net/quic/core/crypto/crypto_secret_boxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698