Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 11 of 23

PINpad 1000SE Reference and Programmers Guide, pages 101 to 110

Pages 101 to 110 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 101

M ANAGEMENT P ACKETS Z51 Return String Input

Elements Type

Field

Length

Description

<STX> start of packet

1

ASCII Start of Text Control Character; Value: `02h'

Z51 packet

3

Return String Input

[entry] packet parameter

0-49

Keypad character input as ASCII string; ‘?' if timeout; null if only [ENTER] was pressed

<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 55 characters, minimum 6 characters

Example

<STX> Z51 123456 <ETX>{LRC}

The PINpad sends the controller the keypad entry 123456.

Protocol Controller

Transmission Direction

Z50 packet

------>

PINpad

<------

ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs) Customer presses keys Z51 packet or <EOT>

<------

(see PINpad 1000SE Mode for more details) ACK = LRC OK

------>

NAK = LRC incorrect (EOT after 3 NAKs)

Key Value Table Key

1

2

3

4

5

6

7

8

9

0

F1

F2

F3

Keycode

1

2

3

4

5

6

7

8

9

0

A

B

C

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

99

Page 102

M ANAGEMENT P ACKETS Z51 Return String Input

100

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 103

CHAPTER 6 Master/Session Message Packets When the PINpad device is set in the Master/Session mode (1DES or 3DES), the following message packets and formats are supported. NOTE

The default mode of the PINpad at initial power up is PP1000 mode, MS 1DES mode.

Functional Listing of PINpad Device Messages

The messages sent to and from the PINpad device to manipulate operations or control specific PINpad functions are divided into three functional groups. These groups include packets for interactive diagnostic tests, and standard and custom communication.

Interactive Diagnostic Test

Interactive tests between the PINpad unit and the controller run only upon request. These tests use the VeriFone-defined message Packets 01-15, and can be run during the same session that you load master keys, use the MKI module or on request from the PINpad controller. See other packets listed under Management Packets.

Standard Communication

NOTE

Message

Description

02

02 Transfer Master Key

04

04 Check Master Key

08

08 Select Master Key

The standard messages sent between the PINpad device and the controller follow the VISA message packet format and allow the PINpad unit to be programmed with standard VISA prompts and control the PINpad display. There is sufficient variation in Packets 70 and 71 to merit specific discussions in this chapter, as well as in the DUKPT Message Packets chapter. Message

Description

70

70 Request PIN Entry*

71

71 Transfer PIN Block*

If using the optional DUKPT method, message Packets 70 and 71 have been redefined to meet the DUKPT algorithm specification by VISA. See DUKPT Message Packets for details of redefinitions. PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

101

Page 104

M ASTER /S ESSION M ESSAGE P ACKETS Functional Listing of PINpad Device Messages

Custom Communication

NOTE

These message packets were created to provide the PINpad device with special prompts and data entry requirements for custom applications. The request and response messages pass between the controller and the PINpad, allowing the controller to customize prompts and control PINpad operations. There is sufficient variation in Packets Z60 and Z62 to merit specific discussions in this chapter, as well as in the DUKPT Message Packets chapter. Message

Description

Z60

Z60 Accept and Encrypt PIN*

Z62

Z62 Accept and Encrypt PIN, Display Custom Messages*

If using the optional DUKPT method, message Packets Z3, Z60, and Z62 have been redefined to meet the DUKPT algorithm specification by VISA. See DUKPT Message Packets for details of redefinitions.

102

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 105

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

02 Transfer Master Key Sends a master key to the PINpad device for storage in one of the ten master key memory locations.

Category Comments

Interactive Diagnostic Test The master device uses this packet to send a master key to the PINpad. The response from PINpad to master device depends on the PINpad Key Management Option register. The PINpad supports 10 sets of single, double, or triple length keys. Single keys can be replaced by double or triple length of key without restriction, and vice versa. Packet 02 exists in two formats, with a communication protocol that depends on the size of the Master Key Field in ASCII:

NOTE

Communication Protocol

Size of Master Key Field in ASCII

Key-only Format

1DES (16AH)

GISKE Key Block Format

3DES GISKE mode (120AH)

When the PINpad receives Packet 02 (1DES or 3DES Master Key), it updates the master key in RAM and sets the currently transferred master key ID as the currently selected master key ID in PINpad.

•

The packet overwrites any master key previously stored at the specified memory location and automatically verifies that the PINpad receives the same key that is sent.

•

If there is any valid master key in the PINpad, the currently selected master key ID is always available. 17 Set Key Management Mode can be used to erase all the master keys stored in the PINpad.

Before transferring the master key, verify if you are overwriting a key by using 04 Check Master Key. This option is disabled when the unit is set for DUKPT.

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

103

Page 106

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

Packet Format

<SI> 02 [address] [hhh...hh] <SO>{LRC}

Elements Type

Field

Length

Description

<SI> start of packet

1

ASCII Shift In Control Character; Value: `0Fh'

