Adding a mask function.
Fixed test vectors and mask function. Now we can check digests of different lengths.