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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/crypto/crypto_secret_boxer.cc ('k') | net/quic/crypto/null_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/null_decrypter.h
diff --git a/net/quic/crypto/null_decrypter.h b/net/quic/crypto/null_decrypter.h
index db98a99576c45c45c3adc3f479be08c0929e6035..cd188d912c389780d08d6b92989d5d718f2caf06 100644
--- a/net/quic/crypto/null_decrypter.h
+++ b/net/quic/crypto/null_decrypter.h
@@ -24,15 +24,19 @@ class NET_EXPORT_PRIVATE NullDecrypter : public QuicDecrypter {
// QuicDecrypter implementation
bool SetKey(base::StringPiece key) override;
bool SetNoncePrefix(base::StringPiece nonce_prefix) override;
- QuicData* DecryptPacket(QuicPacketSequenceNumber sequence_number,
- base::StringPiece associated_data,
- base::StringPiece ciphertext) override;
+ bool DecryptPacket(QuicPacketSequenceNumber sequence_number,
+ const base::StringPiece& associated_data,
+ const base::StringPiece& ciphertext,
+ char* output,
+ size_t* output_length,
+ size_t max_output_length) override;
base::StringPiece GetKey() const override;
base::StringPiece GetNoncePrefix() const override;
private:
bool ReadHash(QuicDataReader* reader, uint128* hash);
- uint128 ComputeHash(const std::string& data) const;
+ uint128 ComputeHash(const base::StringPiece& data1,
+ const base::StringPiece& data2) const;
DISALLOW_COPY_AND_ASSIGN(NullDecrypter);
};
« no previous file with comments | « net/quic/crypto/crypto_secret_boxer.cc ('k') | net/quic/crypto/null_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698