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

Unified Diff: net/quic/core/crypto/quic_decrypter.cc

Issue 2340583002: Make DiversificationNonce a std::array (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/crypto/quic_decrypter.h ('k') | net/quic/core/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « net/quic/core/crypto/quic_decrypter.h ('k') | net/quic/core/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698