payShield host commands

Data & MAC

payShield GM — Hash Data

answers with GN

Generate hash of data block

Fields

FieldWhat it holds
Hash Algorithm2 chars01 (SHA-1), 02 (MD5), 03 (ISO 10118-2, physical HSM only), 04 (no hash), 05 (SHA-224), 06 (SHA-256), 07 (SHA-384), 08 (SHA-512)
Data (HEX)Hexadecimal byte pairs, up to 32000 bytes
Message trailerOptional · up to 32 printable ASCII bytes

On the wire

The four zeros are the message header. The device echoes them in its response.

Hash Data

0000GM0600020KeyLab HSM Simulator

4-char headercommand27 bytes of fields
Send GM to the simulator

Opens the simulator with this command already filled in.

Data & MAC