CT_GetAuthChallenge

This function is a SafeNet ProtectToolkit-C extension to PKCS#11 provided with the SafeNet ProtectToolkit-C SDK as a host side library function.

The function requests the HSM to generate a random 16 byte challenge value and to return the challenge to the calling application. The function uses the CKH_VD_USER object to fetch the Challenge.

The Application can use authentication data (PIN) to create a Response from the challenge. See description of CT_Gen_AUTH_Response for more details.

The Response can be used with the C_Login function to authenticate the user to the Token. See description of C_Login for more details.

Synopsis

CK_DEFINE_FUNCTION(CK_RV, CT_GetAuthChallenge)(
    CK_SESSION_HANDLE hSession,
    CK_BYTE_PTR pChallenge,
    CK_ULONG_PTR pulChallengeLen
);