liveBook · Manning

Authenticated key exchange

As explained in Real-World Cryptography

A key exchange protocol that authenticates at least one party to prevent an active man-in-the-middle attacker from impersonating that party.

An authenticated key exchange lets parties agree on a shared secret while authenticating at least one side. Without authentication, a passive MITM cannot derive the secret, but an active MITM can impersonate both parties by replacing their public keys. section 5.1 section 5.5

A one-sided authenticated exchange proceeds in clear stages:

  • The authenticated party generates a key-exchange key pair and sends its public key with authentication evidence. section 7.1.2
  • The other party verifies the evidence using a previously known public verifying key, then uses the key-exchange public key to derive a shared secret. section 5.1 section 7.1.2
  • If verification fails, the party aborts instead of accepting a potentially intercepted exchange. section 7.1.2

A time service

A time service can provision users with its public key rather than manually sharing a MAC key with every user. Users can authenticate the server’s side of each exchange, preventing an active MITM from impersonating the server. The client remains unauthenticated unless it also provides authentication; authenticating both sides creates a mutually authenticated key exchange. section 5.1 section 5.5

How Real-World Cryptography covers it

How deep it goes
Explains passive and active attacks, one-sided and mutual authentication, signatures, and verification failure, but avoids formal protocol proofs.
Examples
Uses a time service, signed key-exchange public keys, MITM diagrams, and a C key-exchange listing.
What it assumes
Assumes familiarity with shared secrets and public keys while motivating the need for authentication through MAC and MITM scenarios.
What you can do after
Apply it by provisioning a trusted public key, verifying authentication evidence, and aborting exchanges that fail verification.
How it connects
Connects public-key cryptography, key exchange, message authentication codes, digital signatures, Diffie-Hellman, and man-in-the-middle attacks.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.