Versions in this module Expand all Collapse all v0 v0.0.1 May 10, 2023 Changes in this version + const CryptoFrameType + const PaddingFrameType + const V1 + const V2 + func ReadClientHello(packet []byte) (*tls.ClientHelloInfo, error) + type CryptoFrame struct + Data []byte + Offset int64 + type Header struct + DestConnectionID []byte + Length int64 + SrcConnectionID []byte + Token []byte + Type uint8 + Version uint32 + func ParseInitialHeader(data []byte) (*Header, int64, error) + type PacketProtector struct + func NewPacketProtector(key *ProtectionKey) *PacketProtector + func (pp *PacketProtector) UnProtect(packet []byte, pnOffset, pnMax int64) ([]byte, error) + type ProtectionKey struct + func NewInitialProtectionKey(secret []byte, v uint32) (*ProtectionKey, error) + func NewProtectionKey(suite uint16, secret []byte, v uint32) (*ProtectionKey, error)