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

Link to this section Summary

Link to this section Callbacks

Specs

bytes() :: non_neg_integer()

Specs

bytes_max() :: non_neg_integer()

Specs

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

final(binary, non_neg_integer)

View Source

Specs

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

final_verify(binary, binary)

View Source

Specs

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

Specs

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

hash(binary, binary, binary)

View Source

Specs

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

init(binary, non_neg_integer)

View Source

Specs

init(binary(), non_neg_integer()) :: {:ok, binary()} | {:error, atom()}

Specs

keybytes() :: non_neg_integer()

Specs

keybytes_max() :: non_neg_integer()

Specs

keybytes_min() :: non_neg_integer()

Specs

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

Link to this section Functions