Encryption and Decryption
Perform Encryption and Decryption
The library for PKCS #11 allows you to use the following algorithms for encrypting and decrypting data.
AES
- CKM_AES_CBC
- CKM_AES_CBC_PAD
- CKM_AES_ECB
- CKM_AES_CTR
- CKM_AES_GCM
RSA
- CKM_RSA_PKCS
- CKM_RSA_PKCS_OAEP
Note
- CKM_AES_CBC: The maximum buffer size is 16264 bytes
- CKM_RSA_PKCS: The maximum buffer depends on the RSA key size and related padding requirements