pbcs v0.1.0 PBCS.AES_GCM View Source

Content Encryption with AES GCM.

See: https://tools.ietf.org/html/rfc7518#section-5.3 See: http://csrc.nist.gov/publications/nistpubs/800-38D/SP-800-38D.pdf

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>>},
  <<_::16>> | <<_::24>> | <<_::32>>,
  <<_::12>>
) :: {:ok, binary()} | :error
Link to this function content_encrypt(arg, key, iv) View Source
content_encrypt(
  {binary(), binary()},
  <<_::16>> | <<_::24>> | <<_::32>>,
  <<_::12>>
) :: {binary(), <<_::16>>}
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.