| 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/core/crypto/curve25519_key_exchange.h" | 5 #include "net/quic/core/crypto/curve25519_key_exchange.h" |
| 6 | 6 |
| 7 #include <cstdint> | 7 #include <cstdint> |
| 8 | 8 |
| 9 #include "base/logging.h" | |
| 10 #include "net/quic/core/crypto/quic_random.h" | 9 #include "net/quic/core/crypto/quic_random.h" |
| 11 #include "third_party/boringssl/src/include/openssl/curve25519.h" | 10 #include "third_party/boringssl/src/include/openssl/curve25519.h" |
| 12 | 11 |
| 13 using base::StringPiece; | 12 using base::StringPiece; |
| 14 using std::string; | 13 using std::string; |
| 15 | 14 |
| 16 namespace net { | 15 namespace net { |
| 17 | 16 |
| 18 Curve25519KeyExchange::Curve25519KeyExchange() {} | 17 Curve25519KeyExchange::Curve25519KeyExchange() {} |
| 19 | 18 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 StringPiece Curve25519KeyExchange::public_value() const { | 71 StringPiece Curve25519KeyExchange::public_value() const { |
| 73 return StringPiece(reinterpret_cast<const char*>(public_key_), | 72 return StringPiece(reinterpret_cast<const char*>(public_key_), |
| 74 sizeof(public_key_)); | 73 sizeof(public_key_)); |
| 75 } | 74 } |
| 76 | 75 |
| 77 QuicTag Curve25519KeyExchange::tag() const { | 76 QuicTag Curve25519KeyExchange::tag() const { |
| 78 return kC255; | 77 return kC255; |
| 79 } | 78 } |
| 80 | 79 |
| 81 } // namespace net | 80 } // namespace net |
| OLD | NEW |