SHA1 implement.