remove incorrect/unnecessary assertion
move whirlpool round into separate function