Versions in this module Expand all Collapse all v1 v1.3.1 Jan 3, 2024 v1.3.0 Jan 3, 2024 Changes in this version + const KMSKeySizeInBytes + var NewEncrypter = func(log log.T, kmsKeyId string, context map[string]*string, ...) (*Encrypter, error) + func KMSDecrypt(log log.T, svc kmsiface.KMSAPI, ciptherTextBlob []byte, ...) (plainText []byte, err error) + func KMSGenerateDataKey(kmsKeyId string, svc kmsiface.KMSAPI, context map[string]*string) (cipherTextKey []byte, plainTextKey []byte, err error) + func NewKMSService(log log.T) (kmsService *kms.KMS, err error) + type Encrypter struct + KMSService kmsiface.KMSAPI + func (encrypter *Encrypter) Decrypt(log log.T, cipherText []byte) (plainText []byte, err error) + func (encrypter *Encrypter) Encrypt(log log.T, plainText []byte) (cipherText []byte, err error) + func (encrypter *Encrypter) GetEncryptedDataKey() (ciptherTextBlob []byte) + func (encrypter *Encrypter) GetKMSKeyId() (kmsKey string) + type IEncrypter interface + Decrypt func(log log.T, cipherText []byte) (plainText []byte, err error) + Encrypt func(log log.T, plainText []byte) (cipherText []byte, err error) + GetEncryptedDataKey func() (ciptherTextBlob []byte) + type KMSKeyProvider interface + GenerateDataKey func()