Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Context a = Context {
- ctxTotalBytesRead :: !Int64
- ctxBufferRead :: !Int
- ctxBuffer :: !ByteString
- ctxHashValueAcc :: !a
- class HashAlgorithm a where
- hashBlockSize :: a -> Int
- hashDigestSize :: a -> Int
- hashInit :: Context a
- hashUpdate :: Context a -> ByteString -> Context a
- hashFinal :: Context a -> a
- 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 #