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

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

Issue 2629723003: Revert of Add quic_logging (Closed)
Patch Set: Created 3 years, 11 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/crypto_utils.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 #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"
9 #include "net/quic/core/crypto/quic_random.h" 10 #include "net/quic/core/crypto/quic_random.h"
10 #include "third_party/boringssl/src/include/openssl/curve25519.h" 11 #include "third_party/boringssl/src/include/openssl/curve25519.h"
11 12
12 using base::StringPiece; 13 using base::StringPiece;
13 using std::string; 14 using std::string;
14 15
15 namespace net { 16 namespace net {
16 17
17 Curve25519KeyExchange::Curve25519KeyExchange() {} 18 Curve25519KeyExchange::Curve25519KeyExchange() {}
18 19
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 StringPiece Curve25519KeyExchange::public_value() const { 72 StringPiece Curve25519KeyExchange::public_value() const {
72 return StringPiece(reinterpret_cast<const char*>(public_key_), 73 return StringPiece(reinterpret_cast<const char*>(public_key_),
73 sizeof(public_key_)); 74 sizeof(public_key_));
74 } 75 }
75 76
76 QuicTag Curve25519KeyExchange::tag() const { 77 QuicTag Curve25519KeyExchange::tag() const {
77 return kC255; 78 return kC255;
78 } 79 }
79 80
80 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_utils.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