payShield host commands

Key management

payShield BU — Generate KCV

answers with BV

Generate Key Check Value

Fields

FieldWhat it holds
Key type codeTwo hexadecimal digits. Use FF for a Key Block LMK.
Key length flagF for a Key Block LMK. For DES or TDES under a Variant LMK, use 0, 1 or 2.
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.
Three-digit key typeAfter FF, enter FFF for a Key Block LMK. The Builder adds the semicolon.
Output options3 flags: length 0/1 · masquerade check 0/1 · KCV 0=16 or 1=6 digits. Example: 101 (Core p.505).
Message trailerOptional · up to 32 ASCII characters, echoed unchanged (Core p.506).

Worked values

Example values for each field. The key blocks work against the Thales test LMK the simulator ships with.

Key type code
FF
Key length flag
F
Key under LMK
S10096P0TE00N00004648B9AA7F4428AADA1F0FAF8F1F5CD4A7857B6300AC04678A05A8989368E22F903C80379DD51A0E
Three-digit key type
FFF
Output options
001
Open BU in the simulator

Key management