[−][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 handlepMechanism
: key-gen mech.pPublicKeyTemplate
: template for pub. keyulPublicKeyAttributeCount
: # pub. attrs.pPrivateKeyTemplate
: template for priv. keyulPrivateKeyAttributeCount
: # priv. attrs.phPublicKey
: gets pub. key handlephPrivateKey
: gets priv. key handle