Contents - Index


4.2.3.9 Create Challenge

HRESULT SLS_CreateChallenge(
                                                     SLS_SECRET *pSecretArray,
                                                     int nSecrectSize,
                                                     const BYTE *pbStream,
                                                     int nStreamSize,
                                                     SLS_CHALLENGE *pChallenge)

The SLS_CreateChallenge function creates a challenge from the input data stream.

Parameters

pSecretArray

Points to an array of product secrets.

nSecretSize

Size of the secret array.

pbStream

Points to the buffer of input data stream.

nStreamSize

Size in byte of the input data stream buffer.

Challenge

Points to a challenge structure in which the challenge will be created.

Return Values

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned to indicate the cause of the error.