Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PKCS 11 Example 5: Perform Encryption / Decryption

This example demonstrate how to perform encryption / decryption with a key stored on a token.

For Thales nShield Connect HSM tokens in strict FIPS mode calls to C_GenerateKey() requires both CKA_SENSTIVE and CKA_PRIVATE to be set to CK_TRUE.