Updated the round logic to match SHA-1 specification.