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 12 of 23

PINpad 1000SE Reference and Programmers Guide, pages 111 to 120

Pages 111 to 120 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 111

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

Communication Protocol - Key-only Format Each key stored in the PINpad contains its own key attributes. However, this is information is not available when key is loaded using the key-only format (as comparing to the GISKE communication protocol). Therefore, the PINpad sets the following default attributes to the key: Key Attributes

Value

Hex

Definition

Key Usage

‘AN’

0x41, 0x4E

Any, no special restrictions

Key Algorithm

‘D’

0x44

DES

Key Mode of Use

‘N’

0x4E

No special restrictions

Key Version

‘00’

0x30, 0x30 version = zero

Key Length

‘1’

0x31 single length key

The single-DES communication protocol between Master Device and PINpad is described below. Controller

Transmission Direction request packet:

------>

PINpad

<SI>02[n][hhhhhhhhhhhhhh hh]<SO>{LRC}

<------

ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs)

<------ response packet: <SI>02[n][hhhhhhhhhhhhhh hh]<SO>{LRC}

ACK = LRC OK, and key echo OK

------>

NAK = LRC incorrect

The PINpad saves new master key ONLY upon receipt of ACK. EOT terminates the entire session.

(EOT after 3 NAKs) EOT if LRC correct but key echo is incorrect <------

EOT

Sample Packet of Key-only Format <SI>0200123456789ABCDEF<SO>{LRC}

This sample packet requests the PINpad to load master key 0123456789ABCDEF into location '0'.

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

109

Page 112

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

Communication Protocol - GISKE Key Block Format The 3DES communication protocol between Master Device and PINpad is documented in the following section. Sample Packet of GISKE Key Block Format <SI>0200123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF01 23456789ABCDEF0123456789ABCDEF012345678901234567890123<SO>{LRC}

This sample packet requests the PINpad to load GISKE Key Block (120 bytes, shown below) to address [0]. GISKE Key Block: 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012345678 9ABCDEF0123456789ABCDEF012345678901234567890123

Response Format Type

Field

Length

Description

<SI> start of packet

1

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

02 packet type

2

Transfer Master Key

[r] packet parameter

1

Response Code [0 – 9] • 0 – No Error • 1 – Error, PINpad in incorrect KMM (for details, see Rules of Key Management Switching) • 2 – Error, incorrect Key Usage / Mode of Use / Algorithm / Key Length • 3 – Error, version error • 4 – Error, KLK already exists, new KLK is not encrypted from the previous KLK • 5 – Error, GISKE decryption/MAC error. • 6 – Error (This error is not applicable to the PINpad 1000SE). • 7 – Error, Inappropriate Master key addressing. <SO> end of packet character

1

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

{LRC} block code check

1

Error Check Character

Packet Length: maximum 6 characters, minimum 6 characters

Example Response <SI> 02 0 <SO>{LRC}

110

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 113

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

Communication Protocol Controller

Transmission Direction request packet:

------>

PINpad

<SI>02[r][hhh.hhh]<SO>{L RC}

<------

ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs)

<------ response packet: <SI>02[r]<SO>{LRC}

ACK = LRC OK, No error, and key echo OK

------>

NAK = LRC incorrect

The PINpad saves new master key ONLY upon receipt of ACK. EOT terminates the entire session.

(EOT after 3 NAKs) EOT if LRC correct but key echo is incorrect <------

EOT

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

111

Page 114

M ASTER /S ESSION M ESSAGE P ACKETS 04 Check Master Key

04 Check Master Key Verifies if the PINpad device has a master key already stored in a specific master key memory location.

Category Comments

Interactive Diagnostic Test The controller sends the request packet to verify if a master key is in a specific location. The PINpad device checks the key address and sends a response packet back to the controller indicating whether there is or is not a resident master key in that memory location. The PINpad unit has 10 master key memory locations. Use Packet 04 before sending new keys to prevent the accidental overwriting of a master key. Packet 04 has two types of communication format:

•

Key-only Format

•

GISKE Key Block Format

The communication format depends on the PINpad Key Management setting and length of the key at [address]. The usage of the communication protocol is described in following table. PINpad Key Management Setting

Key Length at [address]

1DES mode

1DES (single length key)

Key-only Format

3DES (single/ double/triple length key)

GISKE Key Block Format

1DES (single length key)

GISKE Key Block Format

3DES (double/triple length key)

GISKE Key Block Format

Mixed or 3DES mode

Communication Protocol Used

Note:

If a single/double/triple length key stored in the PINpad contains the Key Attributes information, then the Master Device will understand the GISKE Key Block Format communications protocol.

The formats for both the request to the PINpad unit and the response from the PINpad unit are shown below. NOTE

This option is disabled when the PINpad unit is set for DUKPT.

112

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 115

M ASTER /S ESSION M ESSAGE P ACKETS 04 Check Master Key

Request Format

<SI> 04 [address] <SO>{LRC}

Request Format Elements Type

Field

Length

Description

<SI> start of packet

1

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

04 packet

2

Master Key Check

[address] packet parameter

1

Master Key Address Range: 0-9 KLK address: F

<SO> end of packet character

1

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

{LRC} block code check

1

Error Check Character

Packet Length: maximum 6 characters, minimum 6 characters

Key-only Format Response Format

