Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissmatchedAESNonceSize = errors.New("missmatched nonce size")
View Source
var ErrMissmatchedChaCha20NonceSize = errors.New("missmatched nonce size")
Functions ¶
This section is empty.
Types ¶
type AES ¶
type AES struct {
// contains filtered or unexported fields
}
func NewAES ¶
NewAES creates a new AES encrypter with the provided key. Key should be 16, 24, or 32 bytes for AES-128, AES-192, or AES-256.
type ChaCha20 ¶
type ChaCha20 struct {
// contains filtered or unexported fields
}
func NewChaCha20 ¶
NewChaCha20 creates a new ChaCha20-Poly1305 encrypter. Key must be exactly 32 bytes.
Click to show internal directories.
Click to hide internal directories.