exth_crypto v0.1.6 ExthCrypto.Hash.Fake
Simple fake hash that basically just returns its own input.
Gasp, that’s reversable!
Link to this section Summary
Functions
Finalizes a given Fake mac stream to produce the current hash
Initializes a new Fake mac stream
Updates a given Fake mac stream, which is, do nothing
Link to this section Types
Link to this section Functions
Finalizes a given Fake mac stream to produce the current hash.
Examples
iex> ExthCrypto.Hash.Fake.init_mac("abc")
...> |> ExthCrypto.Hash.Fake.update_mac("def")
...> |> ExthCrypto.Hash.Fake.final_mac()
"abc"
Initializes a new Fake mac stream.
Examples
iex> fake_mac = ExthCrypto.Hash.Fake.init_mac("abc")
iex> is_nil(fake_mac)
false