PKCS#11 Automatic Test
This sample automatically invokes all the main functions of the PKCS#11 API.
The test will chain the following operations:
- C_Initialize
- C_GetInfo
- C_GetSlotList
- C_GetSlotInfo
- C_GetTokenInfo
- C_GetMechanismList
- C_GetMechanismInfo
- C_OpenSession
- C_GetSessionInfo
- C_FindObjects to get the PIN configuration object handle
- C_GetAttributeValue to get the PIN configuration object value
- C_Login as user (using the current user PIN as entered below or the PIN typed on the PIN pad)
- C_SetPIN to set a new user PIN (using the new user PIN as entered below or the PIN typed on the PIN pad)
- C_Logout as user
- C_CloseSession
- C_CloseAllSessions
- C_Finalize
Supported hardware:
- eToken/V3/MD card
- CCID reader
- SWAT reader
Prerequisites and general information:
- The token/smartcard must be initialized without enabling the "password must be changed after first logon" setting
- While using a device with a PIN pad, the user authentication will be managed directly on the device
- While using a non PIN pad device, the PIN operations will be performed automaticaly using the values of the PIN fields below
- The new PIN that is used must be compliant with the PIN policy applied to your device otherwise the operation will fail
PIN configuration: