
XYGATE
®
Data Protection
™
Reference Manual
Appendix E: XDP API Procedures
XYPRO Technology Corporation
143
Proprietary and Confidential
E11: __XYPRO_ENCR_GET_ENCRYPT_DATA
short __XYPRO_ENCR_GET_ENCRYPT_DATA ((long _far *) encr_ctx /* input */
,(char _far *) sencryptedpan /* output */
,(short _far *) &nencryptedpanlenret /* output */
,(short) nitemindex /* input */
,(short _far *) &nencr_error /* output */
);
Retrieves the data string that was encrypted or decrypted from the encryption context buffer.
This function should be called for each data string that was added to the encryption context using the
__XYPRO_ENCR_ADD_ENCRYPT_DATA ()
procedure and subsequently encrypted or decrypted.
Parameters
Returns 0 when successful. Refer to the list of error codes in the XDP manual for a description of the
error code values.
encr_ctx
A pointer to the previously allocated context area (refer to
__XYPRO_ENCR_MEMBLK_SIZE ()
on
page 129
sencryptedpan
The string of data retrieved by this call and containing the encrypted or decrypted data depending on the
operation that had been performed.
nencryptedpanlenret
The length of the returned string of data.
nitemindex
The index value used when adding the data string to the encryption context using the
__XYPRO_ENCR_ADD_ENCRYPT_DATA ()
procedure and subsequently encrypted or decrypted. This value
indicates which string of data is to be retrieved.
nencr_error
Returns 0 when successful. Some XDP error codes are generic so a sub error code is also returned
describing the error in more detail. This parameter receives that sub error code.
Summary of Contents for Trinitron WEGA KV-DZ29M91
Page 2: ......