4 - Command Set
DynaPro Go| Handheld PIN Pad Device with MSR/Contact/Contactless | Programmer’s Manual (COMMANDS)
Page 63 of 247 (
D998200136-31
)
4.3.14
Command 0x0F - Login/Authenticate or Logout
The host uses this command to perform mutual authentication with the device (log in) or to revoke
authentication (log out). If the Device Control byte returned from
Command 0x09 - Set / Get Device
Mutual Authentication Required
, the host must successfully call this
command to bring the device out of the
OFFLINE
state.
If mutual authentication is required, the host must follow these steps to initiate mutual authentication:
1)
Request a mutual authentication token from the device using
2)
Decrypt the received token using the Mutual Authentication Key to create an 8-byte decrypted token.
3)
Create an 8-byte transformed token from the decrypted token as follows:
a)
Split the token into a
first half-token
and a
last half-token
.
b)
Add 0x55555555 to the
last half-token
in little-endian format, truncate off the carry (if any) to
get 4 bytes, and use the result as the beginning of the
transformed token
.
c)
Append the
first half-token
to the end to form the full
transformed token
.
4)
Encrypt the
transformed token
with the Mutual Authentication Key to create an
encrypted
transformed token
.
5)
Call the Login / Authenticate form of this command.
If an error occurs, the device terminates the command and reports the error in ACKSTS of
. For a full list of error codes, see
Table 4-18 - Usage Table for Command 0x0F Login/Authenticate or Logout
Bit
7
6
5
4
3
2
1
0
Byte 0
0x0F
Byte 1
0x00 = Logout
0x01 = Login / Authenticate
Bytes 2..9
If logging in, encrypted transformed token (8 bytes). See
If logging out, Reserved.