Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Context a = Context {
- ctxTotalBytesRead :: !Int64
- ctxBufferRead :: !Int
- ctxBuffer :: !ByteString
- ctxHashValueAcc :: !a
- class HashAlgorithm a where
- newtype Digest a = Digest String
Documentation
Context | |
|
class HashAlgorithm a where Source #
Hash algorithm interface
provides classic init/update/final API. however, user should call higher level API such as hash or hashLazy.
hashBlockSize :: a -> Int Source #
hashDigestSize :: a -> Int Source #
hashInit :: Context a Source #
hashUpdate :: Context a -> ByteString -> Context a Source #