Activation challenge reply command – MagTek iDynamo MagneSafe V5 User Manual
Page 41

Section 2. Communications
35
Example Activate Authenticated Mode Response (Hex):
Result Code Data Len
Data
00
20
FFFF 0123 4567 8000 0003 9845 A48B 7ED3
C294 7987 5FD4 03FA 8543
Activation Challenge Reply Command
Command number:
0x11
Description:
This command is used as the second part of an Activate Authentication
sequence. In this command the application sends the first 6 bytes of
Challenge 1 (received in response to the Activate Authenticated Mode
command), two bytes of time information, and (optionally) an eight byte
Session ID encrypted with a variant of the current DUKPT PIN
Encryption Key (Key XOR 3C3C 3C3C 3C3C 3C3C 3C3C 3C3C 3C3C
3C3C).
The time information contains a count of the maximum number of seconds
the reader should remain in the Authenticated Mode. Regardless of the
value of this timer, a user card swipe in the Authenticated Mode ends the
Authenticated Mode. The maximum time allowed is 3600 seconds (one
hour). To get the full hour, use the value 0x0E10. To get the value of 3
minutes, use the value 0x012C. A value of zero forces the reader to stay
in the Authenticated Mode until a card swipe or power down occurs (no
timeout).
If the Session ID information is included and the command is successful,
it will change the Session ID in the reader.
If the reader decrypts the CR response correctly the Activate
Authenticated Mode has succeeded. If the reader can not decrypt the CR
command correctly the Activate Authenticated Mode has failed, the
DUKPT KSN advances.
Data structure:
Request Data: None
Offset
Field Name
Description
0
Response to
Challenge 1
Six bytes of Challenge 1 plus two bytes of time as
outlined above, encrypted by the specified variant of
the current DUKPT Key
8
Session ID
Optional eight byte Session ID encrypted by the
specified variant of the current DUKPT Key.
Response Data: None
Result codes:
0x00 Success
0x02 Bad Parameters – the Request Data is not a correct length
0x04 Bad Data – the encrypted reply data could not be verified
0x07 Sequence – not expecting this command