SHA-1 based master-key verification method

A SHA-1 hash algorithm is calculated on the quantity X'01' prepended to the 24-byte register contents.

The resulting 20-byte hash value is used in the following ways:
  • The Key Test and Key Test2 verbs use the first eight bytes of the 20-byte hash value as the random_number variable, and uses the second eight bytes as the verification_pattern.
  • A SHA-1 based master-key verification pattern stored in a two-byte or an eight-byte master-key verification pattern field in a key token consists of the first two or the first eight bytes of the calculated SHA-1 value, respectively.