Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Trustworthy |
A module containing Whirlpool bindings
- newtype Ctx = Ctx ByteString
- data Whirlpool
- init :: Ctx
- update :: Ctx -> ByteString -> Ctx
- updates :: Ctx -> [ByteString] -> Ctx
- finalize :: Ctx -> ByteString
- hash :: ByteString -> ByteString
- hashlazy :: ByteString -> ByteString
Documentation
Deprecated: Future cryptohash versions will not export crypto-api hash instances here.you can either : - carry using cryptoapi types and definitions by using the cryptohash-cryptoapi package and importing Crypto.Hash.CryptoAPI instead of Crypto.Hash.Whirlpool. - use cryptohash's centralized API by importing Crypto.Hash
Incremental hashing Functions
update :: Ctx -> ByteString -> CtxSource
update a context with a bytestring
updates :: Ctx -> [ByteString] -> CtxSource
updates a context with multiples bytestring
finalize :: Ctx -> ByteStringSource
finalize the context into a digest bytestring
Single Pass hashing
hash :: ByteString -> ByteStringSource
hash a strict bytestring into a digest bytestring
hashlazy :: ByteString -> ByteStringSource
hash a lazy bytestring into a digest bytestring