| 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 #ifndef NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ | 5 #ifndef NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ |
| 6 #define NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ | 6 #define NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 15 #include "net/quic/crypto/key_exchange.h" | 15 #include "net/quic/core/crypto/key_exchange.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class QuicRandom; | 19 class QuicRandom; |
| 20 | 20 |
| 21 // Curve25519KeyExchange implements a KeyExchange using elliptic-curve | 21 // Curve25519KeyExchange implements a KeyExchange using elliptic-curve |
| 22 // Diffie-Hellman on curve25519. See http://cr.yp.to/ecdh.html | 22 // Diffie-Hellman on curve25519. See http://cr.yp.to/ecdh.html |
| 23 class NET_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange { | 23 class NET_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange { |
| 24 public: | 24 public: |
| 25 ~Curve25519KeyExchange() override; | 25 ~Curve25519KeyExchange() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 42 private: | 42 private: |
| 43 Curve25519KeyExchange(); | 43 Curve25519KeyExchange(); |
| 44 | 44 |
| 45 uint8_t private_key_[32]; | 45 uint8_t private_key_[32]; |
| 46 uint8_t public_key_[32]; | 46 uint8_t public_key_[32]; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace net | 49 } // namespace net |
| 50 | 50 |
| 51 #endif // NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ | 51 #endif // NET_QUIC_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ |
| OLD | NEW |