RotNEnc/Dec