Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(key []byte, previousKey []byte) (sqlcrypter.Crypterer, error)
New initializes the AES GCM crypter with the provided data encryption key (DEK). To support key rotation, a previous DEK can optionally be provided. If the previous DEK is set, it is only used for decryption. Any new data is encrypted with the current DEK.
Types ¶
type AESCrypter ¶
type AESCrypter struct {
// contains filtered or unexported fields
}
AESCrypter is an implementation of the Crypterer interface using 256-bit AES in Galeious Counter Mode with support for key rotation.
Click to show internal directories.
Click to hide internal directories.