Documentation
¶
Overview ¶
Package encryption provides encryption and decryption functions, while abstracting away key management concerns. Uses AES-GCM encryption, with key rotation, keeping keys in memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = errors.New("data key not found")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager uses AES-GCM encryption and keeps in memory the data encryption keys. The active encryption key is automatically rotated once it has been used over a certain amount of times - defined by maxWriteCount.
func NewManager ¶
NewManager returns Manager, which satisfies db.Encryptor and db.Decryptor
Click to show internal directories.
Click to hide internal directories.