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