| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.Hash.Tsuraan.Blake2
- hash :: Int -> ByteString -> ByteString
- hash_key :: ByteString -> Int -> ByteString -> ByteString
Documentation
Arguments
| :: 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
Arguments
| :: 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.