Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrContentTooShort is returned when caller tries to decrypt a content which is too short ErrContentTooShort = fmt.Errorf("the content must be at least %d for decryption", chacha20poly1305.NonceSizeX) )
Functions ¶
func Decrypt ¶
Decrypt derives the premary key with the given id and a random value. It reads the first bytes to get the derivation seed and tries to decrypt the content. Returns the aead.Open error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.