Update SHA1 implemention