02 packet type

2

Transfer Master Key

[address] packet parameter

1

Master Key ID Address; Range: 0-9

GISKE KLK: 'F' [hhh...hh] packet parameter

16 or 120

ASCII message in ASCII • 16AH - 1DES mode for single length key • 120AH - GISKE mode for Double/Triple

Length Key (including KEY Block Header, Master Key, and MAC) See GISKE Key Block Specification VPN - 22986. <SO> end of packet character

1

ASCII Shift Out Control Character; Value: `0Eh'

{LRC} block code check

1

Error Check Character

Packet Length: maximum 126 characters, minimum 22 characters

Example

<SI> 02 0 0123456789ABCDEF <SO>{LRC}

This packet loads master key 0123456789ABCDEF into master key memory location 0.

Protocol Controller

Transmission Direction

02 packet

------> <------

PINpad

ACK = LRC OK NAK = LRC incorrect

<------

02 packet echo

------>

NAK if LRC incorrect

PINpad stores new master key only upon receipt of ACK.

(EOT after 3 NAKs)

EOT terminates session.

ACK if LRC and key echo ok

EOT if LRC correct but key echo incorrect <------

104

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

EOT

Page 107

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

Key Characteristics

This section describes the details of PINpad Key Attributes, Key Version and Key Length. Key Attributes On erasure, a master key’s usage attribute is set to 0, version is set to 0, and length set to 1DES.

NOTE

Each key has it’s own Key Attribute Register, Key Version Register and Key Length Register.

Key Attributes Registers

Comments

[XX]

Value – Definition • ‘AN’ – ANY * • ‘K0’ – Key Encryption or Wrapping • ‘G0‘ – MAC Generation • ‘M0’ – MAC Verification • ‘P0’ – Pin Encryption • ‘00’ = ISO 9797-1, MAC Algorithm 1 – 56 bits • ‘10’ = ISO 9797-1, MAC Algorithm 1 – 112 bits • ‘20’ = ISO 9797-1, MAC Algorithm 2 – 112 bits • ’30’= ISO 9797-1, MAC Algorithm 3 – 112 bits • ‘40’= ISO 9797-1, MAC Algorithm 4 – 112 bits • ‘50’= ISO 9797-1, MAC Algorithm 5 – 56 bits • ‘60’= ISO 9797-1, MAC Algorithm 5 – 112 bits

NOTE

Note:

The original GISKE (ASCII-Hex) Key Usage Attribute value is saved in the RAM (2bytes).

Note:

ANY means that Key is available in PINpad, but the Key was not loaded using GISKE format.

These Key Attributes Registers details apply to 1DES master key, 3DES master key (GISKE), and KLK (GISKE). Key Length Length

Comments

1DES

Single length key, Key Length Register = 00

3DES

Double length key, Key Length Register = 01

3-Key 3DES

Triple length key, Key Length Register = 10

Reserved

11

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

105

Page 108

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

Key Version The version of an incoming GISKE format key must be greater than or equal to the version set in the key attribute table for all keys (e.g.: 1DES master key, 3DES master key (GISKE) and KLK (GISKE)). Summary of Rules – GISKE Key version:

NOTE

•

If the Key Version of the New Key is greater than or equal to the Current Key Version, then OK – the PINpad updates the new key.

•

If the Key Version of the New Key is less than the Current Key Version, then Error – the PINpad rejects the new key.

This key version comparison is only carried out to the key that is replacing, not to any other keys. KLK GISKE KLK is loaded in clear if KLK is not currently present in the PINpad. The following rules apply:

•

The version of the incoming key is not checked.

•

The version of the stored key is the version carried in the message.

•

The stored key attribute will be set to that carried by GISKE which should be ‘K0.’

GISKE KLK is loaded in cipher text if KLK attribute in storage location is ‘K0’ and KLK present flag in the PINpad is set. The new GISKE KLK load is protected by the previous GISKE KLK. The following rules apply:

106

•

The current and new KLK key must be a double length key.

•

The version of the key is checked against the stored version.

•

The version of the stored key is the version carried in the message.

•

The stored key usage attribute will be set to that carried by GISKE which should be ‘K0.’

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 109

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

Summary of Rules Loading clear text KLK Loading cipher text KLK

KLK not present

KLK present Error – PINpad returns error message

Ok – PINpad stores first KLK. Error – PINpad returns error message

Response NOT encrypted with previous KLK Encrypted with previous KLK

Error – PINpad returns error message

Response Incorrect key version Correct key version

Error – PINpad returns error message

Response Key Attribute <> “KEK”

Error - PINpad returns error message

Key Attribute = “KEK”

PINpad store KLK & it’s attributes

3DES All 3DES key loads will be in GISKE format. No existing unit uses 3DES mode, therefore there is no backward compatible issue here. 3DES master keys will be loaded in clear text without cryptographic protection if KLK present flag is clear in the PINpad. The MAC value will be all zero bytes. The following rules apply:

•

The version of the incoming key is not checked.

•

The version of the stored key is the version carried in the GISKE message.

•

The stored key attribute will be set to that carried by GISKE.

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

107

Page 110

M ASTER /S ESSION M ESSAGE P ACKETS 02 Transfer Master Key

3DES master keys will be loaded in cipher text under protection of KLK if KLK present flag is set. The following rules apply:

•

The KLK must be 3DES.

•

The version of the key is checked against the stored version.

•

The version of the stored key is the version carried in the message.

•

The stored key usage attribute will be set to that carried by GISKE.

Summary of Rules –

KLK is loaded

KLK is NOT loaded

3DES master key loading

(current key attribute register in PINpad = GISKE format)

(PINpad KLK present flag is clear)

Clear text 3DES Master Key loading

Error – PINpad returns error message

PINpad stored 3DES Key

Cipher text 3DES Master Key loading

Response Incorrect key version

Error - PINpad returns error message

Correct key version

PINpad decrypts & stores 3DES Key Master Key Attribute = GISKE format

Error – PINpad returns error message

Length = 3DES

1DES 1DES master keys loaded in short-form method will have the ‘ANY’ and 1DES attributes set. 1DES master keys in GISKE format will be loaded in GISKE clear text without cryptographic protection if KLK present flag is clear in the PINpad. The MAC value will be all zero bytes. The following rules apply:

•

The version of the incoming key is not checked.

•

The version of the stored key is the version carried in the GISKE message.

•

The stored key attribute will be set to that carried by GISKE.

1DES master keys in GISKE format will be loaded in cipher text under protection of KLK if KLK present flag is set. The following rules apply:

•

The KLK master key must be 3DES.

•

The version of the key is checked against the stored version.

•

The version of the stored key is the version carried in the message.

•

The stored key attribute will be set to that carried by GISKE.

Master Key Addressing The range is 0-9. NOTE

108

Key Length information associated with each key is used to identify whether the a key is a single/double/triple length key).

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE