secfmenc
This sample demonstrates the use of the FMSC_SendReceive() function to call custom FMs using the Cryptoki library (see "Extra Functions" in the SafeNet ProtectToolkit Programming Guide). It can perform RSA as well as DES3 encryption.
To run an RSA test, you must first have an RSA key with the label TEST_RSA_KEY stored on the HSM.
To run a DES3 test, you must first have a DES3 key with the label TEST_DES3_KEY stored on the HSM.
NOTE This sample will not work in Emulation mode, as the FMSC_SendReceive() function is not supported.