Skip to main content

Module client_wire

Module client_wire 

Source

Structs§

DecodedPacket
RecvWindow

Constants§

DEFAULT_MDH_LEN
Default MDH length matching the primary mask (STUN/WebRTC = 20 bytes).
DEFAULT_ZERO_MDH
Legacy constant kept for backward compatibility references.

Functions§

build_inner_packet
build_random_mdh_packet
Build a packet with random MDH of given length (Issue #30 fix). Each call generates fresh random MDH bytes, eliminating static fingerprints.
build_zero_mdh_packet
Legacy: build packet with 4-byte zero MDH (kept for backward compatibility).
counter_to_nonce
decode_packet_with_mdh_len
obfuscate_client_eph_pub
process_server_hello_with_mdh_len