Function prototype
aat_int32 AAL2MXGenerateChallenge (
TDigipassBlob* MXCardBlob,
TKernelParms* CallParms,
aat_int32 MXCardSequenceNumber,
aat_int32 NumberRows,
aat_int32 NumberColumns,
aat_int32 SecurityLevel,
aat_ascii* Challenge);Description
This function is used to generate a challenge for a matrix card. A challenge consists in the concatenation of matrix card cell row ID and column ID:
- One digit for the row ID: from 1 to 9
- One digit for the column ID: from A to Z
This function randomly chooses a row index between 0 and NumberRows-1, and a column ID between 0 and NumberColumns-1. Then, the indexes are concatenated with the result of a two-digit index couple (row digit, column digit). The security level determines the number of couples in the challenge.