Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KMSCrypter ¶
type KMSCrypter struct {
// contains filtered or unexported fields
}
KMSCrypter is an implementation of the Crypterer interface using AWS KMS with envelope encryption.
func (*KMSCrypter) Decrypt ¶
Decrypt decrypts ciphertext to plaintext. It first attempts to decrypt using the current DEK if it matches the encrypted key stored alongside the ciphertext. Otherwise, a request is made to KMS to decrypt the encrypted key and then the DEK is used to decrypt the ciphertext.
Click to show internal directories.
Click to hide internal directories.