Skip to main content

HP_MASK_LEN

Constant HP_MASK_LEN 

Source
pub const HP_MASK_LEN: usize = 15;
Expand description

Bytes of the packet header protected by HP — WIRE v6 (anti-fingerprint): the contiguous region at wire offset [0..15] — the WHOLE 15-byte header, version(1) ‖ packet_number(8) ‖ flags(2) ‖ stream_id(2) ‖ epoch(1) ‖ path_id(1). The version byte is now masked too (no constant cleartext byte); the inner session_id is off-wire and routing is by the outer (rotating) ConnId. (Was [1..15]/14 in v5, [33..47] in v4.) The mask itself is a full 16-byte block; the first HP_MASK_LEN bytes are applied.