| 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/crypto/crypto_secret_boxer.h" | 5 #include "net/quic/core/crypto/crypto_secret_boxer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "net/quic/crypto/aes_128_gcm_12_decrypter.h" | 10 #include "net/quic/core/crypto/aes_128_gcm_12_decrypter.h" |
| 11 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" | 11 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" |
| 12 #include "net/quic/crypto/crypto_protocol.h" | 12 #include "net/quic/core/crypto/crypto_protocol.h" |
| 13 #include "net/quic/crypto/quic_decrypter.h" | 13 #include "net/quic/core/crypto/quic_decrypter.h" |
| 14 #include "net/quic/crypto/quic_encrypter.h" | 14 #include "net/quic/core/crypto/quic_encrypter.h" |
| 15 #include "net/quic/crypto/quic_random.h" | 15 #include "net/quic/core/crypto/quic_random.h" |
| 16 | 16 |
| 17 using base::StringPiece; | 17 using base::StringPiece; |
| 18 using std::string; | 18 using std::string; |
| 19 using std::vector; | 19 using std::vector; |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 // Defined kKeySize for GetKeySize() and SetKey(). | 23 // Defined kKeySize for GetKeySize() and SetKey(). |
| 24 static const size_t kKeySize = 16; | 24 static const size_t kKeySize = 16; |
| 25 | 25 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 return false; | 123 return false; |
| 124 } | 124 } |
| 125 | 125 |
| 126 out_storage->resize(plaintext_length); | 126 out_storage->resize(plaintext_length); |
| 127 out_storage->assign(plaintext, plaintext_length); | 127 out_storage->assign(plaintext, plaintext_length); |
| 128 out->set(out_storage->data(), plaintext_length); | 128 out->set(out_storage->data(), plaintext_length); |
| 129 return true; | 129 return true; |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace net | 132 } // namespace net |
| OLD | NEW |