Implement QUIC Header Protection
gfe-relnote: Protected by QUIC_VERSION_99
PiperOrigin-RevId: 247137283
Change-Id: I1deb08d304b7739c3c8fa6b995e55fbd8652dc1e
diff --git a/quic/core/quic_packet_creator.h b/quic/core/quic_packet_creator.h
index 7ec8739..367ca11 100644
--- a/quic/core/quic_packet_creator.h
+++ b/quic/core/quic_packet_creator.h
@@ -281,6 +281,9 @@
return framer_->transport_version();
}
+ // Returns the minimum size that the plaintext of a packet must be.
+ size_t MinPlaintextPacketSize() const;
+
private:
friend class test::QuicPacketCreatorPeer;
@@ -339,6 +342,9 @@
// function instead.
QuicPacketNumberLength GetPacketNumberLength() const;
+ // Returns the size in bytes of the packet header.
+ size_t PacketHeaderSize() const;
+
// Returns whether the destination connection ID is sent over the wire.
QuicConnectionIdIncluded GetDestinationConnectionIdIncluded() const;