OLD | NEW |
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 Loading... |
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 |
OLD | NEW |