Moved XOR into the pbkdf2 class to enable switching logging on/off for
it