The text of a manual · part 18 of 23
PINpad 1000SE Reference and Programmers Guide, pages 171 to 180
Pages 171 to 180 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 171
CHAPTER 9 Customizable Command Specification This section discusses PINpad support of special prompt display and data entry requirement programmability.
Introduction
Prompt Tables
NOTE
The master device should be able to send the PINpad special prompts and data entry requirements for customizing the PINpad. Under control of the master device, the PINpad may:
•
Display a single message
•
Display rotating messages at about 3 second interval
•
Display user definable character functions
•
Display user definable character functions
•
Request a single keystroke entry from the customer
•
Request a keystroke sequence from the customer, and echo the input on the PINpad display
•
Request PIN number from the customer, build and encrypt the PIN block, and echo the customer's input as asterisks
•
Down load user defined prompt table (supported in version 4E3002x and later releases of the firmware)
The PINpad has several prompt tables:
• a fixed, static prompt table located in ROM
• a downloadable prompt table located in RAM
Prompt tables are only available in version 4E3002x and later releases of the firmware. The PINpad allows both fixed and downloadable prompt tables to contain User Definable Characters (UDC). See User Definable Character (UDC) Functions for details. This allows applications to have the ability to send UDCs in the MACed Z2/Z3 packets. See Prompt Table for Z2/Z3 Authentication for details on the fixed prompt table, stored in ROM. In order to have Customizable Commands (Packets Z40, Z41, Z42, Z43, Z50, and Z51) operational in the PINpad 1000SE Mode, data authentication requires that the contents of Packets Z2 and Z3 must be MACed or the message text in the packet must match on messages in the prompt table. PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
169
Page 172
C USTOMIZABLE C OMMAND S PECIFICATION Prompt Tables
Downloadable Prompt Table
The number of prompt messages in the prompt table is not limited, but the overall RAM table packet size is limited to 100 bytes. In certain circumstances the RAM table may be erased from memory, if the master key that was used to load the RAM prompt table is erased. The conditions for erasure are:
Z2/Z3 MACing Rules
•
All Master Keys are erased - can occur for a number of reasons: if a key is loaded in a second key loading session (in PINpad 1000SE mode), certain Packet 17 mode changes, cold power reset, or RAM checksum correction (CRC corruption)
•
Using 02 Transfer Master Key to replace the old master key with the new master key, where the old master key was used to load the RAM prompt table.
•
Loading a new RAM table, using Z10 Load Prompt Table.
An authenticated Packet Z2/Z3 is MACed using a selected Master key as the MAC key. The MAC key used to verify this packet must be 112 bits in length to meet the November, 2003 Visa PED requirements (Appropriate algorithms and key sizes will change slowly over time, as computing capability expands to make brute force attacks more feasible) and must also be tagged as a MAC verification key with appropriate GISKE attributes for specifying MAC usage and algorithm. Version 4E3003x and later releases of the firmware enforce the 112-bit MAC key rule. This MAC key will use the ANSI/ISO MACing algorithms for MACing, available as indicated by the GISKE Key Usage attributes. See GISKE Key Block Specification VPN - 22986 for details of MAC algorithms. Data fields need to be MACed including the all characters inside the range of ‘A’ to ‘Z’ (0x41 ~ 0x5A), and UDCs (e.g.: <US>4E72, all five characters need to be MACed), clear display flag <SUB> and field separator <FS>. If the message contains numeric characters, such as ‘0’ ~ ‘9’ (0x30 ~ 0x39) that are not userdefined characters, then these characters are ignored during the MACing. Characters outside the range of ‘A’ ~ ’Z’ are also ignored. Ignoring these character allows dynamic messages which contain debit/credit amounts to be MACed using static MAC values stored in terminal applications (static because the MAC is over the static text portion of the message). This alleviates the need for the terminal application to dynamically generate MACs over dynamically changing amount fields. When formulating the clear message to be MACed, wherever a nonMACable character is found, the PINpad removes it from the MACing input with the characters shifted left so that there is no gap.
170
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 173
C USTOMIZABLE C OMMAND S PECIFICATION Prompt Tables
If the last MAC input is not on an even 8-byte boundary, the last block will be rightpadded with 0x30’s (‘0’). The four left most bytes (8 hex digits) of the resulting cryptogram will be used for the MAC value. NOTE
Non-MACed Z2/Z3 Message Matching Rules
In PP1000 mode, the Z2/Z3 MACing rules are not used. If MACed Z2 or Z3 packets are received, they are processed as normal Z2 or Z3 packets. The MAC data (MAC value) in the packet is ignored, but response as if it were valid (MAC OK), message is displayed in the LCD. The Z2/Z3 matching rules are for PINpad 1000SE mode only. Characters outside the range of ‘A’ ~ ‘Z’ (0x41 ~ 0x5A) will not be part of matching. For characters inside the range of ‘A’ ~ ‘Z’ (0x41 ~ 0x5A), the match must be exact. UDCs must be part of the matching.
NOTE
In PP1000 mode, the Z2/Z3 matching rules are not used.
Prompt Rule Summary
The following rules apply to message usage and keypad entry with prompt tables:
•
The message in a Z2 or Z3 packet must be MACed or must match a message in the RAM or ROM prompt table list of messages.
•
If not MACed and clear text not found in either prompt table, then Z40 (response Z41) and Z42 (response Z43) will return only non-numeric keys (CLEAR, ENTER, BACKSPACE), and soft function keys (F1, F2 and F3). If numeric keys (0 through 9) are pressed, error beep, ignore the key press.
•
If not MACed and clear text not found in either prompt table, the Z50 (response Z51) is disabled.
•
If not MACed and clear text found in prompt table(s) (either ROM or RAM), then Z40 (response Z41), Z42 (response Z43), Z50 (response Z51) are enable. All keypad input is allowed.
•
If MACed, then Z40 (response Z41), Z42 (response Z43), Z50 (response Z51) are enable. All keypad input is allowed.
•
If the MAC value or data is incorrect, an EOT will be returned (see MACed Z2 Display a String or MACed Z3 Display Rotating Messages for more details) and an error message will appear on the PINpad display (PACKET ERR A).
•
If Packet Z50 is sent and it is not enabled, an EOT will be returned and an error message will be display on the LCD (see Z51 Return String Input for more details).
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
171
Page 174
C USTOMIZABLE C OMMAND S PECIFICATION User Definable Character (UDC) Functions
The above usage rules are also shown in the following table formats. Allow Message Display (Z2/Z3)
PINpad 1000
Allow Numeric Key Entry
Allow Alpha Key Entry (functional key)
Z40 / Z42 Packet Behavior in combination with Z2 / Z3 packets MACed Z2 \ Z3Packets • MAC = OK yes yes yes
• MAC = Bad yes yes yes
• Messages Matched = OK yes yes yes
• Messages Matched = Bad yes yes yes
Non - MACed Z2 \ Z3Packets
Z50 Packet Behavior in combination with Z2 / Z3 packets MACed Z2 \ Z3Packets • MAC = OK yes yes yes
• MAC = Bad yes yes yes
• Messages Matched = OK yes yes yes
• Messages Matched = Bad yes yes yes
Allow Numeric Key Entry
Allow Alpha Key Entry (functional key)
Non - MACed Z2 \ Z3Packets
Allow Message Display (Z2/Z3)
PINpad 1000SE
Z40 / Z42 Packet Behavior in combination with Z2 / Z3 packets MACed Z2 \ Z3Packets • MAC = OK yes yes yes
• MAC = Bad no no no
• Messages Matched = OK yes yes yes
• Messages Matched = Bad yes no yes
Non - MACed Z2 \ Z3Packets
Z50 Packet Behavior in combination with Z2 / Z3 packets MACed Z2 \ Z3Packets • MAC = OK yes yes yes
• MAC = Bad no no no
• Messages Matched = OK yes yes yes
• Messages Matched = Bad yes no no
Non - MACed Z2 \ Z3Packets
User Definable Character (UDC) Functions
172
PINpad 1000SE mode supports User Definable Character (UDC) display in Z2, Z3, Z8, and Z62. UDC is supported in the ROM and RAM prompt tables. A control character, <US> is used to define the start of a user-defined character. The next four bytes define what display segments will be displayed for that character. The LCD segment map is shown in Figure 8.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 175
C USTOMIZABLE C OMMAND S PECIFICATION User Definable Character (UDC) Functions
Z \
A G
N
F
B
H
M I E
C
L K
J D
Figure 8 NOTE dp
PINpad 1000SE LCD Segment Map
1 A maximum of 16 UDCs are allowed in a message block (16 display characters per block).
2 The total number of UDCs per packet is limited to 48, due to the size of RxBuf. (Only Applicable to Z3)
3 A maximum number of 16 characters per message block rule is enforced, if message block contains UDC.
4 Last 16 characters of a message block are displayed, if message block contains no UDC and display characters are more than 16 characters.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
173
Page 176
C USTOMIZABLE C OMMAND S PECIFICATION User Definable Character (UDC) Functions
Display Segments Labels
UDC Character Examples
Byte 1
Byte 2
Byte 3
Byte 4
JIHG
DEFZ dp C B A
KLMN
The character "8" has the following bits set in the display segment data: J I H GD E F Zdp C B AK L M NDisplay Segments Labels 0 1 0 01 1 1 00 1 1 10 0 1 0Binary 4
E
7
2 Hex
The character "I" has the following bits set in the display segment data: J I H GD E F Zdp C B AK L M NDisplay Segments Labels 0 0 0 11 0 0 00 0 0 11 0 0 0Binary 1
Default Existing Character Library LCD Display
8
1
8 Hex
The PINpad 1000SE unit uses the following existing character library:
Control Character
LCD Display
Control Character
LCD Display
Control Character
LCD Display
Control Character
00 00
!
00 E0
“
20 01
#
58 6A
$
1A 5A
%
E2 47
&
AC 53
‘
20 00
(
00 00
)
00 00
*
F0 0F
+
50 0A
,
00 04
-
40 02
.
00 80
/
20 04
0
2E 74
1
00 60
2
4C 32
3
48 72
4
42 62
5
8A 12
6
4E 52
7
00 70
8
4E 72
9
4A 72
:
10 08
;
00 06
<
A0 00
=
48 02
>
00 05
?
40 B8
@
0C 7A
A
46 72
B
58 78
C
0E 10
D
18 78
E
4E 12
F
46 12
G
4E 50
H
46 62
I
18 18
J
08 60
K
A6 02
L
0E 00
M
26 61
N
86 61
0
0E 70
P
46 32
Q
8E 70
R
C6 32
S
4A 52
T
10 18
U
0E 60
V
80 61
W
86 64
X
A0 05
Y
20 09
Z
28 14
'0
0F F0
0.
2E F4
1.
00 E0
2.
4C B2
3.
48 F2
4.
42 E2
5.
8A 92
6.
4E D2
7.
00 F0
8.
4E F2
9.
4A F2
UDC Packet Example
Example of using Packet Z2 - Display a String, to display the character 8 as a UDC: <STX>Z2<SUB>1234567<US>4E72<ETX>{LRC}
The above packet would display 12345678 on the PINpad 1000SE display.
174
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 177
CHAPTER 10 Communication Examples The following are examples of communication flow for operating the PINpad 1000SE device when set for DUKPT. Examples include the initialization sequence, transaction sequence and other sequences (e.g., when customers cancel a PIN or a transaction at various stages of the communication flow).
Initialization Sequence
Cancel Session Request
The following initialization sequence needs to be done at start-up or whenever a PINpad has lost power. Controller
Transmission Direction
PINpad
72 Packet
------>
Clear any PINpad operation
<------
ACK
------>
Disable CANCEL REQUESTED message
Z7 Packet
ACK <-----Z8 Packet
------>
Selected IDLE message
<------
ACK
The PINpad is now ready for a transaction.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
175
Page 178
C OMMUNICATION E XAMPLES
Transaction Sequence
ENTER YOUR PIN Prompt
The following is a sequence for a normal transaction flow.
Controller
Transmission Direction
Z2 Packet
------> <------
Accept and Encrypt PIN
Z60 Packet
PINpad
ACK
------> <------
ACK
<------
Customer enters PIN wait for PIN entry Transfer PIN Block
71 Packet $X.XX AMT Prompt
ACK
------>
Z2 Packet
------> <------
Request Key Code
Z40 Packet
ACK
------> <------
ACK
<------
Z41 Packet wait for confirmation entry Return Key Code THANK YOU Prompt
ACK
------>
Z2 Packet
------> <------
Cancel Session Request
72 Packet
------> <------
The PINpad device is ready for the next transaction.
176
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
ACK ACK
Page 179
C OMMUNICATION E XAMPLES
Customer Cancels PIN
ENTER YOUR PIN Prompt
The following sequence describes what happens when a customer cancels (clears) a PIN entry during a transaction. Controller
Transmission Direction
Z2 Packet
------> <------
PIN Request
Z60 Packet
PINpad
ACK
------> <------
ACK
<------
Customer presses [CLEAR] key wait for PIN entry [CLEAR] Pressed EOT
EOT ENTER YOUR PIN Prompt
Z2 Packet
------> <------
PIN Request
Z60 Packet
ACK
------> <------
ACK
<------
71 Packet wait for PIN entry PIN $X.XX AMT Prompt
ACK
------>
Z2 Packet
------> <------
PINpad Request Key Code
Z40 Packet
ACK
------> <------
ACK
<------
Z41 Packet wait for confirmation entry Return Key Code THANK YOU Prompt
ACK
------>
Z2 Packet
------> <------
Cancel Session Request
72 Packet
ACK
------> <------
ACK
The PINpad device is ready for the next transaction.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
177
Page 180
C OMMUNICATION E XAMPLES
Customer Cancels at Amount Verification
The following example shows what happens when a customer cancels the transaction at the "Amount Verification" prompt.
ENTER YOUR PIN Prompt
Controller
Transmission Direction
Z2 Packet
------> <------
PIN Request
Z60 Packet
PINpad
ACK
------> <------
ACK
<------
71 Packet wait for PIN entry Transfer PIN Block THANK YOU Prompt
ACK
------>
Z2 Packet
------>
$X.XX AMT Prompt
<------
Cancel Session Request
Z40 Packet
Request Key Code
ACK
------> <------
ACK wait for confirmation entry Return Key Code
Customer presses [CLEAR] key <------
ENTER YOUR PIN Prompt
ACK
------>
Z2 Packet
------> <------
PIN Request
Z60 Packet
Z41 Packet
ACK
------> <------
ACK
<------
71 Packet wait for PIN entry Transfer PIN Block $X.XX AMT Prompt
ACK
------>
Z2 Packet
------> <------
Request Key Code
Z40 Packet
ACK
------> <------
ACK
<------
Z41 Packet wait for confirmation entry Return Key Code THANK YOU Prompt
ACK
------>
Z2 Packet
------> <------
Cancel Session Requested
72 Packet
------> <------
The PINpad device is ready for the next transaction. 178
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
ACK ACK