Salty.Box behaviour (libsalty2 v0.2.0) View Source

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Link to this callback

beforenm(binary, binary)

View Source

Specs

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

detached(binary, binary, binary, binary)

View Source

Specs

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

detached_afternm(binary, binary, binary)

View Source

Specs

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

easy(binary, binary, binary, binary)

View Source

Specs

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

easy_afternm(binary, binary, binary)

View Source

Specs

easy_afternm(binary(), binary(), binary()) :: {:ok, binary()} | {:error, atom()}

Specs

keypair() :: {:ok, binary(), binary()} | {:error, atom()}

Specs

macbytes() :: non_neg_integer()

Specs

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

open_detached(binary, binary, binary, binary, binary)

View Source

Specs

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

open_detached_afternm(binary, binary, binary, binary)

View Source

Specs

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

open_easy(binary, binary, binary, binary)

View Source

Specs

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

open_easy_afternm(binary, binary, binary)

View Source

Specs

open_easy_afternm(binary(), binary(), binary()) ::
  {:ok, binary()} | {:error, atom()}

Specs

publickeybytes() :: non_neg_integer()

Specs

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

seal_open(binary, binary, binary)

View Source

Specs

seal_open(binary(), binary(), binary()) :: {:ok, binary()} | {:error, atom()}

Specs

sealbytes() :: non_neg_integer()

Specs

secretkeybytes() :: non_neg_integer()

Specs

seed_keypair(binary()) :: {:ok, binary(), binary()} | {:error, atom()}

Specs

seedbytes() :: non_neg_integer()