pub fn parse_ech_config(data: &[u8]) -> Option<EchConfig>Expand description
Parse ECH config from binary data
This parses the ECHConfig format from draft-ietf-tls-esni-13 The format is:
- version (2 bytes) - ECH version (e.g., 0xfe0a for draft-13)
- length (2 bytes) - length of config contents
- config contents (variable) including:
- cipher_suite (2 bytes)
- key_exchange (2 bytes)
- public_key (variable)
- extensions (variable)
Returns the parsed ECH config with version information.