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

Side by Side Diff: net/quic/crypto/null_encrypter.cc

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/crypto/null_encrypter.h ('k') | net/quic/crypto/quic_decrypter.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/crypto/null_encrypter.h" 5 #include "net/quic/crypto/null_encrypter.h"
6 #include "net/quic/quic_data_writer.h" 6 #include "net/quic/quic_data_writer.h"
7 #include "net/quic/quic_utils.h" 7 #include "net/quic/quic_utils.h"
8 8
9 using base::StringPiece; 9 using base::StringPiece;
10 using std::string; 10 using std::string;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 size_t NullEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const { 46 size_t NullEncrypter::GetMaxPlaintextSize(size_t ciphertext_size) const {
47 return ciphertext_size - kHashSize; 47 return ciphertext_size - kHashSize;
48 } 48 }
49 49
50 size_t NullEncrypter::GetCiphertextSize(size_t plaintext_size) const { 50 size_t NullEncrypter::GetCiphertextSize(size_t plaintext_size) const {
51 return plaintext_size + kHashSize; 51 return plaintext_size + kHashSize;
52 } 52 }
53 53
54 StringPiece NullEncrypter::GetKey() const {
55 return StringPiece();
56 }
57
58 StringPiece NullEncrypter::GetNoncePrefix() const {
59 return StringPiece();
60 }
61
54 } // namespace net 62 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/null_encrypter.h ('k') | net/quic/crypto/quic_decrypter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698