Overview
Diffie-Hellman key exchange has each party combine a private exponent with public parameters, exchange public values, and compute the same shared secret from the other party's public value.
Lets two parties derive a shared secret over an insecure channel.
Compact metadata for implementation and discovery.
Diffie-Hellman key exchange has each party combine a private exponent with public parameters, exchange public values, and compute the same shared secret from the other party's public value.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k^2)
Average
O(k^3)
Worst
O(k^3)
Space
O(k)
shared = public_other^private mod pBoth parties compute the same shared value from public exchange values and private exponents.
Show two parties exchanging public values and deriving the same secret.
Diffie-Hellman needs authentication around it; the key exchange alone does not prove who sent the public value.
What each reference supports for this entry.
Original public-key distribution paper introducing Diffie-Hellman key exchange.
Open sourceNIST recommendation for finite-field and elliptic-curve discrete-logarithm key establishment.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Numerical Methods · Foundation
Classic Diffie-Hellman computes public values with modular exponentiation.
Compare with thisCryptography · Foundation
Classic Diffie-Hellman derives public values with modular exponentiation.
Compare with thisCryptography · Extended
Shared secrets from key exchange are commonly fed into a key derivation function.
Compare with thisCryptography · Extended
ECDH applies Diffie-Hellman key exchange over elliptic curves.
Compare with thisECDH applies Diffie-Hellman key exchange over elliptic curves.
Shared secrets from key exchange are commonly fed into a key derivation function.