M2 MAC

Needs: Supporter

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

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

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 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.