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

type C_GenerateKeyPair = extern "C" fn(hSession: CK_SESSION_HANDLE, pMechanism: CK_MECHANISM_PTR, pPublicKeyTemplate: CK_ATTRIBUTE_PTR, ulPublicKeyAttributeCount: CK_ULONG, pPrivateKeyTemplate: CK_ATTRIBUTE_PTR, ulPrivateKeyAttributeCount: CK_ULONG, phPublicKey: CK_OBJECT_HANDLE_PTR, phPrivateKey: CK_OBJECT_HANDLE_PTR) -> CK_RV;

C_GenerateKeyPair generates a public-key/private-key pair, creating new key objects.

Function Parameters

  • hSession: session handle
  • pMechanism: key-gen mech.
  • pPublicKeyTemplate: template for pub. key
  • ulPublicKeyAttributeCount: # pub. attrs.
  • pPrivateKeyTemplate: template for priv. key
  • ulPrivateKeyAttributeCount: # priv. attrs.
  • phPublicKey: gets pub. key handle
  • phPrivateKey: gets priv. key handle