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