The text of a manual · part 7 of 23
PINpad 1000SE Reference and Programmers Guide, pages 61 to 70
Pages 61 to 70 of 229
The original document is the PDF (8.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone PINPad 1000SE
Page 61
M ANAGEMENT P ACKETS 17 Set Key Management Mode
Type
Field
Length
Description
[KMM] packet parameter
2
The two ASCII-Hex digits are concatenated, big-endian, to produce a single control byte. See the Key Management Mode Register Values, above, for [KMM] values.
[DEMF] packet parameter
1
DUKPT Engine 1/3 Mode Flag (DEMF) See the DUKPT Engine 1/3 Mode Flag (DEMF), above, for [DEMF] values.
<SO> end of packet character
1
ASCII Shift Out Control Character; Value: `0Eh'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 8 characters, minimum 8 characters
Examples
The following examples show only the command packet from the Master Device, and its translated meaning: <SI>17000<SO>{LRC}
1DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>17010<SO>{LRC}
Mixed MS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>17020<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>17080<SO>{LRC}
1DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>17090<SO>{LRC}
Mixed MS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>170A0<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>17100<SO>{LRC}
1DESmS Mode - Zero Key Support On - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>17310<SO>{LRC}
Mixed MS Mode - Zero Key Support On - Empty GISKE Session Key Support On & 1DES DUKPT Mode PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
59
Page 62
M ANAGEMENT P ACKETS 17 Set Key Management Mode
<SI>17220<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support On & 1DES DUKPT Mode <SI>17180<SO>{LRC}
1DESmS Mode - Zero Key Support On - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>17390<SO>{LRC}
Mixed MS Mode - Zero Key Support On - Empty GISKE Session Key Support On & 3DES DUKPT Mode <SI>172A0<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support On & 3DES DUKPT Mode NOTE
These examples are just some of the valid PINpad KMM options. The combinations of KMM setting are limited, which means that the mixtures of MS Mode, Zero Key Support, Empty GISKE Session Key Support, SM Mode, and DUKPT Mode are not applicable in some cases. If there is a conflict in KMM setting, use the priority rules from Table 5. Table 5
Key Management Mode Priority Rules
Priority
KMM setting
Notes
1
MS mode vs. Zero Key Support
Zero Key Support is not applicable in 3DES MS mode, due to the Key Usage Rule (single length key usage is not allowed in the 3DES MS mode)
2
MS mode vs. Empty GISKE Session Key Support
Empty GISKE Session Key Support is not applicable in 1DES MS mode, due to the Key Usage Rule (triple length key usage is not allowed in the 1DES MS mode)
Rules of Key Management Switching The rules of Key Management Switching are listed as follows:
60
Rules to 1DES (VISA)
to Mixed Mode to 3DES from 1DES (VISA) (!)
NC
NC
2/3K from Mixed mode (!!)
1K
NC
2/3K from 3DES (!!!)
E
E
NC
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 63
M ANAGEMENT P ACKETS 17 Set Key Management Mode
NOTE
In the preceding table, exclamation points (!) denote levels of security:
•
(!) shows the least secure mode
•
(!!) shows the transition period
•
(!!!) shows the most secure mode
The other abbreviations are:
•
NC – no change
•
E – all key are erased
•
1K – valid 1DES keys (single length key) are retained and other keys are erased
•
2/3K – valid 3DES keys (double / triple length key) are retained and other keys are erased. Key Mode
1DES & 3DES Key Usage Rules
1DES only (!)
• Load/Use 1D master/session keys permitted • Load KLK permitted • Load 3D master keys permitted • Use of 3D master keys forbidden • Load 3D session keys forbidden • Use of 3D session keys forbidden • Key Attributes are verified (exception: Key Usage = ‘AN’-Any is allowed) • GISKE Key Block are verified
Mixed mode (!!)
• Load/Use 1D/3D master/session keys permitted • Load KLK permitted • 1D master keys used for 1D session keys • 3D master keys used for 1D and 3D DES keys • Key Attributes are verified (no exception is allowed) • GISKE Key Block are verified
3DES only (!!!)
• Load/Use 3D master/session keys permitted • Load KLK permitted • Load 1D master keys forbidden • Use of 1D master keys forbidden • Load 1D session keys forbidden • Use of 1D session keys forbidden • Key Attributes are verified (no exception is allowed) • GISKE Key Block are verified
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
61
Page 64
M ANAGEMENT P ACKETS 17 Set Key Management Mode
NOTE
1 In the preceding table, exclamation points (!) denote levels of security: •
(!) shows the least secure mode
•
(!!) shows the transition period
•
(!!!) shows the most secure mode
2 Key Management Register is set using 17 Set Key Management Mode. 3 In the preceding table, ‘Key Attributes are verified’ indicates that upon using a Key stored in the PINpad, the PINpad must validate the content of all key attributes. The attributes of the key are validated against GISKE Spec that is acceptable for that command.
4 In the above table, ‘GISKE Key Block are verified’ indicates that upon receiving a Key Block, the PINpad must validate both the validity of the Key Block Binding Method of the Key Block and the validity of the content of the header. The header of the key is validated against a list of headers that are acceptable for that command. NOTE
All DUKPT related keys, counters, and registers are erased, when PINpad Key Management switches between 1DES DUKPT and 3DES DUKPT. Other MS related information remains untouched.
Protocol Controller
Transmission Direction
17 packet
------> <------
PINpad
ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs)
62
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 65
M ANAGEMENT P ACKETS 17 Set Key Management Mode
Controller
Transmission Direction
PINpad
<------
17 packet Note: For Packet 17 KMM
Bits 2-0, Secure Messaging Mode cannot be selected if PINpad. If any attempt is made to switch to Secure Message, only ACK is returned and no further response is sent. Note: Due to PINpad Mode
Management Rules (see PINpad Mode Management Rules for more details), if the setting does not compile with the rule, only ACK is returned and no further response is sent. ACK = LRC OK
------>
NAK = LRC incorrect (EOT after 3 NAKs) EOT if LRC correct but key management NOT OK <------
EOT to terminate process Note: PINpad saves new key management and will use the PINpad key management accordingly.
NOTE
1 The default setting of PINpad KMM is "old single DES mode,” with all zeros in KMM register.
2 When Empty GISKE Session Key Support is "ON", the current master key is used for PIN encryption, only if the current master key has it's key attribute set to "PIN Encryption" or "ANY". Empty GISKE (3DES) session key means all fields are zeros in the GISKE Key Block.
3 More information on the multiple DUKPT Engine functionality is described in Multiple DUKPT Engines.
4 Key Mode Management Rules are used under the PINpad Mode Management Rules. See PINpad Mode Management Rules for details. PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
63
Page 66
M ANAGEMENT P ACKETS 18 Check Key Management Options Register Mode
18 Check Key Management Options Register Mode Checks the setting in the PINpad Key Management Options Register.
Support Mode
PINpad 1000
PINpad 1000SE
D
D
Comments Request Format
<SI> 18 <SO>{LRC}
Elements Type
Field
Length
Description
<SI> start of packet
1
ASCII Shift In Control Character; Value: `0Fh'
18 packet type
2
Check Key Management Options Register Mode
<SO> end of packet character
1
ASCII Shift Out Control Character; Value: `0Eh'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 5 characters, minimum 5 characters
Response Format
<SI> 18 [KMM] [DEMF] <SO>{LRC}
Elements Type
Field
Length
Description
<SI> start of packet
1
ASCII Shift In Control Character; Value: `0Fh'
18 packet type
2
Set Key Management Mode
[KMM] packet parameter
2
The two ASCII-Hex digits are concatenated, big-endian, to produce a single control byte. See the Key Management Mode Register Values, under 17 Set Key Management Mode, for [KMM] values.
[DEMF] packet parameter
1
DUKPT Engine 1/3 Mode Flag See the DUKPT Engine 1/3 Mode Flag (DEMF), under 17 Set Key Management Mode, for [DEMF] values.
<SO> end of packet character
1
ASCII Shift Out Control Character; Value: `0Eh'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 8 characters, minimum 8 characters 64
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 67
M ANAGEMENT P ACKETS 18 Check Key Management Options Register Mode
Examples
The following examples show the response packet from the PINpad, and its translated meaning. In the first set of examples, the PINpad contains the MS key(s) or the KLK key. <SI>18000<SO>{LRC}
1DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18010<SO>{LRC}
Mixed MS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18020<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18080<SO>{LRC}
1DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>18090<SO>{LRC}
Mixed MS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>180A0<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>18100<SO>{LRC}
1DESmS Mode - Zero Key Support On - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18310<SO>{LRC}
Mixed MS Mode - Zero Key Support On - Empty GISKE Session Key Support On & 1DES DUKPT Mode <SI>18220<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support On & 1DES DUKPT Mode <SI>18180<SO>{LRC}
1DESmS Mode - Zero Key Support On - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>18390<SO>{LRC}
Mixed MS Mode - Zero Key Support On - Empty GISKE Session Key Support On & 3DES DUKPT Mode <SI>182A0<SO>{LRC} PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
65
Page 68
M ANAGEMENT P ACKETS 18 Check Key Management Options Register Mode
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support On & 3DES DUKPT Mode In the next set of examples, all MS master key registers and KLK key register are clear: <SI>18400<SO>{LRC}
1DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18410<SO>{LRC}
Mixed MS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18420<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support Off & 1DES DUKPT Mode <SI>18580<SO>{LRC}
1DESmS Mode - Zero Key Support On - Empty GISKE Session Key Support Off & 3DES DUKPT Mode <SI>18790<SO>{LRC}
Mixed MS Mode - Zero Key Support On - Empty GISKE Session Key Support On & 3DES DUKPT Mode <SI>186A0<SO>{LRC}
3DESmS Mode - Zero Key Support Off - Empty GISKE Session Key Support On & 3DES DUKPT Mode
Protocol Controller
Transmission Direction
18 request packet
------> <------
PINpad
ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs)
<-----ACK = LRC OK
18 response packet
------>
NAK = LRC incorrect <------
66
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
EOT to terminate process
Page 69
M ANAGEMENT P ACKETS 72 Cancel Session Request
72 Cancel Session Request Returns the PINpad device to its idle state.
Category Comments
Standard Communication Packet Packet 72 is the only packet which can be used to cancel/abort following PIN/data entry mode: Entry
Packet Types
PIN entry
Z60, Z62, 60, 62, 70
Data entry
Z40, Z42, Z50
After the PINpad device receives a 72, an EOT is sent back to terminate the session. If a Packet 72 is received and the PINpad unit is not in PIN or data entry mode, an ACK response is the normal condition.
Packet Format
<STX> 72 <ETX>{LRC}
Elements Type
Field
Length
Description
<STX> start of packet
1
ASCII Start of Text Control Character; Value: `02h'
72 packet type
2
Cancel Session Request
<ETX> end of packet character
1
ASCII End of Text Control Character, Value:`03h'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 5 characters, minimum 5 characters
Example
<STX> 72 <ETX>{LRC}
The PINpad goes to the idle state.
Protocol Controller
Transmission Direction
72 packet
------> <------
PINpad
ACK = LRC OK NAK = LRC incorrect
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
67
Page 70
M ANAGEMENT P ACKETS Q2 Indicate Host Done
Q2 Indicate Host Done Informs the PINpad device the host has responded and the transaction is at an end.
Category Comments Packet Format
Custom Communication Packet When the PINpad unit receives the Q2 message packet, it displays THANK YOU for 3 seconds, followed by the idle prompt. <STX> Q2 <ETX>{LRC}
Elements Type
Field
Length
Description
<STX> start of packet
1
ASCII Start of Text Control Character; Value: `02h'
Q2 packet type
2
Indicate Host Done
<ETX> end of packet character
1
ASCII End of Text Control Character, Value:`03h'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 5 characters, minimum 5 characters
Example
<STX> Q2 <ETX>{LRC}
Protocol Controller
Transmission Direction
Q2 packet
------> <------
PINpad
ACK = LRC OK NAK = LRC incorrect Three-second THANK YOU message display, followed by idle prompt.
68
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE