raaz-0.2.1: The raaz cryptographic library.

Safe Haskell | None
Language | Haskell2010

Raaz.Hash.Blake2

Contents

- The BLAKE2 cryptographic hashes

Description

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

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.