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: ObtainPrivateKeyFromPublicKeyObtainPrivateKeyFromPublicKey
go to next page: QueryKeySizeInBitsQueryKeySizeInBits
end of book navigation links


PassThrough
Library
Spi Parameters
Notes
Errors
 Api Parameters
Description
Return Value
See Also

NAME

PassThrough: CSSM_CSP_PassThrough, CSP_PassThrough - Extend crypto functionality (CDSA)

SYNOPSIS  

# include <cssm.h>

API:CSSM_RETURN CSSMAPI CSSM_CSP_PassThrough(CSSM_CC_HANDLE CCHandle,uint32 PassThroughId,const void *InData,void **OutData)SPI:CSSM_RETURN CSSMCSPI CSP_PassThrough(CSSM_CSP_HANDLE CSPHandle,CSSM_CC_HANDLE CCHandle,const CSSM_CONTEXT *Context,uint32 PassThroughId,const void *InData,void **OutData)


return to top LIBRARY  

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


return to top API PARAMETERS  

CCHandle (input)
 The handle that describes the context of this cryptographicoperation.
PassThroughId (input)
 An identifier specifying the custom function tobe performed.
InData (input)
 A pointer to a module, implementation-specific structurecontaining the input data.
OutData (output)
 A pointer to a module, implementation-specific structurecontaining the output data. The service provider will allocate thememory for this structure. The application should free the memoryfor the structure.


return to top SPI PARAMETERS  

CSPHandle (input)
 Handle of the CSP supporting the PassThrough function.
Context (input)
 Pointer to CSSM_CONTEXT structure that describesthe attributes with this custom context structure.


return to top DESCRIPTION  

The CSSM_CSP_PassThrough() (CSSM API), or CSP_PassThrough() (CSP SPI), function is provided to allow CSP developersto extend the crypto functionality of the CSSM API.


return to top NOTES  

The CSP_EventNotify() function is used by the CSSM Core to interact with theCSP module.

Because this function is only exposed to CSSM as a functionpointer, the function name internal to the CSP can be assigned atthe discretion of the CSP module developer. However, the parameterlist and return value types must match those defined for this function.

The error codes given in this section constitute the genericerror codes, which may be used by all CSP libraries to describecommon error conditions. CSP module developers may also define theirown module-specific error codes.


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 ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_CSP_INVALID_PASSTHROUGH_ID


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide


go to previous page: ObtainPrivateKeyFromPublicKeyObtainPrivateKeyFromPublicKey
go to next page: QueryKeySizeInBitsQueryKeySizeInBits