C_CreateObject

This function operates as specified in PKCS#11 with the following exceptions:

If the security mode NoClearPINs is enabled, the host library version of the function will encrypt the template before submitting it to the module and the module function will verify the data was encrypted.

If the object is of type CKO_PUBLIC_KEY, CKO_PRIVATE_KEY, CKO_CERTIFICATEor CKO_CERTIFICATE_REQUEST and the key type is CKK_RSA or CKK_DSA, the key is checked for validity.

Synopsis

C_CreateObject(
        CK_SESSION_HANDLE hSession,
        CK_ATTRIBUTE_PTR pTemplate,
        CK_ULONG ulCount,
        CK_OBJECT_HANDLE_PTR phObject
);