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

Unified Diff: net/quic/crypto/aes_128_gcm_12_decrypter_test.cc

Issue 1810743002: Deprecate --quic_include_path_id_in_iv. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116808648
Patch Set: Created 4 years, 9 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/aead_base_encrypter_openssl.cc ('k') | net/quic/crypto/chacha20_poly1305_decrypter_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/aes_128_gcm_12_decrypter_test.cc
diff --git a/net/quic/crypto/aes_128_gcm_12_decrypter_test.cc b/net/quic/crypto/aes_128_gcm_12_decrypter_test.cc
index 5bcc35579360dad8f7b11b3712b159cd85c11016..d0e5304e97743302b649d10d429c5ea9ec64b839 100644
--- a/net/quic/crypto/aes_128_gcm_12_decrypter_test.cc
+++ b/net/quic/crypto/aes_128_gcm_12_decrypter_test.cc
@@ -206,11 +206,9 @@ QuicData* DecryptWithNonce(Aes128Gcm12Decrypter* decrypter,
decrypter->SetNoncePrefix(nonce_prefix);
memcpy(&packet_number, nonce.data() + nonce_prefix.size(),
sizeof(packet_number));
- if (FLAGS_quic_include_path_id_in_iv) {
- path_id = static_cast<QuicPathId>(
- packet_number >> 8 * (sizeof(packet_number) - sizeof(path_id)));
- packet_number &= UINT64_C(0x00FFFFFFFFFFFFFF);
- }
+ path_id = static_cast<QuicPathId>(
+ packet_number >> 8 * (sizeof(packet_number) - sizeof(path_id)));
+ packet_number &= UINT64_C(0x00FFFFFFFFFFFFFF);
scoped_ptr<char[]> output(new char[ciphertext.length()]);
size_t output_length = 0;
const bool success = decrypter->DecryptPacket(
« no previous file with comments | « net/quic/crypto/aead_base_encrypter_openssl.cc ('k') | net/quic/crypto/chacha20_poly1305_decrypter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698