Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Crypto.Hash.ADT
- data Context a = Context {
- ctxTotalBytesRead :: !Int64
- ctxBufferRead :: !Int
- ctxBuffer :: !ByteString
- ctxHashValueAcc :: !a
- class HashAlgorithm a where
- newtype Digest a = Digest String
Documentation
Constructors
Context | |
Fields
|
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.
Minimal complete definition
hashBlockSize, hashDigestSize, hashInit, hashUpdate, hashFinal
Methods
hashBlockSize :: a -> Int Source #
hashDigestSize :: a -> Int Source #
hashInit :: Context a Source #
hashUpdate :: Context a -> ByteString -> Context a Source #