pbcs v0.1.0 PBCS.AES_CBC_HMAC_SHA2 View Source

Content Encryption with AES_CBC_HMAC_SHA2.

See: https://tools.ietf.org/html/rfc7518#section-5.2.6

Link to this section Summary

Link to this section Functions

Link to this function content_decrypt(arg, key, iv) View Source
content_decrypt(
  {binary(), binary(), <<_::16>> | <<_::24>> | <<_::32>>},
  <<_::32>> | <<_::48>> | <<_::64>>,
  <<_::16>>
) :: {:ok, binary()} | :error
Link to this function content_encrypt(arg, key, iv) View Source
content_encrypt(
  {binary(), binary()},
  <<_::32>> | <<_::48>> | <<_::64>>,
  <<_::16>>
) :: {binary(), <<_::16>> | <<_::24>> | <<_::32>>}
Link to this function decrypt(map, key, iv, arg) View Source

Callback implementation for PBCS.ContentEncryptor.decrypt/4.

Link to this function encrypt(map, key, iv, arg) View Source

Callback implementation for PBCS.ContentEncryptor.encrypt/4.

Callback implementation for PBCS.ContentEncryptor.generate_iv/1.

Callback implementation for PBCS.ContentEncryptor.init/2.