C_GenerateKey
This function operates as specified in PKCS#11.
If the CKF_LOGIN_REQUIRED
flag is set for the Token associated with the provided session the session state must be either CKS_RW_USER_FUNCTIONS
or CKS_RO_USER_FUNCTIONS
,otherwise the error CKR_USER_NOT_LOGGED_IN
is returned.
Synopsis
C_GenerateKey( CK_SESSION_HANDLE hSession CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey );