Diffie-Hellman key exchange
A 1976 key agreement method: each party combines its private value with the other's public value, reaching the same secret without sending it. Unauthenticated, it invites MITM.
Diffie-Hellman key exchange, published by Whitfield Diffie and Martin Hellman in “New Directions in Cryptography” (1976), lets two parties who share no prior secret establish one over a channel an eavesdropper can read. Each party picks a private value, sends a public value derived from it, and combines the other party’s public value with its own private value. Both arrive at the same result, while the eavesdropper, seeing only the public values, faces the discrete logarithm problem. The elliptic curve form (ECDH) does the same with smaller keys, and NIST SP 800-56A specifies the approved schemes.
It produces a shared key and nothing more: it encrypts and signs nothing. The shared secret is passed through a key derivation function to produce a session key for symmetric encryption. Unauthenticated, it lets an attacker in the path run a separate exchange with each side: the classic man-in-the-middle attack. TLS and IKE counter this by authenticating the exchange, for example with signatures. Fresh ephemeral values for each session (DHE, ECDHE) provide perfect forward secrecy. A sufficiently large quantum computer running Shor’s algorithm could break it, which is why ML-KEM (FIPS 203) is being adopted for key establishment.
Exam relevance: a scenario about agreeing a key over an untrusted network is likely to point to Diffie-Hellman. Candidates are expected to know it provides key agreement only, not confidentiality or authentication by itself.