| 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 "net/quic/core/crypto/aead_base_decrypter.h" | 5 #include "net/quic/core/crypto/aead_base_decrypter.h" |
| 6 | 6 |
| 7 #include <memory> | 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_flags.h" | |
| 11 #include "net/quic/core/quic_utils.h" | 10 #include "net/quic/core/quic_utils.h" |
| 12 #include "third_party/boringssl/src/include/openssl/err.h" | 11 #include "third_party/boringssl/src/include/openssl/err.h" |
| 13 #include "third_party/boringssl/src/include/openssl/evp.h" | 12 #include "third_party/boringssl/src/include/openssl/evp.h" |
| 14 | 13 |
| 15 using base::StringPiece; | 14 using base::StringPiece; |
| 16 using std::string; | 15 using std::string; |
| 17 | 16 |
| 18 namespace net { | 17 namespace net { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { | 160 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { |
| 162 if (nonce_prefix_size_ == 0) { | 161 if (nonce_prefix_size_ == 0) { |
| 163 return StringPiece(); | 162 return StringPiece(); |
| 164 } | 163 } |
| 165 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), | 164 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), |
| 166 nonce_prefix_size_); | 165 nonce_prefix_size_); |
| 167 } | 166 } |
| 168 | 167 |
| 169 } // namespace net | 168 } // namespace net |
| OLD | NEW |