Erebus.KMS behaviour (Erebus v0.2.0-rc.2) 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.

Link to this function

encrypt(dek, handle, version, opts)

View Source

Encrypts DEK - returns Erebus.EncryptedData struct with encrypted DEK, using given handle, version and backend.

Link to this function

get_private_key(handle, version, opts)

View Source

Fetches the private key for the given handle and version for the given KMS backend (if it is supported).

Link to this function

get_public_key(handle, version, opts)

View Source

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

Link to this callback

encrypt(arg1, arg2, arg3, arg4)

View Source

Specs