Updated SHA1 algorithm