| 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/crypto/aead_base_decrypter.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { | 119 StringPiece AeadBaseDecrypter::GetNoncePrefix() const { |
| 120 if (nonce_prefix_size_ == 0) { | 120 if (nonce_prefix_size_ == 0) { |
| 121 return StringPiece(); | 121 return StringPiece(); |
| 122 } | 122 } |
| 123 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), | 123 return StringPiece(reinterpret_cast<const char*>(nonce_prefix_), |
| 124 nonce_prefix_size_); | 124 nonce_prefix_size_); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace net | 127 } // namespace net |
| OLD | NEW |