skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: CSSM_CSP_CreateMacContextCSSM_CSP_CreateMacContext
go to next page: CSSM_CSP_CreateRandomGenContextCSSM_CSP_CreateRandomGenContext
end of book navigation links


CSSM_CSP_CreatePassThroughContext
Library
Description
Return Value
 Parameters
Notes
See Also

NAME

CSSM_CSP_CreatePassThroughContext - Create a custom cryptographic context (CDSA)

SYNOPSIS  

# include <cssm.h>

CSSM_RETURN CSSMAPI CSSM_CSP_CreatePassThroughContext(CSSM_CSP_HANDLE CSPHandle,const CSSM_KEY *Key,CSSM_CC_HANDLE *NewContextHandle)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

CSPHandle (input)
 The handle that describes the add-in CryptographicService Provider module used to perform this function. If a NULLhandle is specified, CSSM returns an error.
Key (input) The key to be used for the context. The caller passesa pointer to a CSSM_KEY structure containing the key.
NewContextHandle (output)
 Cryptographic context handle.


return to top DESCRIPTION  

This function creates a custom cryptographic context, givena handle of a CSP and a pointer to a custom input data structure.The cryptographic context handle is returned. The cryptographiccontext handle can be used to call the CSSM pass-through functionfor the CSP.


return to top NOTES  

A CSP can create its own set of custom functions. The contextinformation can be passed through its own data structure. The CSSM_CSP_PassThrough() function should be used with the function ID to callthe desired custom function.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide

Online Help

Functions: CSSM_CSP_PassThroughCSSM_GetContext, CSSM_SetContext, CSSM_DeleteContext, CSSM_GetContextAttribute, CSSM_UpdateContextAttributes


go to previous page: CSSM_CSP_CreateMacContextCSSM_CSP_CreateMacContext
go to next page: CSSM_CSP_CreateRandomGenContextCSSM_CSP_CreateRandomGenContext