pbcs v0.1.1 PBCS.ContentEncryptor behaviour View Source
Callback module for content encryptors.
Implement this behaviour if you want to implement your own content encryptor.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
decrypt(content_encryptor, key, iv, arg)
View Source
decrypt( PBCS.ContentEncryptor.t(), binary(), binary(), {binary(), PBCS.cipher_text(), binary()} ) :: {:ok, PBCS.plain_text()} | :error
Link to this function
encrypt(content_encryptor, key, iv, arg)
View Source
encrypt( PBCS.ContentEncryptor.t(), binary(), binary(), {binary(), PBCS.plain_text()} ) :: {binary(), PBCS.cipher_text()}
Link to this function
generate_iv(content_encryptor)
View Source
generate_iv(PBCS.ContentEncryptor.t()) :: binary()
Link to this function
generate_key(content_encryptor)
View Source
generate_key(PBCS.ContentEncryptor.t()) :: binary()
Link to this function
key_length(content_encryptor)
View Source
key_length(PBCS.ContentEncryptor.t()) :: pos_integer()
Link to this section Callbacks
Link to this callback
key_length(params)
View Source
key_length(params :: any()) :: non_neg_integer()