salty v0.1.2 Salty.Hash behaviour View Source

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Link to this callback bytes() View Source
bytes() :: non_neg_integer
Link to this callback hash(binary) View Source
hash(binary) :: {:ok, binary} | {:error, atom}
Link to this callback init() View Source
init() :: {:ok, binary} | {:error, atom}
Link to this callback verify(binary, binary) View Source
verify(binary, binary) :: :ok | {:error, atom}