OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <string.h> | 5 #include "net/quic/core/crypto/aead_base_encrypter.h" |
6 | 6 |
7 #include <memory> | 7 #include <string> |
8 | 8 |
9 #include "net/quic/core/crypto/aead_base_encrypter.h" | |
10 #include "net/quic/core/quic_flags.h" | |
11 #include "net/quic/core/quic_utils.h" | 9 #include "net/quic/core/quic_utils.h" |
12 #include "third_party/boringssl/src/include/openssl/err.h" | 10 #include "third_party/boringssl/src/include/openssl/err.h" |
13 #include "third_party/boringssl/src/include/openssl/evp.h" | 11 #include "third_party/boringssl/src/include/openssl/evp.h" |
14 | 12 |
15 using base::StringPiece; | 13 using base::StringPiece; |
16 | 14 |
17 namespace net { | 15 namespace net { |
18 | 16 |
19 namespace { | 17 namespace { |
20 | 18 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 154 |
157 StringPiece AeadBaseEncrypter::GetNoncePrefix() const { | 155 StringPiece AeadBaseEncrypter::GetNoncePrefix() const { |
158 if (nonce_prefix_size_ == 0) { | 156 if (nonce_prefix_size_ == 0) { |
159 return StringPiece(); | 157 return StringPiece(); |
160 } | 158 } |
161 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), | 159 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), |
162 nonce_prefix_size_); | 160 nonce_prefix_size_); |
163 } | 161 } |
164 | 162 |
165 } // namespace net | 163 } // namespace net |
OLD | NEW |