| Index: net/quic/crypto/curve25519_key_exchange.cc
|
| diff --git a/net/quic/crypto/curve25519_key_exchange.cc b/net/quic/crypto/curve25519_key_exchange.cc
|
| index 8ed95aa26bc2cd9971ddffabd2a06d93b379ddf8..4ce2c46c4862f792a5ae961169ef8ee0cc4deab7 100644
|
| --- a/net/quic/crypto/curve25519_key_exchange.cc
|
| +++ b/net/quic/crypto/curve25519_key_exchange.cc
|
| @@ -14,9 +14,11 @@ using std::string;
|
|
|
| namespace net {
|
|
|
| -Curve25519KeyExchange::Curve25519KeyExchange() {}
|
| +Curve25519KeyExchange::Curve25519KeyExchange() {
|
| +}
|
|
|
| -Curve25519KeyExchange::~Curve25519KeyExchange() {}
|
| +Curve25519KeyExchange::~Curve25519KeyExchange() {
|
| +}
|
|
|
| // static
|
| Curve25519KeyExchange* Curve25519KeyExchange::New(
|
| @@ -25,9 +27,8 @@ Curve25519KeyExchange* Curve25519KeyExchange::New(
|
| // We don't want to #include the NaCl headers in the public header file, so
|
| // we use literals for the sizes of private_key_ and public_key_. Here we
|
| // assert that those values are equal to the values from the NaCl header.
|
| - COMPILE_ASSERT(
|
| - sizeof(ka->private_key_) == crypto::curve25519::kScalarBytes,
|
| - header_out_of_sync);
|
| + COMPILE_ASSERT(sizeof(ka->private_key_) == crypto::curve25519::kScalarBytes,
|
| + header_out_of_sync);
|
| COMPILE_ASSERT(sizeof(ka->public_key_) == crypto::curve25519::kBytes,
|
| header_out_of_sync);
|
|
|
| @@ -36,8 +37,8 @@ Curve25519KeyExchange* Curve25519KeyExchange::New(
|
| }
|
|
|
| ka = new Curve25519KeyExchange();
|
| - memcpy(ka->private_key_, private_key.data(),
|
| - crypto::curve25519::kScalarBytes);
|
| + memcpy(
|
| + ka->private_key_, private_key.data(), crypto::curve25519::kScalarBytes);
|
| crypto::curve25519::ScalarBaseMult(ka->private_key_, ka->public_key_);
|
| return ka;
|
| }
|
| @@ -82,6 +83,8 @@ StringPiece Curve25519KeyExchange::public_value() const {
|
| sizeof(public_key_));
|
| }
|
|
|
| -QuicTag Curve25519KeyExchange::tag() const { return kC255; }
|
| +QuicTag Curve25519KeyExchange::tag() const {
|
| + return kC255;
|
| +}
|
|
|
| } // namespace net
|
|
|