Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Trustworthy |
A module containing SHA3 bindings
- newtype Ctx = Ctx ByteString
- init :: Int -> Ctx
- update :: Ctx -> ByteString -> Ctx
- updates :: Ctx -> [ByteString] -> Ctx
- finalize :: Ctx -> ByteString
- hash :: Int -> ByteString -> ByteString
- hashlazy :: Int -> ByteString -> ByteString
Documentation
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 :: Int -> ByteString -> ByteStringSource
hash a strict bytestring into a digest bytestring
hashlazy :: Int -> ByteString -> ByteStringSource
hash a lazy bytestring into a digest bytestring