[][src]Type Definition pkcs11::functions::C_Sign

type C_Sign = extern "C" fn(hSession: CK_SESSION_HANDLE, pData: CK_BYTE_PTR, ulDataLen: CK_ULONG, pSignature: CK_BYTE_PTR, pulSignatureLen: CK_ULONG_PTR) -> CK_RV;

C_Sign signs (encrypts with private key) data in a single part, where the signature is (will be) an appendix to the data, and plaintext cannot be recovered from the signature.

Function Parameters

  • hSession: the session's handle
  • pData: the data to sign
  • ulDataLen: count of bytes to sign
  • pSignature: gets the signature
  • pulSignatureLen: gets signature length