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

Unified Diff: net/quic/crypto/aead_base_decrypter.h

Issue 1904213002: QUIC: support diversified keys with version 33. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hkdf
Patch Set: Rebase Created 4 years, 8 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 | « no previous file | net/quic/crypto/aead_base_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/aead_base_decrypter.h
diff --git a/net/quic/crypto/aead_base_decrypter.h b/net/quic/crypto/aead_base_decrypter.h
index 715961a591ee4454fa3dd60462b52a42a653c3fa..ca5fa9c317a994a4daf0480fc46bcdd4ca32c2e5 100644
--- a/net/quic/crypto/aead_base_decrypter.h
+++ b/net/quic/crypto/aead_base_decrypter.h
@@ -26,6 +26,8 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
// QuicDecrypter implementation
bool SetKey(base::StringPiece key) override;
bool SetNoncePrefix(base::StringPiece nonce_prefix) override;
+ bool SetPreliminaryKey(base::StringPiece key) override;
+ bool SetDiversificationNonce(DiversificationNonce nonce) override;
bool DecryptPacket(QuicPathId path_id,
QuicPacketNumber packet_number,
base::StringPiece associated_data,
@@ -48,6 +50,7 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
const size_t key_size_;
const size_t auth_tag_size_;
const size_t nonce_prefix_size_;
+ bool have_preliminary_key_;
// The key.
unsigned char key_[kMaxKeySize];
« no previous file with comments | « no previous file | net/quic/crypto/aead_base_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698