payShield host commands

Key management

payShield A2 — Generate and Print a Component

answers with A3

Generate a random key component — the clear text goes to the attached printer; the host receives it encrypted under the LMK (the form A4 consumes)

Fields

FieldWhat it holds
Key Type3 chars000 (ZMK), 001 (ZPK), 002 (TMK/TPK), 003 (PVK), 009 (MAC key)
Component Check FlagOmit or enter 1 to omit the KCV, or 2 to return it in A3
Print OptionOmit for one line, 01 for 16 hex characters per line, or 02 for 32
Key Scheme1 charsS (key block) — or U/T/X under a variant LMK
Print FieldsEnter the text in the order defined by the printer format, separating fields with a semicolon. The Builder adds the terminator when required.
LMK Identifier (optional)2 chars2 digits, e.g. 01 — blank uses the default slot
Key UsageEnter a two-character Thales usage or choose one from the list. The Key Type field on the wire is FFF.
Component Algorithm2 charsD1/T2/T3 (DES single/double/triple) or A1/A2/A3 (AES) — key block LMK; default T2
Mode of UseEnter the mode permitted for this key usage and algorithm.
Component VersionEnter c0 through c9.
ExportabilityEnter E, S or N.
Component optional blocksUp to six blocks. Enter ID, total length in hex and data. The Builder calculates the count. IDs 03, 04 and PB are excluded.
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 and Print a Component

0000A2FFFS~#K0T2Nc0E00

4-char headercommand16 bytes of fields
Send A2 to the simulator

Opens the simulator with this command already filled in.

Key management