Versions in this module Expand all Collapse all v0 v0.1.6 Nov 10, 2023 Changes in this version + const HeaderTypeClient + const HeaderTypeServer + const MaxPaddingLength + const PacketMinimalHeaderSize + const PacketNonceSize + const RequestHeaderFixedChunkLength + var ErrBadClientSessionId = E.New("bad client session id") + var ErrBadHeaderType = E.New("bad header type") + var ErrBadRequestSalt = E.New("bad request salt") + var ErrBadTimestamp = E.New("bad timestamp") + var ErrNoEIH = E.New("Shadowsocks 2022 EIH support only available in AES ciphers") + var ErrPacketIdNotUnique = E.New("packet id not unique") + var ErrSaltNotUnique = E.New("salt not unique") + var ErrTooManyServerSessions = E.New("server session changed more than once during the last minute") + var MethodList = []string + func Blake3KeyedHash(reader io.Reader) io.Reader + func Key(key []byte, keyLength int) []byte + func NewMethod(ctx context.Context, methodName string, options C.MethodOptions) (C.Method, error) + func SessionKey(psk []byte, salt []byte, keyLength int) []byte + type Method struct + func (m *Method) DialConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error) + func (m *Method) DialEarlyConn(conn net.Conn, destination M.Socksaddr) net.Conn + func (m *Method) DialPacketConn(conn net.Conn) N.NetPacketConn + type SlidingWindow struct + func (f *SlidingWindow) Add(counter uint64) + func (f *SlidingWindow) Check(counter uint64) bool + func (f *SlidingWindow) Reset()