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

Unified Diff: net/quic/quic_packet_generator.cc

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 | « net/quic/quic_packet_generator.h ('k') | net/quic/quic_packet_generator_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_generator.cc
diff --git a/net/quic/quic_packet_generator.cc b/net/quic/quic_packet_generator.cc
index f83dfb63b9b9ec0d0ba6f279f76e8a0477620d57..35369a40362cf0ace73ecab09d1bf5a360754463 100644
--- a/net/quic/quic_packet_generator.cc
+++ b/net/quic/quic_packet_generator.cc
@@ -238,6 +238,11 @@ void QuicPacketGenerator::StopSendingVersion() {
packet_creator_.StopSendingVersion();
}
+void QuicPacketGenerator::SetDiversificationNonce(
+ const DiversificationNonce nonce) {
+ packet_creator_.SetDiversificationNonce(nonce);
+}
+
QuicPacketNumber QuicPacketGenerator::packet_number() const {
return packet_creator_.packet_number();
}
@@ -273,10 +278,6 @@ void QuicPacketGenerator::UpdateSequenceNumberLength(
void QuicPacketGenerator::SetConnectionIdLength(uint32_t length) {
if (length == 0) {
packet_creator_.set_connection_id_length(PACKET_0BYTE_CONNECTION_ID);
- } else if (length == 1) {
- packet_creator_.set_connection_id_length(PACKET_1BYTE_CONNECTION_ID);
- } else if (length <= 4) {
- packet_creator_.set_connection_id_length(PACKET_4BYTE_CONNECTION_ID);
} else {
packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID);
}
« no previous file with comments | « net/quic/quic_packet_generator.h ('k') | net/quic/quic_packet_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698