Safe Haskell | None |
---|---|
Language | Haskell2010 |
- hash :: Int -> ByteString -> ByteString
- hash_key :: ByteString -> Int -> ByteString -> ByteString
Documentation
:: Int | The digest size to generate; must be 1-64 |
-> ByteString | The |
-> ByteString |
Hash a strict ByteString
into a digest ByteString
. This will choose to
use parallel or serial Blake2 depending on the size of the input
ByteString
:: ByteString | The key to use when hashing |
-> Int | The digest size to generate; must be 1-64 |
-> ByteString | The |
-> ByteString |
Hash a strict ByteString
into a digest ByteString
using a key. This
will choose to use parallel or serial Blake2 depending on the size of the
input ByteString
.