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

Unified Diff: net/quic/crypto/aead_base_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/congestion_control/time_loss_algorithm_test.cc ('k') | net/quic/crypto/aead_base_decrypter_nss.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 1aeb6713d6f11949b7664519b8938af4e15de2c5..4e7475621a3d63f9fdbbf482336b91bf3c332823 100644
--- a/net/quic/crypto/aead_base_decrypter.h
+++ b/net/quic/crypto/aead_base_decrypter.h
@@ -42,9 +42,12 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : 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;
@@ -69,17 +72,18 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
};
virtual void FillAeadParams(base::StringPiece nonce,
- base::StringPiece associated_data,
+ const base::StringPiece& associated_data,
size_t auth_tag_size,
AeadParams* aead_params) const = 0;
#endif // !defined(USE_OPENSSL)
private:
bool Decrypt(base::StringPiece nonce,
- base::StringPiece associated_data,
- base::StringPiece ciphertext,
- unsigned char* output,
- size_t* output_length);
+ const base::StringPiece& associated_data,
+ const base::StringPiece& ciphertext,
+ uint8* output,
+ size_t* output_length,
+ size_t max_output_length);
#if defined(USE_OPENSSL)
const EVP_AEAD* const aead_alg_;
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm_test.cc ('k') | net/quic/crypto/aead_base_decrypter_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698