Documentation ¶
Index ¶
- func DecryptKey(ctx context.Context, api KMSApi, keyId string, encrypted string) ([]byte, error)
- func EncryptKey(ctx context.Context, api KMSApi, keyId string, source []byte, target string) error
- func GetPublicKey(ctx context.Context, api KMSApi, keyID string) ([]byte, error)
- func ReEncryptKey(ctx context.Context, api KMSApi, data []byte, sourceKeyAlias string, ...) error
- type KMSApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptKey ¶
func EncryptKey ¶
func GetPublicKey ¶
Types ¶
type KMSApi ¶
type KMSApi interface { GetPublicKey(ctx context.Context, params *kms.GetPublicKeyInput, optFns ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error) Encrypt(ctx context.Context, params *kms.EncryptInput, optFns ...func(*kms.Options)) (*kms.EncryptOutput, error) Decrypt(ctx context.Context, params *kms.DecryptInput, optFns ...func(*kms.Options)) (*kms.DecryptOutput, error) ReEncrypt(ctx context.Context, params *kms.ReEncryptInput, optFns ...func(*kms.Options)) (*kms.ReEncryptOutput, error) }
Click to show internal directories.
Click to hide internal directories.