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

type C_GenerateKey = extern "C" fn(hSession: CK_SESSION_HANDLE, pMechanism: CK_MECHANISM_PTR, pTemplate: CK_ATTRIBUTE_PTR, ulCount: CK_ULONG, phKey: CK_OBJECT_HANDLE_PTR) -> CK_RV;

C_GenerateKey generates a secret key, creating a new key object.

Function Parameters

  • hSession: the session's handle
  • pMechanism: key generation mech.
  • pTemplate: template for new key
  • ulCount: # of attrs in template
  • phKey: gets handle of new key