ech

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

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