<SI> 04 [response code] <SO>{LRC}

Key-only Format Response Elements Type

Field

Length

Description

<SI> start of packet

1

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

04 packet type

2

Master Key Check

[response] packet parameter

1

Response Code Range: • 0 = No Master Key at address • F = Master Key at address

<SO> end of packet character

1

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

{LRC} block code check

1

Error Check Character

Packet Length: maximum 6 characters, minimum 6 characters

Key-only Format Examples

<SI> 045 <SO>{LRC}

Packet requests the PINpad device check for the presence of a master key at its master key Memory Location 5. <SI> 040 <SO>{LRC}

Response packet indicates memory location doesn't contain master key (0). <SI> 04F <SO>{LRC}

This response packet indicates the memory location contains master key (F).

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

113

Page 116

M ASTER /S ESSION M ESSAGE P ACKETS 04 Check Master Key

GISKE Key Block Format Response Format

<SI> 04 [r] [kua] [a] [MOUA] [kv] [kl] <SO>{LRC}

GISKE Key Block Format Response Elements Type

Field

Length

Description

<SI> start of packet

1

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

04 packet

2

Master Key Check

[r] packet parameter

1

Response Code • 0 - No Master Key at [address] • F - Master Key present at [address]

[kua] packet parameter

2

Key Usage Attribute (optional); used only if Master Key Present at address [a] 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

[a]

114 packet parameter

1

Note:

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

Note:

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

Algorithm Attribute (optional); used only if Master Key Present at address [a] Value

Definition [value stored in Key Attributes register]

• 'D'

DES

[0]

•

Reserved

[1]

•

Reserved

[2]

•

Reserved

[3]

• 'T'

TDES

[4]

•

Reserved

[5] ~ [F]

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

Page 117

M ASTER /S ESSION M ESSAGE P ACKETS 04 Check Master Key

Type

Field

Length

Description

[MOUA] packet parameter

1

Mode of Use Attribute (optional); used only if Master Key Present at address [a]

[kv] packet parameter

2

Value

Definition [value stored in Key Attributes register]

• 'N'

No special restrictions [0]

• 'E'

Encryption only

[1]

• 'D'

Decryption only

[2]

•

Reserved

[3]

• '0'

IV

[4]

• 'G'

MAC Generate

[5]

• 'V'

MAC Verify

[6]

• 'C'

Calculate = generate or verify [7]

•

Reserved

[8] ~ [F]

Key Version (optional); used only if Master Key Present at address [a] [kv] is a two-digit ASCII character version number, optionally used to prevent re-injection of old keys. If not used, this field is normally filled with ASCII '0' (0x30). Note:

[kl] packet parameter

1

The PINpad allocates 1 byte (per key) for each key version register.

Key Length (optional); used only if Master Key Present at address [a] Key Lengths can be: • "1" - single length key • "2" - double length key • "3" - triple length key Note:

The PINpad allocates 1 byte (per key) for each key version register.

<SO> end of packet character

1

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

{LRC} block code check

1

Error Check Character

Packet Length: maximum 13 characters, minimum 13 characters NOTE

To save storage space in RAM, both the Algorithm Attribute and the Mode of Use Attribute are individually converted to [x], a Hex number ranging form 0 ~ F (4 bits). In the response packet, the PINpad converts the each attribute number back to characters used in GISKE specification.

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

115

Page 118

M ASTER /S ESSION M ESSAGE P ACKETS 04 Check Master Key

Protocol Controller

Transmission Direction

04 request packet

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

PINpad

ACK = LRC OK NAK = LRC incorrect

<------

PINpad checks requested memory location for 04 response packet 04 response packet

ACK = LRC OK

------>

NAK = LRC incorrect (EOT after 3 NAKs) <------

116

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

EOT

Page 119

M ASTER /S ESSION M ESSAGE P ACKETS 08 Select Master Key

08 Select Master Key Selects one of the 10 possible master keys (0-9) stored in the PINpad master key memory locations. NOTE

This option is disabled when the PINpad unit is set for DUKPT.

Category Comments

Interactive Diagnostic Test The master device sends this packet to the PINpad to select one of the ten possible master keys (0-9). VeriFone recommends that the controlling device always send this packet first before sending a packet requesting PIN entry (70/ Z60/Z62). VeriFone recommends that the master device should always send this packet first before sending a packet (e.g. Packet 70) to request PIN entry.

Packet Format

<SI> 08 [address] <SO>{LRC}

Elements Type

Field

Length

Description

<SI> start of packet

1

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

08 packet type

2

Select Master Key

[address] packet parameter

1

Master Key address Range: 0-9

<SO> end of packet character

1

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

{LRC} block code check

1

Error Check Character

Packet Length: maximum 6 characters, minimum 6 characters

Example

<SI> 08 7 <SO>{LRC}

Selects master key 7.

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE

117

Page 120

M ASTER /S ESSION M ESSAGE P ACKETS 08 Select Master Key

Protocol Controller

Transmission Direction

08 packet

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

PINpad

ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs) PINpad makes selected master key current No response, if incorrect Master Key is selected (see Note).

<-----NOTE

118

EOT

If Master Key address does not contain any key, the PINpad will still set the currently selected key as the active master key due to the backward compatibility requirements. Functions requiring the usage of the "empty" active master key are responsible to carry out the error code response

PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE