Documentation ¶
Index ¶
- Constants
- func Decrypt(key, ciphertext []byte, compression bool) (data []byte, err error)
- func DecryptWithNonce(key, ciphertext, nonce []byte, compression bool) (data []byte, err error)
- func Encrypt(key, data []byte, compression bool) (ciphertext []byte, err error)
- func EncryptWithNonce(key, data, nonce []byte, compression bool) (ciphertext []byte, err error)
- type Cipher
- func (cipher *Cipher) Decrypt(ciphertext []byte, compression bool) (data []byte, err error)
- func (cipher *Cipher) DecryptWithNonce(ciphertext, nonce []byte, compression bool) (data []byte, err error)
- func (cipher *Cipher) Encrypt(data []byte, compression bool) (ciphertext []byte, err error)
- func (cipher *Cipher) EncryptWithNonce(data, nonce []byte, compression bool) (ciphertext []byte, err error)
Constants ¶
View Source
const ( KeyLength = chacha20poly1305.KeySize CipherTextMinLength = chacha20poly1305.NonceSize + chacha20poly1305.Overhead )
Variables ¶
This section is empty.
Functions ¶
func DecryptWithNonce ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.