raaz-0.2.2: The raaz cryptographic library.
Safe HaskellNone
LanguageHaskell2010

Raaz.Hash.Blake2

Description

This module exposes combinators to compute the BLAKE2b hash and the associated HMAC for some common types.

Synopsis

The BLAKE2 cryptographic hashes

type BLAKE2b = BLAKE2 Word2b Source #

The BLAKE2b hash type.

type BLAKE2s = BLAKE2 Word2s Source #

The BLAKE2s hash type.

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.

blake2bFile :: FilePath -> IO BLAKE2b Source #

Compute the blake2b hash of a file.

blake2bSource :: ByteSource src => src -> IO BLAKE2b Source #

Compute the blake2b hash of a general byte source.