Versions in this module Expand all Collapse all v1 v1.19.0 Nov 25, 2023 Changes in this version + var ErrCipherNotSupported = errors.New("cipher not supported") + func Kdf(password string, keyLen int) []byte + func ListCipher() []string + type AeadCipher struct + Key []byte + func (aead *AeadCipher) PacketConn(c net.PacketConn) net.PacketConn + func (aead *AeadCipher) StreamConn(c net.Conn) net.Conn + type Cipher interface + func PickCipher(name string, key []byte, password string) (Cipher, error) + type PacketConnCipher interface + PacketConn func(net.PacketConn) net.PacketConn + type StreamCipher struct + Key []byte + func (ciph *StreamCipher) PacketConn(c net.PacketConn) net.PacketConn + func (ciph *StreamCipher) StreamConn(c net.Conn) net.Conn + type StreamConnCipher interface + StreamConn func(net.Conn) net.Conn