Public Member Functions | |
CK_RV | getInfo (CK_TOKEN_INFO_PTR infoOut) |
string | getManufacturer (void) |
size_t | getMechanismCount () |
list< Mechanism * > | getMechanisms () |
list< CryptoObject * > | findObjects (Session *session, CK_ATTRIBUTE_PTR attributes, CK_ULONG ulCount) |
Session * | openSession (CK_FLAGS flags, CK_VOID_PTR data, CK_NOTIFY notifyFunc) |
void | closeSession (Session *session) |
list< Session * > | getSessions () |
Mechanism * | getMechanism (CK_MECHANISM_TYPE type) |
Session * | getSession (CK_SESSION_HANDLE handle) |
CryptoObject * | getCryptoObject (CK_OBJECT_HANDLE handle) |
CryptoObject * | addCryptoObject (CryptoObject *obj) |
CK_RV | sign (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen) |
CK_RV | decrypt (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen) |
Token (Slot *slot) | |
~Token (void) |
|
constructs a new Token and ties it to slot
|
|
Cleanups up all the session and Objects associated with this token |
|
This method is necessary to support Cryptoki. Cryptoki queries the card for all kinds of information and this is how it get's direct information about the card and it's abilities.
|
|
Setters and getters. Their use should be obvious |
|
returns the number of mechanism currently available. Right now, only 1 is supported: CKM_RSA_PKCS
|
|
returns a list of the currently available mechanisms.
|
|
this method finds all objects registered on this token that match the atribute array 'attributes'
|
|
Creates a new session object and connects to the card. Directly supports Cryptoki
|
|
let's us know that Cryptoki is done with 'session' and we can terminate it's usage.
|
|
returns a list of sessions current open
|
|
This method fetches you the Mechanism object related to the Cryptoki type passed in
|
|
This method fetches you the Session object related to the handle passed in by Cryptoki
|
|
This method fetches you the CryptoObject related to the handle passed in by Cryptoki
|
|
This method 'registers' a Crypto object with 'this' Token.
|
|
Signs the input data.
|
|
Encrypts the input data.
|