payShield host commands

Card & EMV

payShield K4 — Generate ARQC

answers with K5

Generate a transaction cryptogram using an E0 issuer master key. Schemes 2 and 3 use two-key TDES. Scheme 9 uses an AES MK-AC and CMAC over the supplied transaction bytes.

Fields

FieldWhat it holds
Mode1 chars0 · generate ARQC
Scheme ID1 chars2 · Option A, 3 · Option B, 9 · Option C
MK-AC under LMK32 or 97 or 129 charsS… key block (97/129 chars), or 32 hex under a variant LMK
Packed PAN and sequence number (hex)8 bytes for scheme 2, 8–99 bytes for schemes 3 and 9
ATC (HEX)4 chars4 hex chars (2 bytes)
Transaction Data (HEX)Concatenated EMV transaction data in hex (host adds any 0x80 padding)
Message trailerOptional · up to 32 printable ASCII characters.

Worked values

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

Mode
0
Scheme ID
2
MK-AC under LMK
S10096E0TX00N000012E905F155733E03B02AE8CE651EE849FC5023F815590ECD81B8412231A656AC2BE2CAF85F84352F
Packed PAN and sequence number (hex)
0587803806771000
ATC (HEX)
0012
Transaction Data (HEX)
00000000730000000000000000760000040000098620051800443085D27900001201A031F800000080
Open K4 in the simulator

Card & EMV