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

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

Issue 2679673005: Remove path id from IV in QUIC encrytion algorithms. (Closed)
Patch Set: Created 3 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
Index: net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc
diff --git a/net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc b/net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc
index 0ec5308728f40c676efef81852da5eccaa19fbd1..97528430ee33858689991bf6c8659a8b4603a649 100644
--- a/net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc
+++ b/net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc
@@ -94,18 +94,17 @@ TEST(ChaCha20Poly1305EncrypterTest, EncryptThenDecrypt) {
ASSERT_TRUE(encrypter.SetNoncePrefix("abcd"));
ASSERT_TRUE(decrypter.SetNoncePrefix("abcd"));
- QuicPathId path_id = 0x42;
QuicPacketNumber packet_number = UINT64_C(0x123456789ABC);
string associated_data = "associated_data";
string plaintext = "plaintext";
char encrypted[1024];
size_t len;
- ASSERT_TRUE(encrypter.EncryptPacket(QuicVersionMax(), path_id, packet_number,
+ ASSERT_TRUE(encrypter.EncryptPacket(QuicVersionMax(), packet_number,
associated_data, plaintext, encrypted,
&len, arraysize(encrypted)));
StringPiece ciphertext(encrypted, len);
char decrypted[1024];
- ASSERT_TRUE(decrypter.DecryptPacket(QuicVersionMax(), path_id, packet_number,
+ ASSERT_TRUE(decrypter.DecryptPacket(QuicVersionMax(), packet_number,
associated_data, ciphertext, decrypted,
&len, arraysize(decrypted)));
}
« no previous file with comments | « net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc ('k') | net/quic/core/crypto/crypto_secret_boxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698