Added some define checks to compile either encryption or decryption or both