pureMD5-0.1.2: MD5 implementations that should become part of a ByteString Crypto package.





data MD5Context Source

The type for intermediate and final results.

Static data

md5InitialContext :: MD5ContextSource

The initial context to use when calling md5Update for the first time

blockSize :: IntSource

Block size in bits


md5 :: ByteString -> MD5ContextSource

Processes a lazy ByteString and returns the md5 digest

md5Update :: MD5Context -> ByteString -> MD5ContextSource

Alters the MD5Context with a partial digest of the data.

md5Finalize :: MD5Context -> MD5ContextSource

Closes an MD5 context. While it is typesafe to reupdate a finalized context the result would not be a valid MD5 hash of your data.