Erebus.KMS behaviour (Erebus v0.2.0-rc.3) View Source
This module is a proxy for a key backend
Link to this section Summary
Functions
Decrypts DEK - provided in the form of Erebus.EncryptedData
struct, using the provided backend.
Encrypts DEK - returns Erebus.EncryptedData
struct with encrypted DEK, using given handle,
version and backend.
Fetches the private key for the given handle and version for the given KMS backend (if it is supported).
Fetches the public key for the given handle and version for the given KMS backend (if it is supported).
Link to this section Functions
Decrypts DEK - provided in the form of Erebus.EncryptedData
struct, using the provided backend.
Encrypts DEK - returns Erebus.EncryptedData
struct with encrypted DEK, using given handle,
version and backend.
Fetches the private key for the given handle and version for the given KMS backend (if it is supported).
Fetches the public key for the given handle and version for the given KMS backend (if it is supported).
Link to this section Callbacks
Specs
decrypt(Erebus.EncryptedData.t(), Keyword.t()) :: binary()
Specs
encrypt(String.t(), String.t(), String.t(), Keyword.t()) :: Erebus.EncryptedData.t()