E5:
__XYPRO_ENCR_SET_ENCR_PROVIDER
short
__XYPRO_ENCR_SET_ENCR_PROVIDER (long _far *encr_ctx
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
encr_init
The encryption initialization structure previously populated by
Populates the Encryption context (encr_ctx) with content from the encr_init structure.
Example:
/* Global Storage */
char *encr_ctx = NULL;
encr_init_struct *encr_init = NULL;
...
/* Local Storage */
short nerror;
...
nerror = __XYPRO_ENCR_SET_ENCR_PROVIDER ((long _far *) encr_ctx
XYPRO Technology Corporation
®
XYGATE
Data Protection
Appendix E: XDP API Procedures
, encr_init_struct _far *encr_init
/*
Encryption context pointer
/*
Encryption initialization structure */
,encr_init);
134
™
Reference Manual
__XYPRO_ENCR_MEMBLK_SIZE ()
__XYPRO_ENCR_ADD_ENCR_METHOD ()
/* input
*/
/* input
*/
on
page
129).
.
*/
Proprietary and Confidential