The handle that describes the add-in CryptographicService Provider module used to perform this function. If a NULLhandle is specified, CSSM returns error.
AlgorithmID (input)
The algorithm identification number for the MACalgorithm.
Key (input)
The key used to generate a message authenticationcode. Caller passes a pointer to a CSSM_KEY structure containingthe key.
NewContextHandle (output)
Cryptographic context handle.
DESCRIPTIONThis function creates a message authentication code cryptographiccontext, given a handle of a CSP, algorithm identification number,and a key. The cryptographic context handle is returned. The cryptographic contexthandle can be used to call message authentication code functions. RETURN VALUEA CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition. SEE ALSOBooks