hs-blake2-0.0.1: A cryptohash-inspired library for blake2

Safe HaskellNone
LanguageHaskell2010

Crypto.Hash.Tsuraan.Blake2

Synopsis

Documentation

hash Source

Arguments

:: Int

The digest size to generate; must be 1-64

-> ByteString

The ByteString to hash

-> 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

hash_key Source

Arguments

:: ByteString

The key to use when hashing

-> Int

The digest size to generate; must be 1-64

-> ByteString

The ByteString to hash

-> 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.