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/curve25519_key_exchange.h" | 5 #include "net/quic/crypto/curve25519_key_exchange.h" |
6 | 6 |
| 7 #include "base/basictypes.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "crypto/curve25519.h" | 9 #include "crypto/curve25519.h" |
9 #include "net/quic/crypto/quic_random.h" | 10 #include "net/quic/crypto/quic_random.h" |
10 | 11 |
11 using base::StringPiece; | 12 using base::StringPiece; |
12 using std::string; | 13 using std::string; |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 Curve25519KeyExchange::Curve25519KeyExchange() {} | 17 Curve25519KeyExchange::Curve25519KeyExchange() {} |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 78 } |
78 | 79 |
79 StringPiece Curve25519KeyExchange::public_value() const { | 80 StringPiece Curve25519KeyExchange::public_value() const { |
80 return StringPiece(reinterpret_cast<const char*>(public_key_), | 81 return StringPiece(reinterpret_cast<const char*>(public_key_), |
81 sizeof(public_key_)); | 82 sizeof(public_key_)); |
82 } | 83 } |
83 | 84 |
84 QuicTag Curve25519KeyExchange::tag() const { return kC255; } | 85 QuicTag Curve25519KeyExchange::tag() const { return kC255; } |
85 | 86 |
86 } // namespace net | 87 } // namespace net |
OLD | NEW |