Salty.Aead behaviour (libsalty2 v0.3.0) View Source

Link to this section Summary

Link to this section Callbacks

Specs

abytes() :: non_neg_integer()
Link to this callback

decrypt(arg1, binary, binary, binary, binary)

View Source

Specs

decrypt(binary() | nil, binary(), binary(), binary(), binary()) ::
  {:ok, binary()} | {:error, atom()}
Link to this callback

decrypt_detached(arg1, binary, binary, binary, binary, binary)

View Source

Specs

decrypt_detached(
  binary() | nil,
  binary(),
  binary(),
  binary(),
  binary(),
  binary()
) :: {:ok, binary()} | {:error, atom()}
Link to this callback

encrypt(binary, binary, arg3, binary, binary)

View Source

Specs

encrypt(binary(), binary(), binary() | nil, binary(), binary()) ::
  {:ok, binary()} | {:error, atom()}
Link to this callback

encrypt_detached(binary, binary, arg3, binary, binary)

View Source

Specs

encrypt_detached(binary(), binary(), binary() | nil, binary(), binary()) ::
  {:ok, binary(), binary()} | {:error, atom()}

Specs

keybytes() :: non_neg_integer()

Specs

npubbytes() :: non_neg_integer()

Specs

nsecbytes() :: non_neg_integer()