payShield host commands

PIN operations

payShield CA — Translate PIN TPK→ZPK/BDK (DUKPT)

answers with CB

Translate a PIN from TPK to ZPK or BDK (3DES/AES DUKPT) encryption — a key-block destination with usage B0/41 selects the DUKPT path; under a variant LMK the wire flags it with * (BDK-1) or ~ (BDK-2)

Fields

FieldWhat it holds
TPK under LMKKey Block LMK: enter the complete S key block. Variant LMK: 16 hex digits, U followed by 32, or T followed by 48.
ZPK under LMK32 or 48 or 97 or 129 charsS… key block (97/129 chars); CA: a BDK block (usage B0/41) selects DUKPT — '*' is the variant-LMK flag
KSN Descriptor3 chars3 hex: BDK-id len / reserved / device-id len (e.g. A05) — BDK destination only
Key Serial Number20 chars20 hex digits — BDK/DUKPT path only
Maximum PIN Length4-12 (default 12)
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)
Destination PIN Block Format2 charsdefaults to the source format
PAN relationshipDifferent PANs requires Enable use of Tokens in PIN Translation on the selected HSM.
PAN12-19 digit card number
Destination PANPAN used to form the destination PIN block.
Message trailerOptional · up to 32 printable ASCII bytes, echoed unchanged (Core pp.341–342).

On the wire

The four zeros are the message header. The device echoes them in its response.

To a ZPK

0000CAS10096P0TD00N00009B3836B758411015B034423C24E9956535729BD7BFAA3419B2A49A109237A711AF8A658461C6B25FS10096P0TE00N00004648B9AA7F4428AADA1F0FAF8F1F5CD4A7857B6300AC04678A05A8989368E22F903C80379DD51A0E12890EF2F47E6D9A8A0101000123456789

4-char headercommand228 bytes of fields
To a BDK (DUKPT, selected by key usage)

0000CAS10096P0TD00N00009B3836B758411015B034423C24E9956535729BD7BFAA3419B2A49A109237A711AF8A658461C6B25FS10096B0TX00N00005798E024663B88B6C7EBF4F467C13E77C7A1D019728C24F2D0C8CD1A20DD92550FD434C9FBEA561DA05BC75601102A00040001F12890EF2F47E6D9A8A0101000123456789

4-char headercommand251 bytes of fields
Send CA to the simulator

Opens the simulator with this command already filled in.

PIN operations