On z/OS, when any CSSM_CSP_CreateMacContext operation is invoked, a copy of the context is created. The pointer to the copy is returned on all CSSM_GetContext calls.
This function creates a Message Authentication Code (MAC) cryptographic context and returns a handle to the context. The cryptographic context handle can be used to call MAC functions. Note that MAC contexts that use RC2 require an effective key size in bits attribute. To add this attribute, use CSSM_UpdateContextAttributes.
CSSM_CC_HANDLE CSSMAPI CSSM_CSP_CreateMacContext(CSSM_CSP_HANDLE CSPHandle,
uint32 AlgorithmID,
const CSSM_KEY_PTR Key)
Returns a cryptographic context handle. If the handle is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
CSSM_GenerateMac
CSSM_GenerateMacInit
CSSM_GenerateMacUpdate
CSSM_GenerateMacFinal
CSSM_VerifyMAC
CSSM_VerifyMacInit
CSSM_VerifyMACUpdate
CSSM_VerifyMACFinal
CSSM_GetContext
CSSM_SetContext
CSSM_DeleteContext
CSSM_GetContextAttribute
CSSM_UpdateContextAttributes