Updated sha1 impl