# Functions
AESGCM creates a new Cipher with a pre-shared key.
Chacha20Poly1305 creates a new Cipher with a pre-shared key.
NewConn wraps a stream-oriented net.Conn with cipher.
NewPacketConn wraps a net.PacketConn with cipher.
NewReader wraps an io.Reader with authenticated decryption.
NewWriter wraps an io.Writer with authenticated encryption.
Pack encrypts plaintext using Cipher with a randomly generated salt and returns a slice of dst containing the encrypted packet and any error occurred.
Unpack decrypts pkt using Cipher and returns a slice of dst containing the decrypted payload and any error occurred.
XChacha20Poly1305 creates a new Cipher with a pre-shared key.
# Variables
ErrShortPacket means that the packet is too short for a valid encrypted packet.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author