RSA Security logo

RSA BSAFE Cert-C
API Reference

PKCS11_CRYPTO_PARAMS Reference

Passes initialization parameters to the Cert-C Default Cryptographic service provider's initialization functions, when S_InitializeDefaultCSP2() is the service provider's initialization function.

When the Cert-C Default Cryptographic service provider is registered, S_InitializeDefaultCSP2() initializes params's pointer to PKCS11_CRYPTO_PARAMS.

Data Fields
randomSeed A CRYPTO_PARAMS ITEM that contains the seed for the Cert-C Default Cryptographic service provider's random number object. It can be set alternatively to NULL_PTR.
pSessionInfo Points to an array of B_PKCS11_SESSION structures that contain the PKCS #11 library and hardware token information. See B_PKCS11_SESSION for more information.
sessionCount This input parameter must be set to 1 (one). It is reserved for future use.

#include <cryptspi.h>

00082 typedef struct PKCS11_CRYPTO_PARAMS {
00083   CRYPTO_PARAMS     randomSeed;    /* contains seed for random number object */
00084   B_PKCS11_SESSION *pSessionInfo;  /* ptr to first entry in array of PKCS #11 info */
00085   unsigned int      sessionCount;  /* Must be 1                              */
00086 } PKCS11_CRYPTO_PARAMS;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference