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.

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

Fetch the private key for the given handle and version for the given KMS backend (if it supports it).

Link to this function

get_public_key(handle, version, opts)

View Source

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

Link to this callback

encrypt(arg1, arg2, arg3, arg4)

View Source

Specs