Diffie-Hellman: secret and identity
Diffie-Hellman: secret and identity
Diffie-Hellman: secret and identity
Play silently with captions on provisional timing; narration audio is pending. States and timing are teaching illustrations, not measured protocol time. Choose Reduced motion for a complete still at each supported beat. Beats marked CANNOT SHOW remain caption-only.
Full transcript — Diffie-Hellman: secret and identity (8 beats)
B1 — New sensor
You are the engineer bringing a new sensor online for its first connection to the cloud. No shared secret is installed. Your sensor needs keys to protect its readings, and it needs to know whose connection it is trusting. How can that begin?
Model caption: A new sensor meets the cloud without an installed shared secret. It needs keys to protect readings and a way to identify its peer.
B2 — Key agreement
Diffie-Hellman is a way for two peers to arrive at the same shared secret without sending that secret over the network. Each combines a private number with the other peer's public value. Call your sensor Alice and the cloud Bob for the example.
Model caption: Diffie-Hellman lets Alice and Bob combine their own private numbers with each other's public values to reach a shared secret without sending it.
B3 — Private inputs
Alice and Bob agree publicly on twenty-three and five. Alice keeps six private; Bob keeps fifteen private. Those private numbers determine how many copies of five each multiplies together. These deliberately tiny numbers make the arithmetic manageable, but they are easy to break.
Model caption: Public parameters: twenty-three and five. Alice's private exponent is six; Bob's is fifteen. These tiny teaching numbers are easy to break.
B4 — Public exchange
Alice multiplies six copies of five together, divides the result by twenty-three, and keeps the remainder: eight. Bob multiplies fifteen copies of five together, divides by twenty-three, and keeps the remainder: nineteen. Alice sends eight to Bob; Bob sends nineteen to Alice. Eve, an observer who only listens, can copy those public values. The private numbers stay with their owners.
Model caption: Six copies of five multiplied together, divided by twenty-three, leave eight. Fifteen copies leave nineteen. Alice sends eight and Bob sends nineteen; passive Eve can copy them. Six and fifteen stay private.
B5 — Shared secret
Now Alice multiplies six copies of Bob's nineteen together. She divides the result by twenty-three and keeps the remainder: two. Bob multiplies fifteen copies of Alice's eight together. He divides the result by twenty-three and also keeps the remainder: two. Different private numbers and different public values have led both peers to the same shared secret, two, without sending it.
Model caption: Alice multiplies six copies of nineteen, divides by twenty-three, and keeps remainder two. Bob multiplies fifteen copies of eight, divides by twenty-three, and also keeps two. Neither sends the shared two.
B6 — Key derivation
The shared secret, two, then goes into a key derivation function: a process that combines the shared secret with context from the exchange to make keys for protecting traffic. For your sensor, key agreement supplies the starting material for those keys.
Model caption: A key derivation function combines the shared two with context from the exchange to produce traffic keys. Key agreement supplies their starting material.
B7 — Authentication limitation
The misconception is that agreeing on a secret also identifies the other peer. It fails because Eve could replace the public values instead of merely listening. Alice would then share a secret with Eve, and Bob would share another secret with Eve. Authentication ties the public values to the intended peer, stopping that substitution. Keeping a secret and knowing its partner are different jobs.
Model caption: Sharing a secret alone does not identify a peer. Eve can replace public values and share a separate secret with each endpoint. Authentication binds public values to the intended peer and stops substitution. The asset does not calculate the attack's separate secrets. CANNOT SHOW: this beat is caption-only; no asset controls change.
B8 — Secret and identity
A shared secret gives your sensor key material; authentication tells it whose key material it shares.
Model caption: A shared secret gives your sensor key material; authentication tells it whose key material it shares.