Data is encrypted before any physical data is written and it is decrypted after any physical data has been read.
You must specify the name of the user-supplied encryption library in the
You must specify the name of the encryption method in the
int JOMAPI encrypt (BYTE *pDataIn, Size dataInLength, BYTE **ppDataOut, Size *pDataOutLength);
You must specify the name of the decryption method in the
int JOMAPI decrypt (BYTE *pDataIn, Size dataInLength, BYTE **ppDataOut, Size *pDataOutLength);
If character data is passed in or out, your routines must be aware of the ANSI or Unicode character size (that is, 1 byte for ANSI and 2 bytes for Unicode).
The encryption and decryption methods return the following values.
Value | Description |
---|---|
0 | The encryption or decryption routine was successful |
Non-zero | The encryption or decryption routine failed |