ech

package
v1.19.34-clash.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: GPL-3.0 Imports: 15 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

View Source
const (
	AEAD_AES_128_GCM      = 0x0001
	AEAD_AES_256_GCM      = 0x0002
	AEAD_ChaCha20Poly1305 = 0x0003
)
View Source
const DHKEM_X25519_HKDF_SHA256 = 0x0020
View Source
const KDF_HKDF_SHA256 = 0x0001

Variables

This section is empty.

Functions

func GenECHConfig

func GenECHConfig(publicName string) (configBase64 string, keyPem string, err error)

func LoadECHKey

func LoadECHKey(key string, tlsConfig *tls.Config) error

func UnmarshalECHKeys

func UnmarshalECHKeys(raw []byte) ([]tls.EncryptedClientHelloKey, error)

Types

type Config

type Config struct {
	GetEncryptedClientHelloConfigList func(ctx context.Context, serverName string) ([]byte, error)
}

func (*Config) ClientHandle

func (cfg *Config) ClientHandle(ctx context.Context, tlsConfig *tls.Config) (err error)

func (*Config) ClientHandleUTLS

func (cfg *Config) ClientHandleUTLS(ctx context.Context, tlsConfig *tlsC.Config) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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