License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | Trustworthy |
Language | Haskell98 |
A module containing SHA512/t
- data Ctx = Ctx !Int !Ctx
- init :: Int -> Ctx
- update :: Ctx -> ByteString -> Ctx
- finalize :: Ctx -> ByteString
- hash :: Int -> ByteString -> ByteString
- hashlazy :: Int -> ByteString -> ByteString
Documentation
Incremental hashing Functions
update :: Ctx -> ByteString -> Ctx Source
update a context with a bytestring
finalize :: Ctx -> ByteString Source
finalize the context into a digest bytestring
Single Pass hashing
hash :: Int -> ByteString -> ByteString Source
hash a strict bytestring into a digest bytestring
hashlazy :: Int -> ByteString -> ByteString Source
hash a lazy bytestring into a digest bytestring