Erebus.KMS behaviour (Erebus v0.2.0-rc.1) View Source
This module is a proxy for key backend
Link to this section Summary
Functions
Decrypts DEK - provided in the form of Erebus.EncryptedData struct, using provided backend.
Encrypts DEK - returns Erebus.EncryptedData struct with encrypted DEK, using given handle, version and backend.
Fetch the private key for the given handle and version for the given KMS backend (if it supports it).
Fetch the public key for the given handle and version for the given KMS backend (if it supports it).
Link to this section Functions
Decrypts DEK - provided in the form of Erebus.EncryptedData struct, using provided backend.
Encrypts DEK - returns Erebus.EncryptedData struct with encrypted DEK, using given handle, version and backend.
Fetch the private key for the given handle and version for the given KMS backend (if it supports it).
Fetch the public key for the given handle and version for the given KMS backend (if it supports it).
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()