payShield host commands

PIN operations

payShield DA — Verify Terminal PIN (IBM)

answers with DB

Verify a terminal PIN using the IBM offset method

Fields

FieldWhat it holds
TPK under LMK32 or 48 or 97 or 129 charsS… key block (97/129 chars), or 32/48 hex under a variant LMK
PVK Pair under LMK32 or 97 or 129 charsS… key block (97/129 chars), or 32 hex under a variant LMK
PIN Block (HEX)16 or 32 chars16 hex chars, or 32 for format 48
Source PIN Block Format2 chars01 (ISO 0), 05 (ISO 1), 34 (ISO 2), 47 (ISO 3), 48 (ISO 4), 04 (PLUS), 35 (Pay Now/Later)
PAN12-19 digit card number
Decimalization Table0123456789012345
PIN Validation Data12 hex, five 'N's = last 5 PAN digits (e.g. 4000001NNNNN), or P+16 hex
PIN Offset4-12 digits, F-padded to 12 on the wire (e.g. 2555FFFFFFFF)

Worked values

Example values for each field. The key blocks work against the Thales test LMK the simulator ships with.

TPK under LMK
S10096P0TE00N00007DCE180AA9A0A8B71990F210BD972B88539513781E3179C7484AC0F661421449E594BB84BBFE3250
PVK Pair under LMK
S10096V2TE00N00006426E5B63A3E97046F1D34EC724082023DE11816F49992217D1A173CA0954ED0C69BB4E342C1A415
PIN Block (HEX)
890EF2F47E6D9A8A
Source PIN Block Format
01
PAN
4000001234567899
Decimalization Table
0123456789012345
PIN Validation Data
400000123456
PIN Offset
2555
Open DA in the simulator

PIN operations