pub type C_Encrypt = extern "C" fn(hSession: CK_SESSION_HANDLE, pData: CK_BYTE_PTR, ulDataLen: CK_ULONG, pEncryptedData: CK_BYTE_PTR, pulEncryptedDataLen: CK_ULONG_PTR) -> CK_RV;
Expand description
C_Encrypt
encrypts single-part data.
Function Parameters
hSession
: session’s handlepData
: the plaintext dataulDataLen
: bytes of plaintextpEncryptedData
: gets ciphertextpulEncryptedDataLen
: gets c-text size