RSA Security logo

RSA BSAFE Cert-C
API Reference

cryptspi.h File Reference

This file defines the Cert-C Default Cryptographic service provider interface.

Note that the majority of the cryptographic service is connected to the Crypto-C API using BHAPI (BSAFE Hardware API) drivers. The Cert-C service-provider calls are coupled to the corresponding BHAPI driver via the provider handle. The provider calls must be able to get to the globalInfo of corresponding BHAPI hardware methods using the provider handle.

#include "basetype.h"
#include "bsafe.h"

Go to the source code of this file.

Data Structures

 CRYPTO_FUNCS
 Stores pointers to the cryptographic service provider's functions. More...

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


Typedefs

typedef ITEM CRYPTO_PARAMS
 Passes an initialization parameter to the Cert-C Default Cryptographic service provider's initialization functions, when S_InitializeDefaultCSP() is the service provider's initialization function. More...

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

typedef crypto_funcs CRYPTO_FUNCS
 Stores pointers to the cryptographic service provider's functions. More...


Typedef Documentation

typedef struct crypto_funcs CRYPTO_FUNCS
 

Stores pointers to the cryptographic service provider's functions. In this case, they are the Cert-C Default Cryptographic service provider's functions. Use S_InitializeDefaultCSP() or S_InitializeDefaultCSP2() to initialize funcs's crypto function pointer to the Cert-C Default Cryptographic service provider's implementation of CRYPTO_FUNCS.

typedef ITEM CRYPTO_PARAMS
 

Passes an initialization parameter to the Cert-C Default Cryptographic service provider's initialization functions, when S_InitializeDefaultCSP() is the service provider's initialization function. When the Cert-C Default Cryptographic service provider is registered, S_InitializeDefaultCSP() initializes params's pointer to CRYPTO_PARAMS.

Parameters:
CRYPTO_PARAMS This parameter is optional, and its data type is an ITEM. If present, ITEM contains the seed for the Cert-C Default Cryptographic service provider's random number object. If you do not use this parameter, you must set it to NULL_PTR.

typedef struct PKCS11_CRYPTO_PARAMS PKCS11_CRYPTO_PARAMS
 

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.

Parameters:
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.



RSA BSAFE® Cert-C 2.7 API Reference