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

Side by Side Diff: net/quic/core/crypto/null_decrypter.cc

Issue 2566783002: Various formatting cleanups to net/quic/crypto and net/quic/congestion_control (Closed)
Patch Set: Rebase Created 3 years, 12 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/core/crypto/null_decrypter.h ('k') | net/quic/core/crypto/null_encrypter.h » ('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 (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 #include "net/quic/core/crypto/null_decrypter.h" 5 #include "net/quic/core/crypto/null_decrypter.h"
6 6
7 #include <stdint.h> 7 #include <cstdint>
8 8
9 #include "net/quic/core/quic_bug_tracker.h" 9 #include "net/quic/core/quic_bug_tracker.h"
10 #include "net/quic/core/quic_data_reader.h" 10 #include "net/quic/core/quic_data_reader.h"
11 #include "net/quic/core/quic_utils.h" 11 #include "net/quic/core/quic_utils.h"
12 12
13 using base::StringPiece; 13 using base::StringPiece;
14 using std::string; 14 using std::string;
15 15
16 namespace net { 16 namespace net {
17 17
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } else { 109 } else {
110 correct_hash = QuicUtils::FNV1a_128_Hash_Two(data1, data2); 110 correct_hash = QuicUtils::FNV1a_128_Hash_Two(data1, data2);
111 } 111 }
112 uint128 mask = MakeUint128(UINT64_C(0x0), UINT64_C(0xffffffff)); 112 uint128 mask = MakeUint128(UINT64_C(0x0), UINT64_C(0xffffffff));
113 mask <<= 96; 113 mask <<= 96;
114 correct_hash &= ~mask; 114 correct_hash &= ~mask;
115 return correct_hash; 115 return correct_hash;
116 } 116 }
117 117
118 } // namespace net 118 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/null_decrypter.h ('k') | net/quic/core/crypto/null_encrypter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698