K4 TR-31 key blocks

Needs: Free account

Lesson K4: The header, the key usage and mode of use, versions A to D, wrapping, unwrapping and the MAC.

Sign in to open it. A free account takes a minute.

Sign in Create a free account

The opening of the lesson

Why it matters

When a key leaves an HSM it must travel encrypted. Its purpose must travel with it and must not be changeable. TR-31 key blocks (published by ASC X9, now ANSI X9.143; ISO 20038 is close) do exactly that. They are the format PCI PIN requires for exchanging keys, and the format of almost every modern HSM import and export command.

In the full lesson

  1. The concept
  2. Step by step: reading and unwrapping a block
  3. In the real world
  4. Common mistakes
  5. What to test

What module K4 covers →

The rest of the lesson opens with a free account.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.