liveBook · Manning

Diffie-Hellman ratchet

As explained in Real-World Cryptography

A Diffie-Hellman ratchet is a continuously repeated Diffie-Hellman key exchange that refreshes shared keying material as participants replace ratchet key pairs.

A Diffie-Hellman ratchet repeatedly refreshes shared keying material during a conversation. It helps Signal recover from a temporary key compromise instead of leaving every later message exposed. section 10.4 section 10.4.3

The exchange proceeds as a repeating back-and-forth:

  • When Bob receives a new key from Alice, he combines it with his own ratchet key to derive fresh decryption material. section 10.4.3
  • Bob then generates a new random ratchet key, uses it for encryption, and advertises it in subsequent messages. section 10.4.3
  • This ping-pong replaces ratchet key pairs, eventually producing DH output unavailable to an attacker who only briefly compromised one party. section 10.4.3

Alice sends, Bob refreshes

Alice sends a message with a new ratchet public key. Bob performs a Diffie-Hellman exchange with that key, derives message decryption keys through the symmetric ratchet, creates a new ratchet pair, and advertises his public key back.

How Real-World Cryptography covers it

How deep it goes
Explains message advertisements, peer key replacement, DH derivation, and ping-pong recovery, while deferring implementation details.
Examples
Uses Alice-and-Bob message exchanges and diagrams showing public-key refresh, decryption, replacement keys, and combined ratchets.
What it assumes
Assumes familiarity with X3DH and symmetric ratchets as the handshake and message-key foundations surrounding the DH ratchet.
What you can do after
Evaluate how repeated key exchanges limit exposure after temporary compromise and supply fresh encryption and decryption material.
How it connects
Connects Diffie-Hellman exchange with symmetric ratchets, X3DH, forward secrecy, post-compromise security, and the Double Ratchet.

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.