User's Manual

42
Models EP, SP, XM, NET
Input COMMAND ‘X’
LPT Port
LABEL Label
PASSWORD Password
Output DATA[0] = 1, SmartKey Fixed
= 0, SmartKey not Fixed
STATUS Status
==0 Success
!=0 Error
Table 33
FIX READING MODE command parameters
9.16 Fail counter reading mode
Reads the value of the Fail Counter register. This is the same value obtained with the READING_MODE command.
With this command, you can obtain the register's value without reading all the memory.
The exchange of information is organized like this:
Models EP, SP, XM, NET
Input COMMAND ‘A’
LPT Port
LABEL Label
PASSWORD Password
Output FAIL_COUNTER Fail Counter value
STATUS Status
==0 Success
!=0 Error
Table 34
FAIL COUNTER READING MODE command parameters
9.17 AES mode
The AES mode, supported by all SmartKey 3 models, is based on user customization of twenty security codes.
Its
function is to algorithmically discover if SmartKey is present.
These commands allow a new authentication way using the AES 128 bit algorithm, as alternative to the
SCRAMBLING command, without the need of using a big scrambling table of known input/output scrambling pairs.
9.17.1 Authentication
To identify the SmartKey dongle, the application generates a pseudo-random number and sends it to the dongle.
The dongle executes the XOR operation of the number sent by the application and then it replies by encrypting the
serial number previously stored
RESULT = AES_ENCRYPT( RAND XOR SERIAL )
The application is so ready to decrypt the result and to get the serial number by executing the XOR operation with the
pseudo-random number
SERIAL = AES_DECRYPT( RESULT ) XOR RAND
If the serial number is valid the application assumes that the token is present.
by using a pseudo-random value it is sure that the dongle answers differently each time and so the same answer
can not be used twice