Renamed sha1 functions to avoid naming clashes