remove some error checks to unify code with other hash algorithms