Refactor code for reduced rounds SHA-1