The error can be seen on line 149. `h2 = h2.xor(mixk1(k2));` has to be replaced with `h2 = h2.xor(mixk2(k2));` Cheers, Stefan