PBCS.PBES2_HMAC_SHA2 (pbcs v0.1.2) View Source

Direct Key Derivation with PBES2 and HMAC-SHA-2.

See: https://tools.ietf.org/html/rfc7518#section-4.8 See: https://tools.ietf.org/html/rfc2898#section-6.2

Link to this section Summary

Link to this section Functions

Link to this function

decrypt(arg1, arg2, arg3, content_encryptor)

View Source

Callback implementation for PBCS.KeyManager.decrypt/4.

Link to this function

derive_key(password, salt_input, iterations, derived_key_length, hash)

View Source

Specs

derive_key(
  String.t(),
  binary(),
  pos_integer(),
  non_neg_integer(),
  :sha256 | :sha384 | :sha512
) :: binary()
Link to this function

encrypt(map, protected, content_encryptor)

View Source

Callback implementation for PBCS.KeyManager.encrypt/3.

Callback implementation for PBCS.KeyManager.init/2.