payShield host commands

Data & MAC

payShield LQ — Generate an HMAC

answers with LR

Authenticate message bytes using a protected HMAC key. Local execution supports Key Block LMKs.

Fields

FieldWhat it holds
Hash identifierFF for a Key Block LMK
HMAC length (bytes)Four decimal digits, e.g. 0032 for SHA-256
HMAC key format04 for Key Block LMK, 00 for Variant LMK
HMAC key under LMKBare key block for format 04, encrypted bytes in hex for format 00
Message data (hex)Hexadecimal byte pairs. Leave empty for a zero-byte message.
Message trailerOptional · up to 32 printable ASCII characters.

On the wire

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

Generate an HMAC

0000LQFF003204FFFF1012863HC00N0000414000D6511716C61BB166F2F2DFD653BA34E793ADCC267311119F1966003E2686D29E58E786F82689FDCC55445128E041F63015451C8CCE00008<4869205468657265>

4-char headercommand153 bytes of fields
Send LQ to the simulator

Opens the simulator with this command already filled in.

Data & MAC