payShield host commands

Key management

payShield A8 — Export Key

answers with A9

Export a key under a ZMK — raw hex, or as a key block (scheme R = X9.143/TR-31, S = Thales)

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 LMKKey Block LMK: enter the complete S key block. Variant LMK: 16 hex digits, U followed by 32, or T followed by 48.
Export Schemeblank (raw), R (X9.143/TR-31), or S (Thales key block)
Export optional blocks ($)Optional · $ + count + ID/length/data, e.g. $010108Ab c. TR-31 output only (Core p.86).
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.

Export under ZMK (raw hex)
Key Type
001
ZMK under LMK
S10096K0TB00N000091FCBC2E0972E222F1DC955E7C68F3B6159F262FE5916445085DA6C4D2C285C571F02537D416C76B
Key under LMK
S10096P0TE00S0000231814CD01517CB9C0F44C90C55C88072A2378A607DCA4220A3D6DE0954CBAED678CAD9EC60AE3B5
Export as X9.143/TR-31 key block
Key Type
001
ZMK under LMK
S10096K0TB00N000091FCBC2E0972E222F1DC955E7C68F3B6159F262FE5916445085DA6C4D2C285C571F02537D416C76B
Key under LMK
S10096P0TE00S0000231814CD01517CB9C0F44C90C55C88072A2378A607DCA4220A3D6DE0954CBAED678CAD9EC60AE3B5
Export Scheme
R
Open A8 in the simulator

Key management