[−][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 handlepMechanism
: key generation mech.pTemplate
: template for new keyulCount
: # of attrs in templatephKey
: gets handle of new key