EsiPkcs11Module Class Reference

Collaboration diagram for EsiPkcs11Module:

Collaboration graph
[legend]
List of all members.

Detailed Description

This module is meant to implement the PKCS11 interface (well, enough for readonly functions on the card).


Public Member Functions

 EsiPkcs11Module (void)
 ~EsiPkcs11Module (void)
int getCryptokiMajorVersion (void)
int getLibraryMinorVersion (void)
int getLibraryMajorVersion (void)
CK_RV getInfo (CK_INFO *pInfo)
Session * getSession (CK_SESSION_HANDLE handle)
list< Slot * > getSlotList ()
Slot * getSlot (CK_SLOT_ID id)
Session * openSession (CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY notifyFunc)
void closeSession (CK_SESSION_HANDLE hSession)


Constructor & Destructor Documentation

EsiPkcs11Module::EsiPkcs11Module void   ) 
 

Only 1 instance per PKCS11 module instance (C_Initialize) should exist

EsiPkcs11Module::~EsiPkcs11Module void   ) 
 

Does a lot of cleanup


Member Function Documentation

int EsiPkcs11Module::getCryptokiMajorVersion void   ) 
 

Returns:
the manufacturer ID

int EsiPkcs11Module::getLibraryMinorVersion void   ) 
 

Returns:
the manufacturer ID

int EsiPkcs11Module::getLibraryMajorVersion void   ) 
 

Returns:
the manufacturer ID

CK_RV EsiPkcs11Module::getInfo CK_INFO *  pInfo  ) 
 

Gives cryptoki information about this module

Parameters:
pInfo a pointer to the struct that will receive the information.
Returns:
a success code as defined in pkcs11t.h
See also:
pkcs11t.h

Session * EsiPkcs11Module::getSession CK_SESSION_HANDLE  handle  ) 
 

Parameters:
handle the CRYPTOKI handle for the object you seek.
Returns:
a session object based on the CRYPTOKI handle. NULL if it doesn't exist

list< Slot * > EsiPkcs11Module::getSlotList  ) 
 

Returns:
a std::list of the available slots.

Slot * EsiPkcs11Module::getSlot CK_SLOT_ID  id  ) 
 

Returns:
a slot object based on the CRYPTOKI SLOT_ID passed in

Session * EsiPkcs11Module::openSession CK_SLOT_ID  slotID,
CK_FLAGS  flags,
CK_VOID_PTR  pApplication,
CK_NOTIFY  notifyFunc
 

opens and returns a connected (but not logged in) session with the card

Parameters:
slotID the id number of the slot to connect to
flags dictates what state the session should be openned under
pApplication ignored. For future use with CRYPTOKI and capturing card events
notifyFunc ingnored. For future use with CRYPTOKI and capturing card events

void EsiPkcs11Module::closeSession CK_SESSION_HANDLE  hSession  ) 
 

Closes a session and invalidates it


Generated on Fri Jan 12 15:48:43 2007 for NIST_PKCS11 by doxygen 1.3.1 using KingsTools