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

Side by Side Diff: net/quic/core/crypto/p256_key_exchange.h

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
« no previous file with comments | « net/quic/core/crypto/null_encrypter_test.cc ('k') | net/quic/core/crypto/p256_key_exchange.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_ 5 #ifndef NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_
6 #define NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_ 6 #define NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "crypto/openssl_util.h" 15 #include "crypto/openssl_util.h"
16 #include "crypto/scoped_openssl_types.h" 16 #include "crypto/scoped_openssl_types.h"
17 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
18 #include "net/quic/crypto/key_exchange.h" 18 #include "net/quic/core/crypto/key_exchange.h"
19 19
20 20
21 namespace net { 21 namespace net {
22 22
23 // P256KeyExchange implements a KeyExchange using elliptic-curve 23 // P256KeyExchange implements a KeyExchange using elliptic-curve
24 // Diffie-Hellman on NIST P-256. 24 // Diffie-Hellman on NIST P-256.
25 class NET_EXPORT_PRIVATE P256KeyExchange : public KeyExchange { 25 class NET_EXPORT_PRIVATE P256KeyExchange : public KeyExchange {
26 public: 26 public:
27 ~P256KeyExchange() override; 27 ~P256KeyExchange() override;
28 28
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 crypto::ScopedEC_KEY private_key_; 61 crypto::ScopedEC_KEY private_key_;
62 // The public key stored as an uncompressed P-256 point. 62 // The public key stored as an uncompressed P-256 point.
63 uint8_t public_key_[kUncompressedP256PointBytes]; 63 uint8_t public_key_[kUncompressedP256PointBytes];
64 64
65 DISALLOW_COPY_AND_ASSIGN(P256KeyExchange); 65 DISALLOW_COPY_AND_ASSIGN(P256KeyExchange);
66 }; 66 };
67 67
68 } // namespace net 68 } // namespace net
69 #endif // NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_ 69 #endif // NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/null_encrypter_test.cc ('k') | net/quic/core/crypto/p256_key_exchange.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698