RSAENC

This sample demonstrates how custom functionality can be implemented with use of the RSA_Enc command.

This command combines several PKCS#11 commands such as C_Initialize, C_OpenSession, C_FindObjectsInit, C_FindObjects, C_EncryptInit, C_Encrypt, C_CloseSession in one single call.

Note that for running this sample TEST_RSA_KEY RSA key must be created. This may be achieved with the following command:

ctkmu c -nTEST_RSA_KEY -trsa -z1024 –aEDSUPT