Fix sha1 for larger inputs