blake2-0.1.0: A library providing BLAKE2

MaintainerJohn Galt <jgalt@centromere.net>
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Crypto.Hash.BLAKE2.BLAKE2b

Contents

Description

 

Synopsis

Types

type BLAKE2bState = ForeignPtr BLAKE2bStruct Source

The hash state.

Functions

initialize Source

Arguments

:: Int

Output length

-> BLAKE2bState 

Create a new hashing state.

initialize' Source

Arguments

:: Int

Output length

-> ByteString

Key

-> BLAKE2bState 

Create a new keyed hashing state.

update Source

Arguments

:: ByteString

Data to hash

-> BLAKE2bState

Hashing state

-> BLAKE2bState 

Add data to the hashing state.

finalize Source

Arguments

:: Int

Output length

-> BLAKE2bState

Hashing state

-> ByteString 

Finalize the hashing state.

hash Source

Arguments

:: Int

Output length

-> ByteString

Key

-> ByteString

Data to hash

-> ByteString 

Perform hashing all in one step.