CSSM_CSP_CreatePassThroughContext
CSSM_CC_HANDLE CSSMAPI CSSM_CSP_CreatePassThroughContext
(CSSM_CSP_HANDLE CSPHandle,
const CSSM_KEY_PTR Key,
const CSSM_DATA_PTR ParamBufs,
uint32 ParamBufCount)
This function creates a custom cryptographic context, given a handle of a CSP and pointer to a custom input data structure. The cryptographic context handle is returned. The cryptographic context handle can be used to call the CSSM pass-through function for the CSP.
- CSPHandle (input)
The handle that describes the add-in cryptographic service provider module used to perform this function. If a NULL handle is specified, CSSM returns error.
- Key (input)
The key to be used for the context. The caller passes in a pointer to a CSSM_KEY structure containing the key.
- ParamBufs (input)
Array of input buffers to the pass-through call.
- ParamBufCount (input)
The number of input buffers pointed to by ParamBufs.
Returns a cryptographic context handle. If the handle is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
- CSSM__INVALID_CSP_HANDLE
Invalid provider handle.
- CSSM__MEMORY_ERROR
Internal memory error.
Comments
A CSP can create its own set of custom functions. The context information can be passed through its own data structure. The CSSM_CSP_PassThrough function should be used along with the function ID to call the desired custom function.
CSSM_CSP_PassThrough, CSSM_GetContext, CSSM_SetContext, CSSM_DeleteContext, CSSM_GetContextAttribute, CSSM_UpdateContextAttributes
Contents | Next section | Index |