In cryptography, Curve25519 is an elliptic curve used in elliptic-curve cryptography (ECC) offering 128 bits of security (256-bit key size) and designed for use with the Elliptic-curve Diffie–Hellman (ECDH) key agreement scheme, first described and implemented by Daniel J. Bernstein. It is one of the fastest curves in ECC, and is not covered by any known patents. The reference implementation is public-domain software.A state-of-the-art Diffie-Hellman function by Daniel J. Bernstein"My curve25519 library computes the Curve25519 function at very high speed. The library is in the public domain."

The original Curve25519 paper defined it as a Diffie–Hellman (DH) function. Bernstein has since proposed that the name Curve25519 be used for the underlying curve, and the name X25519 for the DH function.

Mathematical properties The curve used is y2 = x3 + 486662·x2 + x, a Montgomery curve, over the prime field defined by the pseudo-Mersenne prime number (hence the numeric "" in the name), and it uses the base point with . This point generates a cyclic subgroup whose order is the prime . This subgroup has a co-factor of , meaning the number of elements in the subgroup is that of the elliptic curve group. Using a prime order subgroup prevents mounting a Pohlig–Hellman algorithm attack.

The protocol uses compressed elliptic point (only X coordinates), so it allows efficient use of the Montgomery ladder for ECDH, using only XZ coordinates.

Curve25519 is constructed such that it avoids many potential implementation pitfalls.

The curve is birationally equivalent to a twisted Edwards curve used in the Ed25519 signature scheme.

History In 2005, Curve25519 was first released by Daniel J. Bernstein.

In 2013, interest began to increase considerably when it was discovered that the NSA had potentially implemented a backdoor into the P-256 curve based Dual_EC_DRBG algorithm. While not directly related, suspicious aspects of the NIST's P curve constants led to concerns that the NSA had chosen values that gave them an advantage in breaking the encryption.

Since 2013, Curve25519 has become the de facto alternative to P-256, being used in a wide variety of applications. Starting in 2014, OpenSSH defaults to Curve25519-based ECDH and GnuPG adds support for Ed25519 keys for signing and encryption. The use of the curve was eventually standardized for both key exchange and signature in 2020.

In 2017, NIST announced that Curve25519 and Curve448 would be added to Special Publication 800-186, which specifies approved elliptic curves for use by the US Federal Government. Both are described in RFC 7748.RFC 7748. Retrieved from rfc:7748. A 2019 draft of "FIPS 186-5" notes the intention to allow usage of Ed25519 for digital signatures. The 2023 update of Special Publication 800-186 allows usage of Curve25519.

In February 2017, the DNSSEC specification for using Ed25519 and Ed448 was published as , assigning algorithm numbers 15 and 16.

In 2018, DKIM specification was amended so as to allow signatures with this algorithm. Also in 2018, RFC 8446 was published as the new Transport Layer Security v1.3 standard. It recommends support for X25519, Ed25519, X448, and Ed448 algorithms.

Libraries

Libgcrypt libssh libssh2 (since version 1.9.0) NaCl GnuTLS mbed TLS (formerly PolarSSL) wolfSSL Botan Schannel Libsodium OpenSSL since version 1.1.0 LibreSSL NSS since version 3.28 Crypto++ curve25519-dalek Bouncy Castle

Protocols OMEMO, a proposed extension for XMPP (Jabber) Secure Shell Signal Protocol Matrix (protocol) Tox Zcash Transport Layer Security WireGuard

Applications

Bitchat Conversations Android application Cryptocat DNSCrypt DNSCurve DNSSEC Dropbear Facebook Messenger Gajim via plugin GNUnet GnuPG Google Allo I2P IPFS iOS Monero OpenBSD and signify OpenSSH Peerio Proton Mail PuTTY Signal Silent Phone SmartFTP SSHJ SQRL Threema Instant Messenger TinySSH TinyTERM Tor Viber WhatsApp Wire WireGuard

Notes

References

External links