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

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

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_crypto_server_config.cc ('k') | net/quic/core/crypto/quic_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | net/quic/core/crypto/quic_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698