FC_EncryptInit - initialize an encryption operation.
CK_RV FC_EncryptInit( CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey );
hSession
pMechanism
hKey
FC_EncryptInit
initializes an encryption operation with the mechanism and key to be used.
A user must log into the token (to assume the NSS User role) before calling FC_EncryptInit
.
CKR_OK
CKR_SLOT_ID_INVALID