| Maintainer | John Galt <jgalt@centromere.net> |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Hash.BLAKE2.BLAKE2b
Description
- type BLAKE2bState = ForeignPtr BLAKE2bStruct
- initialize :: Int -> BLAKE2bState
- initialize' :: Int -> ByteString -> BLAKE2bState
- update :: ByteString -> BLAKE2bState -> BLAKE2bState
- finalize :: Int -> BLAKE2bState -> ByteString
- hash :: Int -> ByteString -> ByteString -> ByteString
Types
type BLAKE2bState = ForeignPtr BLAKE2bStruct Source
The hash state.
Functions
Arguments
| :: Int | Output length |
| -> ByteString | Key |
| -> BLAKE2bState |
Create a new keyed hashing state.
Arguments
| :: ByteString | Data to hash |
| -> BLAKE2bState | Hashing state |
| -> BLAKE2bState |
Add data to the hashing state.
Arguments
| :: Int | Output length |
| -> BLAKE2bState | Hashing state |
| -> ByteString |
Finalize the hashing state.
Arguments
| :: Int | Output length |
| -> ByteString | Key |
| -> ByteString | Data to hash |
| -> ByteString |
Perform hashing all in one step.