
XYGATE
®
Data Protection
™
Reference Manual
Appendix E: XDP API Procedures
XYPRO Technology Corporation
130
Proprietary and Confidential
E3:
__XYPRO_ENCR_INITIALIZE
short __XYPRO_ENCR_INITIALIZE ((long _far *) encr_ctx); /* input */
Initializes the encryption API context memory. Use this procedure to initialize the encryption API context
for which memory was previously allocated.
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
Example:
/* Global Storage */
char *encr_ctx = NULL; /* Encryption context pointer */
...
/* Local Storage */
short nerror;
long nmem_size;
/* Allocate memory for the Encryption context */
nmem_size = __XYPRO_ENCR_MEMBLK_SIZE ();
encr_ctx = (char *) malloc (nmem_size);
/* Initialize the Encryption context memory */
nerror = __XYPRO_ENCR_INITIALIZE ((long _far *) encr_ctx);
Summary of Contents for Trinitron WEGA KV-DZ29M91
Page 2: ......