payShield host commands

Key management

payShield A6 — Import Key

answers with A7

Import a key encrypted under a ZMK — raw hex, or a Thales/X9.143-TR-31 key block

Fields

FieldWhat it holds
Key Type3 chars000 (ZMK), 001 (ZPK), 002 (TMK/TPK), 003 (PVK), 009 (MAC key)
ZMK under LMKKey Block LMK: enter the complete S key block. Variant LMK: 16 hex digits, U followed by 32, or T followed by 48.
Key under ZMK32 or 48 or 80 charsraw hex under the ZMK, or a Thales/X9.143 TR-31 key block
Modified Key UsageOptional · two characters for the imported Thales block (A6 TR-31 input, Core p.78).
Additional optional blocksOptional · ID + 2H total length + data, e.g. 0508Note. Count is calculated; up to 6 blocks. KS/KV/PB forbidden.
Key Usage (#)Non-key-block input → Key Block LMK. Optional section; all header fields are required if used.
Mode of Use (#)One character; must be permitted for the selected usage.
Key Version (#)00–99; required when the # section is used.
Exportability (#)N or S; required when the # section is used.
Optional blocks (#)ID + 2H total length + data. Up to 8 blocks; PB forbidden. Count is calculated.
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.

From raw hex under ZMK
Key Type
001
ZMK under LMK
S10096K0TB00N000091FCBC2E0972E222F1DC955E7C68F3B6159F262FE5916445085DA6C4D2C285C571F02537D416C76B
Key under ZMK
F06AE033C6EA58C499F8AF232C0CB0FB
From an X9.143/TR-31 key block
Key Type
001
ZMK under LMK
S10096K0TB00N000091FCBC2E0972E222F1DC955E7C68F3B6159F262FE5916445085DA6C4D2C285C571F02537D416C76B
Key under ZMK
B0080P0TB00E00003BD4BEE8DFD8CB9A7D83605E6ECDE2239DE86A94B2A0626A8774851E864051A8
Open A6 in the simulator

Key management