Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
ctoken.c File Reference
#include "ckcapi.h"

Go to the source code of this file.

Functions

static NSSUTF8ckcapi_mdToken_GetLabel (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static NSSUTF8ckcapi_mdToken_GetManufacturerID (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static NSSUTF8ckcapi_mdToken_GetModel (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static NSSUTF8ckcapi_mdToken_GetSerialNumber (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static CK_BBOOL ckcapi_mdToken_GetIsWriteProtected (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_BBOOL ckcapi_mdToken_GetUserPinInitialized (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_VERSION ckcapi_mdToken_GetHardwareVersion (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_VERSION ckcapi_mdToken_GetFirmwareVersion (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static NSSCKMDSession * ckcapi_mdToken_OpenSession (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, NSSCKFWSession *fwSession, CK_BBOOL rw, CK_RV *pError)
static CK_ULONG ckcapi_mdToken_GetMechanismCount (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_RV ckcapi_mdToken_GetMechanismTypes (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_MECHANISM_TYPE types[])
static NSSCKMDMechanism * ckcapi_mdToken_GetMechanism (NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_MECHANISM_TYPE which, CK_RV *pError)

Variables

NSS_IMPLEMENT_DATA const
NSSCKMDToken 
nss_ckcapi_mdToken

Function Documentation

static CK_VERSION ckcapi_mdToken_GetFirmwareVersion ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 143 of file ctoken.c.

static CK_VERSION ckcapi_mdToken_GetHardwareVersion ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 131 of file ctoken.c.

static CK_BBOOL ckcapi_mdToken_GetIsWriteProtected ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 106 of file ctoken.c.

{
  return CK_FALSE;
}
static NSSUTF8* ckcapi_mdToken_GetLabel ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 54 of file ctoken.c.

static NSSUTF8* ckcapi_mdToken_GetManufacturerID ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 67 of file ctoken.c.

static NSSCKMDMechanism* ckcapi_mdToken_GetMechanism ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_MECHANISM_TYPE  which,
CK_RV pError 
) [static]

Definition at line 196 of file ctoken.c.

{
  if (which != CKM_RSA_PKCS) {
    *pError = CKR_MECHANISM_INVALID;
    return (NSSCKMDMechanism *)NULL;
  }
  return (NSSCKMDMechanism *)&nss_ckcapi_mdMechanismRSA;
}
static CK_ULONG ckcapi_mdToken_GetMechanismCount ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 170 of file ctoken.c.

{
  return (CK_ULONG)1;
}
static CK_RV ckcapi_mdToken_GetMechanismTypes ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_MECHANISM_TYPE  types[] 
) [static]

Definition at line 182 of file ctoken.c.

{
  types[0] = CKM_RSA_PKCS;
  return CKR_OK;
}
static NSSUTF8* ckcapi_mdToken_GetModel ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 80 of file ctoken.c.

static NSSUTF8* ckcapi_mdToken_GetSerialNumber ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 93 of file ctoken.c.

static CK_BBOOL ckcapi_mdToken_GetUserPinInitialized ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 119 of file ctoken.c.

{
  return CK_TRUE;
}
static NSSCKMDSession* ckcapi_mdToken_OpenSession ( NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
NSSCKFWSession *  fwSession,
CK_BBOOL  rw,
CK_RV pError 
) [static]

Definition at line 155 of file ctoken.c.

{
  return nss_ckcapi_CreateSession(fwSession, pError);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 213 of file ctoken.c.