Blake2.Blake2bp (blake2_elixir v0.9.0)

View Source

Module to hash input using the Blake2bp version of Blake2.

Blake2bp is optimized for 64-bit platforms and produces digests of any size between 1 and 64 bytes.

The hash function produces a digest in binary form, as bytes. The hash_hex function outputs the digest in hexadecimal format.

The hash_nif function calls the native code. It is unlikely that you will need to call this function directly.

Summary

Functions

hash(input, key, outlen \\ 64, salt \\ "", personal \\ "")

Main hash function - output in bytes.

hash_hex(input, key, outlen \\ 64, salt \\ "", personal \\ "")

Main hash function - output in hexadecimal format.

hash_nif(input, key, outlen, salt, personal)

init()