Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes combinators to compute the BLAKE2b hash and the associated HMAC for some common types.
Synopsis
- type BLAKE2b = BLAKE2 Word2b
- type BLAKE2s = BLAKE2 Word2s
- blake2b :: PureByteSource src => src -> BLAKE2b
- blake2bFile :: FilePath -> IO BLAKE2b
- blake2bSource :: ByteSource src => src -> IO BLAKE2b
The BLAKE2 cryptographic hashes
blake2b :: PureByteSource src => src -> BLAKE2b Source #
Compute the blake2b hash of an instance of PureByteSource
. Use
this for computing the sha1 hash of a strict or lazy byte string.
blake2bSource :: ByteSource src => src -> IO BLAKE2b Source #
Compute the blake2b hash of a general byte source.