Index: net/quic/core/crypto/quic_decrypter.h |
diff --git a/net/quic/core/crypto/quic_decrypter.h b/net/quic/core/crypto/quic_decrypter.h |
index e0a6150b1e6b15ada93bd6871c84f923e51b1c62..0a5eea3d388ea9b2357f76f1747072dcc09b3bd3 100644 |
--- a/net/quic/core/crypto/quic_decrypter.h |
+++ b/net/quic/core/crypto/quic_decrypter.h |
@@ -56,7 +56,7 @@ class NET_EXPORT_PRIVATE QuicDecrypter { |
// |
// Calling this function is a no-op if |SetPreliminaryKey| hasn't been |
// called. |
- virtual bool SetDiversificationNonce(DiversificationNonce nonce) = 0; |
+ virtual bool SetDiversificationNonce(const DiversificationNonce& nonce) = 0; |
// Populates |output| with the decrypted |ciphertext| and populates |
// |output_length| with the length. Returns 0 if there is an error. |
@@ -86,7 +86,7 @@ class NET_EXPORT_PRIVATE QuicDecrypter { |
static void DiversifyPreliminaryKey(base::StringPiece preliminary_key, |
base::StringPiece nonce_prefix, |
- DiversificationNonce nonce, |
+ const DiversificationNonce& nonce, |
size_t key_size, |
size_t nonce_prefix_size, |
std::string* out_key, |