summaryrefslogtreecommitdiffstats
path: root/net/quic/crypto/curve25519_key_exchange.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/crypto/curve25519_key_exchange.h')
-rw-r--r--net/quic/crypto/curve25519_key_exchange.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/quic/crypto/curve25519_key_exchange.h b/net/quic/crypto/curve25519_key_exchange.h
index 1637bbb..a95cf7f 100644
--- a/net/quic/crypto/curve25519_key_exchange.h
+++ b/net/quic/crypto/curve25519_key_exchange.h
@@ -26,7 +26,7 @@ class NET_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange {
// New creates a new object from a private key. If the private key is
// invalid, nullptr is returned.
- static Curve25519KeyExchange* New(const base::StringPiece& private_key);
+ static Curve25519KeyExchange* New(base::StringPiece private_key);
// NewPrivateKey returns a private key, generated from |rand|, suitable for
// passing to |New|.
@@ -34,7 +34,7 @@ class NET_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange {
// KeyExchange interface.
KeyExchange* NewKeyPair(QuicRandom* rand) const override;
- bool CalculateSharedKey(const base::StringPiece& peer_public_value,
+ bool CalculateSharedKey(base::StringPiece peer_public_value,
std::string* shared_key) const override;
base::StringPiece public_value() const override;
QuicTag tag() const override;