Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidKeyLength indicates the provided key is not the required size. ErrInvalidKeyLength = errors.New("secrets: encryption key must be 32 bytes") // ErrCiphertextTooShort indicates the ciphertext payload is shorter than the nonce. ErrCiphertextTooShort = errors.New("secrets: ciphertext too short") )
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher wraps AES-GCM helpers for encrypting sensitive blobs before storage.
Click to show internal directories.
Click to hide internal directories.