K4 TR-31 key blocks

Needs: Supporter

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

This is a supporter feature. Create a free account, then try every supporter feature free for 7 days.

Sign in Create a free account See plans

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 supporter pass, which you can try free for 7 days.
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.