ex_aws_s3_crypto v1.0.0 ExAws.S3.Crypto.AESGCMCipher View Source
This module wraps the logic necessary to encrypt / decrypt using AES GCM.
Link to this section Summary
Functions
Decrypt the given contents with the supplied key and initialization vector.
Encrypt the given contents with the supplied key.
Link to this section Functions
Specs
decrypt(key :: bitstring(), contents :: bitstring(), iv :: bitstring()) :: {:ok, unencrypted_result :: binary()} | {:error, reason :: String.t()}
Decrypt the given contents with the supplied key and initialization vector.
Specs
encrypt(key :: bitstring(), contents :: binary()) :: {:ok, {encrypted_result :: bitstring(), initialization_vector :: bitstring()}} | {:error, reason :: String.t()}
Encrypt the given contents with the supplied key.