C_InitPIN

This function operates as specified in PKCS#11 with the following extensions. When the module is in the NoClearPins mode, the host library protection system will encrypt the sensitive material before presenting it to the adapter.

The function returns an error if the Token has already had the user pin specified, that is, the SO does not have the rights to replace a user pin, only initialize it.

Synopsis

C_InitPIN(
        CK_SESSION_HANDLE hSession,
        CK_CHAR_PTR pPin,
        CK_ULONG ulPinLen
); 

Operation in WLD Mode

When SafeNet ProtectToolkit is configured to operate in WLD mode, this function is not supported and will return the error CKR_FUNCTION_NOT_SUPPORTED.