M2 MAC

Needs: Free account

Lesson M2: CBC-MAC, retail MAC, CMAC and HMAC: padding, truncation, what is MACed and with which key.

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

Encryption hides data, but it does not stop anyone changing it. A message authentication code (MAC) proves that a message comes from someone holding the key and was not altered on the way:

  • an amount changed in transit;
  • a response code flipped from 05 to 00;
  • a replayed approval.

These are the attacks a MAC stops. Terminal–host and host–host links carry one in field 64 or 128.

In the full lesson

  1. The concept
  2. Step by step: retail MAC
  3. Keys
  4. Common mistakes
  5. What to test

What module M2 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.