Documentation ¶
Index ¶
Constants ¶
View Source
const DataMaxSize = 0x3FFF
View Source
const MAX_PACKET_SIZE = 65507
Variables ¶
View Source
var ErrShortPacket = errors.New("short packet")
Functions ¶
func GetAEADCiphers ¶
func GetAEADCiphers() map[string]IAEADCipher
func GetAEADConnCipher ¶
func GetAEADPacketCiphers ¶
func GetAEADPacketCiphers(method string) func(string, net.PacketConn) (net.PacketConn, error)
Types ¶
type IAEADCipher ¶
type IAEADCipher interface { KeySize() int SaltSize() int NonceSize() int NewAEAD(key []byte, salt []byte, decryptOrEncrypt int) (cipher.AEAD, error) }
func GetAEADCipher ¶
func GetAEADCipher(method string) IAEADCipher
Click to show internal directories.
Click to hide internal directories.