Initializing CADP PKCS11 Library
The initPKCS11Library function is included in the vpkcs11_sample_helper.c file. This file contains the shared functions that are used within the CADP for PKCS11 samples.
The initPKCS11Library function loads the DLL and then obtains the function list from the DLL. This function uses the C_Initialize API to initialize the CADP for C PKCS11 library. For more information about this API, refer to the CipherTrust Application Data Protection PKCS11, API REFERENCE GUIDE.
To initialize the CADP PKCS11 library, call the initPKCS11Library function:
<pre class="yaml"><code>
rc = initPKCS11Library(Path to PKCS11 library); //from vpkcs11_sample_helper.c
</code></pre>