Command 0xEF11 - Get Key Info
The host uses this command to retrieve information about a key slot, including details about the key stored in that slot. It can be used for several purposes, including:
Determine if a key exists / has been loaded
Get key derivation data to derive a DUKPT key
Get transport key information to retrieve the appropriate transport key
Sequence of events:
Table - Request Data for Command 0xEF11 - Get Key Info
Beginning of any wrappers, at minimum including Request Message
EF11
Command 0xEF11 - Get Key Info
81
02
Key Slot ID — See Table 59 - Key Slot ID
B
R
End of any wrappers, at minimum including Request Message
Table - Response Data for Command 0xEF11 - Get Key Info
EF11 = Command 0xEF11 - Get Key Info
81
04
Key Slot Information
B
R
82
06
Loaded Key Information
B
O
/null
(1)
Key Slot Status
· 0x00 = Empty
· 0x01 = Loaded (Key not assigned purpose)
· 0x02 = Loaded & Active
· 0x03 = Exhausted (End of DUKPT key sequence
· 0x04 = Expired (Reserved, certificate status)
0xFF = Not supported in this device
B
R
/null
(1)
Key Slot Type
First byte of the Key Slot ID in the host’s request message.
B
R
/null
(2)
Transport Key Slot ID
This specifies the key used to secure and load the key that the host is retrieving information about. See Table 59 - Key Slot ID
B
R
82
06
Loaded Key Information
B
O
/null
(1)
Key Environment — ‘T’ = Test, ‘P’ = Production
A
R
/null
(4)
TR-31 Attributes — See Table 55 - TR-31 Key Type Table - Usage/Algorithm/Mode.
B
R
/null
(1)
Encoding of Algorithm & Length: - 0x01 = DEA - 0x02 = 2TDEA - 0x03 = 3TDEA - 0x04 = AES128 - 0x05 = AES192 - 0x06 = AES256
B
R
83
var
Key Check Value: - For AES-CMAC, 5 bytes. - For TDES-CMAC or TDES-CBCMAC, 3 bytes.
B
O
84
var
Key Derivation Information — Contains the derivation block, key serial number (KSN), or key label, as appropriate for the key type.
B
O
A6
var
Restrictions — Reserved. Do not include.
B
O
81
02
DUKPT Restrictions — These restrictions come from the TR-31 block.
B
O
89
var
Timestamp — This comes from the TR-31 block or from device’s real-time clock.
B
O
Table - Request Example
Table - Response Example
Note: For additional support, please contact MagTek Support.
Last updated

