Documentation ¶ Index ¶ func NewChacha20poly1305Key() []byte type Crypt func NewCrypt(key []byte, ads []byte) *Crypt func (c *Crypt) Decrypt(encrypted []byte) ([]byte, bool) func (c *Crypt) Encrypt(msg []byte) []byte func (c *Crypt) GenNonce(length int) []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewChacha20poly1305Key ¶ func NewChacha20poly1305Key() []byte Types ¶ type Crypt ¶ type Crypt struct { // contains filtered or unexported fields } func NewCrypt ¶ func NewCrypt(key []byte, ads []byte) *Crypt func (*Crypt) Decrypt ¶ func (c *Crypt) Decrypt(encrypted []byte) ([]byte, bool) func (*Crypt) Encrypt ¶ func (c *Crypt) Encrypt(msg []byte) []byte func (*Crypt) GenNonce ¶ func (c *Crypt) GenNonce(length int) []byte Source Files ¶ View all Source files crypt.go Click to show internal directories. Click to hide internal directories.