Fixed typo in enc_f() using OR instead of XOR