hash package:crypto-api
Hash a lazy ByteString, creating a digest
The Hash class is intended as the generic interface targeted by
maintainers of Haskell digest implementations. Using this generic
interface, higher level functions such as
hash and
hash'
provide a useful API for comsumers of hash implementations.
Any instantiated implementation must handle unaligned data.
Minimum complete definition:
outputLength,
blockLength,
initialCtx,
updateCtx, and
finalize.
Hash a strict ByteString, creating a digest
Obtain a lazy hash function whose result is the same type as the given
digest, which is discarded. If the type is already inferred then
consider using the
hash function instead.
Obtain a strict hash function whose result is the same type as the
given digest, which is discarded. If the type is already inferred then
consider using the
hash' function instead.