|
|
Library Spi Parameters Return Value See Also | Api Parameters Description Errors |
API:CSSM_RETURN CSSMAPI CSSM_QueryKeySizeInBits(CSSM_CSP_HANDLE CSPHandle,CSSM_CC_HANDLE CCHandle,const CSSM_KEY *Key,CSSM_KEY_SIZE_PTR KeySize)SPI:CSSM_RETURN CSSMCSPI CSP_QueryKeySizeInBits(CSSM_CSP_HANDLE CSPHandle,CSSM_CC_HANDLE CCHandle,const CSSM_CONTEXT *Context,const CSSM_KEY *Key,CSSM_KEY_SIZE_PTR KeySize)
cdsa$incssm300_shr.exe
)CSPHandle (input/optional) | ||
The handle that describes the Cryptographic ServiceProvider module used to perform this function. For the API, this parameter is ignored if a valid cryptographiccontext handle is specified. | ||
CCHandle (input/optional) | ||
A handle to a context that describes a cryptographicoperation. The cryptographic context should contain a handle tothe CSP that is being queried and the key about which key-size informationis being requested. | ||
Key (input/optional) | ||
A pointer to a CSSM_KEY structure containing thekey about which key-size information is being requested. This parameteris ignored if a valid cryptographic context handle is specified. | ||
KeySize (output) | ||
Pointer to a CSSM_KEY_SIZE data structure. The logicaland effective sizes (in bits) for the key are returned in this structure. For the API, if no context handle is provided, only the CSSM_KEY_SIZE LogicalKeySizeInBits fieldis set. |
Context (input) | ||
Pointer to CSSM_CONTEXT structure that describesthe attributes with this context. |
The Cryptographic Service Provider (handle) and the key canbe specified either in the cryptographic context or as parametersto the function call. If a valid cryptographic context handle parameteris specified, the CSP handle and key parameters are ignored.
CSSMERR_CSP_QUERY_SIZE_UNKNOWN
Intel CDSA Application Developer's Guide
Functions for the CSSM API:
CSSM_GenerateRandom, CSSM_GenerateKeyPair, CSSM_GenerateKey
Functions for the CSP SPI:
CSP_GenerateRandom, CSP_GenerateKeyPair, CSP_GenerateKey
|
|