C_SetPIN

This function operates as specified in PKCS#11.

When the module is in the NoClearPINs mode the host library protection system will encrypt the sensitive material before presenting it to the adapter.

Synopsis

C_SetPIN(
        CK_SESSION_HANDLE hSession,
        CK_CHAR_PTR pOldPin,
        CK_ULONG ulOldLen,
        CK_CHAR_PTR pNewPin,
        CK_ULONG ulNewLen
); 

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.