Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1.