| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Crypto.Hash.ADT
Synopsis
- 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 #
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 #
hashDigestSize :: a -> Int #
hashUpdate :: Context a -> ByteString -> Context a #
Instances
| HashAlgorithm MD5 # | |
Defined in Crypto.Hash.MD5 | |
| HashAlgorithm SHA1 # | |
Defined in Crypto.Hash.SHA1 | |
| HashAlgorithm SHA224 # | |
Defined in Crypto.Hash.SHA256 | |
| HashAlgorithm SHA256 # | |
Defined in Crypto.Hash.SHA256 | |
| HashAlgorithm SHA384 # | |
Defined in Crypto.Hash.SHA512 | |
| HashAlgorithm SHA512 # | |
Defined in Crypto.Hash.SHA512 | |
| HashAlgorithm Whirlpool # | |
Defined in Crypto.Hash.Whirlpool | |