Certain SAP Sybase IQ database option settings affect
column encryption and decryption; the default settings are not optimal for most
column encryption operations.
Protect Ciphertext from Accidental Truncation
To prevent accidental truncation of the ciphertext output of the encrypt function (or accidental truncation of any other character or binary string), set the STRING_RTRUNCATION database option.
Prevent Misuse of Ciphertext
Set CONVERSION_MODE to prevent implicit data type conversions of encrypted data that result in semantically meaningless operations.