Index: net/quic/core/crypto/quic_decrypter.cc |
diff --git a/net/quic/core/crypto/quic_decrypter.cc b/net/quic/core/crypto/quic_decrypter.cc |
index 5b076443e4eb43ea5e54057faa2044a182b86a9d..5d8f3d32945ef8bde256862ee43d096fbcd011fb 100644 |
--- a/net/quic/core/crypto/quic_decrypter.cc |
+++ b/net/quic/core/crypto/quic_decrypter.cc |
@@ -33,13 +33,13 @@ QuicDecrypter* QuicDecrypter::Create(QuicTag algorithm) { |
// static |
void QuicDecrypter::DiversifyPreliminaryKey(StringPiece preliminary_key, |
StringPiece nonce_prefix, |
- DiversificationNonce nonce, |
+ const DiversificationNonce& nonce, |
size_t key_size, |
size_t nonce_prefix_size, |
string* out_key, |
string* out_nonce_prefix) { |
crypto::HKDF hkdf(preliminary_key.as_string() + nonce_prefix.as_string(), |
- StringPiece(nonce, kDiversificationNonceSize), |
+ StringPiece(nonce.data(), nonce.size()), |
"QUIC key diversification", 0, key_size, 0, |
nonce_prefix_size, 0); |
*out_key = hkdf.server_write_key().as_string(); |