echparser

package
v1.19.33-clash.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedECHConfigList = errors.New("tls: malformed ECHConfigList")

Functions

This section is empty.

Types

type ECHCipher

type ECHCipher struct {
	KDFID  uint16
	AEADID uint16
}

type ECHConfig

type ECHConfig struct {
	Version uint16
	Length  uint16

	ConfigID             uint8
	KemID                uint16
	PublicKey            []byte
	SymmetricCipherSuite []ECHCipher

	MaxNameLength uint8
	PublicName    []byte
	Extensions    []ECHExtension
	// contains filtered or unexported fields
}

func ParseECHConfig

func ParseECHConfig(enc []byte) (skip bool, ec ECHConfig, err error)

func ParseECHConfigList

func ParseECHConfigList(data []byte) ([]ECHConfig, error)

ParseECHConfigList parses a draft-ietf-tls-esni-18 ECHConfigList, returning a slice of parsed ECHConfigs, in the same order they were parsed, or an error if the list is malformed.

type ECHExtension

type ECHExtension struct {
	Type uint16
	Data []byte
}

type EchConfigErr

type EchConfigErr struct {
	// contains filtered or unexported fields
}

func (*EchConfigErr) Error

func (e *EchConfigErr) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL