This function initializes the staged encrypt operation. There may be algorithm-specific and token-specific rules restricting the lengths of data in the CSSM_EncryptDataUpdate calls that make use of these parameters. When working with U.S. exportable versions of the OCSF, the caller may be required to possess specific exemptions or privileges in order to allow this call to complete successfully.
CSSM_RETURN CSSMAPI CSSM_EncryptDataInit (CSSM_CC_HANDLE CCHandle)
CSSM_OK if the function was successful. CSSM_FAIL if an error occurred. Use CSSM_GetError to determine the exact error.
CSSM_EncryptData
CSSM_EncryptDataUpdate
CSSM_EncryptDataFinal
CSSM_RequestCssmExemption