Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: net/quic/core/crypto/crypto_secret_boxer.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_secret_boxer.h ('k') | net/quic/core/crypto/crypto_secret_boxer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698