PBCS.ContentEncryptor behaviour (pbcs v0.1.2) 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
Specs
Link to this section Functions
Specs
decrypt(t(), binary(), binary(), {binary(), PBCS.cipher_text(), binary()}) :: {:ok, PBCS.plain_text()} | :error
Specs
encrypt(t(), binary(), binary(), {binary(), PBCS.plain_text()}) :: {binary(), PBCS.cipher_text()}
Specs
Specs
Specs
key_length(t()) :: pos_integer()