ex_aws_s3_crypto v0.1.1 ExAws.S3.Crypto.KMSWrapper View Source
Utility module to wrap calls to ExAws.KMS
to generate / decrypt data keys.
Link to this section Summary
Link to this section Functions
Link to this function
decrypt_key(encrypted_key, context) View Source
Decrypt an encrypted data key.
The context is an encryption context
that should generally just be a map of %{"kms_cmk_id" => key_id}
for the master key_id used in the initial generation.
Link to this function
generate_data_key(key_id) View Source
Generate a data key for the master key with the given id.