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 <openssl/err.h> | 5 #include <openssl/err.h> |
6 #include <openssl/evp.h> | 6 #include <openssl/evp.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "net/quic/crypto/aead_base_decrypter.h" | 10 #include "net/quic/core/crypto/aead_base_decrypter.h" |
11 #include "net/quic/quic_bug_tracker.h" | 11 #include "net/quic/core/quic_bug_tracker.h" |
12 #include "net/quic/quic_flags.h" | 12 #include "net/quic/core/quic_flags.h" |
13 #include "net/quic/quic_utils.h" | 13 #include "net/quic/core/quic_utils.h" |
14 | 14 |
15 using base::StringPiece; | 15 using base::StringPiece; |
16 using std::string; | 16 using std::string; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Clear OpenSSL error stack. | 22 // Clear OpenSSL error stack. |
23 void ClearOpenSslErrors() { | 23 void ClearOpenSslErrors() { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { | 159 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { |
160 if (nonce_prefix_size_ == 0) { | 160 if (nonce_prefix_size_ == 0) { |
161 return StringPiece(); | 161 return StringPiece(); |
162 } | 162 } |
163 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), | 163 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), |
164 nonce_prefix_size_); | 164 nonce_prefix_size_); |
165 } | 165 } |
166 | 166 |
167 } // namespace net | 167 } // namespace net |
OLD | NEW |