ECDH
Elliptic curve Diffie-Hellman: key agreement carried out on an elliptic curve, so two parties reach a shared secret using small keys and fast maths.
In more detail
ECDH stands for elliptic curve Diffie-Hellman. Each side combines its own private key with the other side's public key and both arrive at the same shared secret, as in classic Diffie-Hellman, but the public keys are tens of bytes instead of hundreds. X25519 is the most widely used ECDH function in TLS 1.3, and like any unauthenticated exchange it needs signatures or certificates to stop a man-in-the-middle.
Example
openssl pkeyutl -derive -inkey alice.key -peerkey bob.pub -out alice.binRelated terms
- X25519 — A fast, widely used elliptic curve key exchange function that lets two parties derive the same 32-byte shared secret from each other's public keys.
- Diffie-Hellman — A method that lets two parties agree on a shared secret key over a public network, even while an eavesdropper sees every message they exchange.
- key exchange — The step in which two parties establish a shared secret key over a network, so they can then encrypt their conversation.
- ECC — Elliptic curve cryptography: public-key cryptography built on the maths of elliptic curves, giving the same strength as RSA with far smaller keys.
Taught in
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Domain Five Sprint: One Night, Five Objectives — ISC2 Certified in Cybersecurity (CC) Exam Prep
References
- NIST glossary: ECDH
- NIST SP 800-56A Rev. 3: Pair-Wise Key-Establishment Schemes Using Discrete Logarithm Cryptography