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 LMK32 or 48 or 97 or 129 charsS… key block (97/129 chars), or 32/48 hex under a variant LMK
Key under LMK32 or 48 or 97 or 129 charsS… key block (97/129 chars), or 32/48 hex under a variant LMK
Export Schemeblank (raw), R (X9.143/TR-31), or S (Thales key block)

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
S10096K0TE00N00000663F8250BF0FF91DF4C91CCB0256EC24387973879ADD7A13A565AA103BF7B2DB0ADCB419A4D5115
Key under LMK
S10096P0TE00S0000231814CD01517CB9C0F44C90C55C88072A2378A607DCA4220A3D6DE0954CBAED678CAD9EC60AE3B5
Export as X9.143/TR-31 key block
Key Type
001
ZMK under LMK
S10096K0TE00N00000663F8250BF0FF91DF4C91CCB0256EC24387973879ADD7A13A565AA103BF7B2DB0ADCB419A4D5115
Key under LMK
S10096P0TE00S0000231814CD01517CB9C0F44C90C55C88072A2378A607DCA4220A3D6DE0954CBAED678CAD9EC60AE3B5
Export Scheme
R
Open A8 in the simulator

Key management