Class representing hashing algorithms.
The hash algorithm is built over 3 primitives:
init : create a new hashing context
updates : update the hashing context with some strict bytestrings and return the new context
finalize : finalize the context into a digest
Methods
hashBlockSize :: Context a -> IntBlock size in bytes the hash algorithm operates on
hashInit :: Context aInitialize a new context for this hash algorithm
hashUpdates :: Context a -> [ByteString] -> Context aUpdate the context with a list of strict bytestring, and return a new context with the updates.
hashFinalize :: Context a -> Digest aFinalize a context and return a digest.
digestFromByteString :: ByteString -> Maybe (Digest a)Try to convert a binary digest bytestring to a digest.
Instances21HashAlgorithm, …
HashAlgorithm MD2Defined in cryptohash-0.11.9 · Crypto.HashMD2 cryptographic hash
HashAlgorithm MD4Defined in cryptohash-0.11.9 · Crypto.HashMD4 cryptographic hash
HashAlgorithm MD5Defined in cryptohash-0.11.9 · Crypto.HashMD5 cryptographic hash
HashAlgorithm RIPEMD160Defined in cryptohash-0.11.9 · Crypto.HashRIPEMD160 cryptographic hash
HashAlgorithm SHA1Defined in cryptohash-0.11.9 · Crypto.HashSHA1 cryptographic hash
HashAlgorithm SHA224Defined in cryptohash-0.11.9 · Crypto.HashSHA224 cryptographic hash
HashAlgorithm SHA256Defined in cryptohash-0.11.9 · Crypto.HashSHA256 cryptographic hash
HashAlgorithm SHA3_224Defined in cryptohash-0.11.9 · Crypto.HashSHA3 (224 bits version) cryptographic hash
HashAlgorithm SHA3_256Defined in cryptohash-0.11.9 · Crypto.HashSHA3 (256 bits version) cryptographic hash
HashAlgorithm SHA3_384Defined in cryptohash-0.11.9 · Crypto.HashSHA3 (384 bits version) cryptographic hash
HashAlgorithm SHA3_512Defined in cryptohash-0.11.9 · Crypto.HashSHA3 (512 bits version) cryptographic hash
HashAlgorithm SHA384Defined in cryptohash-0.11.9 · Crypto.HashSHA384 cryptographic hash
HashAlgorithm SHA512Defined in cryptohash-0.11.9 · Crypto.HashSHA512 cryptographic hash
HashAlgorithm Skein256_224Defined in cryptohash-0.11.9 · Crypto.HashSkein256 (224 bits version) cryptographic hash
HashAlgorithm Skein256_256Defined in cryptohash-0.11.9 · Crypto.HashSkein256 (256 bits version) cryptographic hash
HashAlgorithm Skein512_224Defined in cryptohash-0.11.9 · Crypto.HashSkein512 (224 bits version) cryptographic hash
HashAlgorithm Skein512_256Defined in cryptohash-0.11.9 · Crypto.HashSkein512 (256 bits version) cryptographic hash
HashAlgorithm Skein512_384Defined in cryptohash-0.11.9 · Crypto.HashSkein512 (384 bits version) cryptographic hash
HashAlgorithm Skein512_512Defined in cryptohash-0.11.9 · Crypto.HashSkein512 (512 bits version) cryptographic hash
HashAlgorithm TigerDefined in cryptohash-0.11.9 · Crypto.HashTiger cryptographic hash
HashAlgorithm WhirlpoolDefined in cryptohash-0.11.9 · Crypto.HashWhirlpool cryptographic hash