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.

In more detail

X25519 performs elliptic curve Diffie-Hellman on Curve25519 and is defined in RFC 7748. Its public keys are 32 bytes, or 44 bytes with the encoding that names the algorithm, compared with 256 bytes for a 2048-bit Diffie-Hellman value. It is the most common key exchange in TLS 1.3 and is now often paired with ML-KEM in hybrid post-quantum handshakes.

Examples

openssl genpkey -algorithm X25519 -out "$who.key"
Bob's public key on the wire: 44 bytes
shared secret: 32 bytes

Related terms

Taught in

References