To get an MD5 digest of a lazy ByteString (you probably want this): hash = md5 lazyByteString
Alternativly, for a context that can be further updated/finalized: partialCtx = md5Update md5InitialContext partOfFile
And you finialize the context with: hash = md5Finalize partialCtx
After finalizing a context, using md5Finalize, a new type is returned to prevent 're-finalizing' the structure.
The initial context to use when calling md5Update for the first time
Processes a lazy ByteString and returns the md5 digest. This is probably what you want.
Alters the MD5Context with a partial digest of the data.