|
Object PKCS#11 C++ Wrapper
|
#include <Cryptoki.h>
Public Member Functions | |
| Cryptoki (const std::string &path) | |
| virtual | ~Cryptoki () |
| void | initialize () |
| Info | getInfo () |
| FunctionList | getFunctionList () |
| void | initToken (unsigned int slot, std::string &soPin, std::string &label) |
| Session | openSession (unsigned int slot, SessionInfo::SessionFlags flags=SessionInfo::SERIAL_SESSION, CryptokiNotify *notify=0, void *appPtr=0) |
| void | closeAllSessions (unsigned int slot) |
Protected Member Functions | |
| void | loadModule (const std::string &path) |
| void | closeModule () |
| void | loadFunctions () |
| void | finalize () |
Protected Attributes | |
| void * | _module |
| CK_FUNCTION_LIST_PTR | _functionList |
Cryptoki API
This class calls pkcs11 functions from pkcs11 module. The module is loaded dynamically and functions are called through CK_FUNCTION_LIST.
Module must implement 'C_GetFunctionList'
| objck::Cryptoki::Cryptoki | ( | const std::string & | path | ) |
|
virtual |
|
protected |
Protected function that unloads the pkcs11 module from libdl.
|
protected |
Protected funtion that loads all the PKCS#11 functions using C_GetFunctionList. The PKCS#11 module must implement this function in order for this API to work.
|
protected |
Protected function that loads the pkcs11 module usinf libdl, dynamically.
|
protected |
|
protected |
1.8.9.1