Curve25519
In cryptography, Curve25519 is an elliptic curve offering 128 bits of security and designed for use with the elliptic curve Diffie–Hellman (ECDH) key agreement scheme. It is one of the fastest ECC curves and is not covered by any known patents.[1] The reference implementation is public domain software.[2]
The original Curve25519 paper defined it as a Diffie–Hellman (DH) function. Daniel J. Bernstein has since proposed that the name Curve25519 be used for the underlying curve, and the name X25519 for the DH function.[3]
Mathematical properties
The curve used is y2 = x3 + 486662x2 + x, a Montgomery curve, over the quadratic extension of the prime field defined by the prime number 2255 − 19, and it uses the base point x = 9. The protocol uses compressed elliptic point (only X coordinates), so it allows efficient use of the Montgomery ladder for ECDH, using only XZ coordinates.[4]
Curve25519 is constructed such that it avoids many potential implementation pitfalls.[5] By design, it is immune to timing attacks and it accepts any 32-byte string as a valid public key and does not require validation.
The curve is birationally equivalent to a twisted Edwards curve used in Ed25519 signature scheme.[6]
Popularity
Curve25519 was first released by Daniel J. Bernstein in 2005,[7] but interest increased considerably after 2013 when it was discovered that the NSA had implemented a backdoor into Dual_EC_DRBG. While not directly related,[8] suspicious aspects of the NIST's P curve constants[9] led to concerns[10] that the NSA had chosen values that gave them an advantage in factoring[11] public keys.[12]
I no longer trust the constants. I believe the NSA has manipulated them through their relationships with industry— Bruce Schneier, The NSA Is Breaking Most Encryption on the Internet (2013)
Since then, Curve25519 has become the de facto alternative to P-256, and is used in a wide variety of applications.[13] Starting in 2014, OpenSSH[14] defaults to Curve25519-based ECDH.
Libraries
Protocols
- OMEMO, a proposed extension for XMPP (Jabber)[29]
- Secure Shell
- Signal Protocol
- Tox
Applications
- Conversations Android application[lower-alpha 2]
- Cryptocat[30][lower-alpha 2]
- DNSCrypt[31]
- DNSCurve
- Dropbear[16][32]
- Facebook Messenger [lower-alpha 3][lower-alpha 4]
- Gajim via plugin[33][lower-alpha 2]
- GNUnet[34]
- GnuPG
- Google Allo[lower-alpha 5][lower-alpha 4]
- I2P[35]
- iOS[36]
- minilock[37]
- OpenBSD[lower-alpha 6]
- OpenSSH[16][lower-alpha 7]
- Peerio[42]
- PuTTY[43]
- Signal[lower-alpha 4]
- Silent Phone
- SmartFTP[16]
- SSHJ[16]
- Threema Instant Messenger[44]
- TinySSH[16]
- TinyTERM[16]
- Tor[45]
- Userify[46]
- Viber[47]
- Virgil[48]
- WhatsApp[lower-alpha 4]
- Wire
Notes
See also
References
- ↑ Bernstein. "Irrelevant patents on elliptic-curve cryptography". cr.yp.to. Retrieved 2016-02-08.
- ↑ 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. "
- ↑ "[Cfrg] 25519 naming". Retrieved 2016-02-25.
- ↑ Lange, Tanja. "EFD / Genus-1 large-characteristic / XZ coordinates for Montgomery curves". EFD / Explicit-Formulas Database. Retrieved 8 February 2016.
- ↑ "SafeCurves: Introduction". safecurves.cr.yp.to. Retrieved 2016-02-08.
- ↑ Bernstein, Daniel J.; Lange, Tanja (2007). Kurosawa, Kaoru, ed. Faster addition and doubling on elliptic curves. Advances in cryptology—ASIACRYPT. Lecture Notes in Computer Science. 4833. Berlin: Springer. pp. 29–50. ISBN 978-3-540-76899-9. MR 2565722. doi:10.1007/978-3-540-76900-2_3.
- ↑ Bernstein, Daniel J. (2006). Yung, Moti; Dodis, Yevgeniy; Kiayias, Aggelos; et al., eds. Curve25519: New Diffie-Hellman Speed Records (PDF). Public Key Cryptography. Lecture Notes in Computer Science. 3958. New York: Springer. pp. 207–228. ISBN 978-3-540-33851-2. MR 2423191. doi:10.1007/11745853_14.
- ↑ Green, Matthew (January 14, 2015). "A Few Thoughts on Cryptographic Engineering: The Many Flaws of Dual_EC_DRBG". blog.cryptographyengineering.com. Retrieved 2015-05-20.
- ↑ https://safecurves.cr.yp.to/
- ↑ Maxwell, Gregory (2013-09-08). "[tor-talk] NIST approved crypto in Tor?". Retrieved 2015-05-20.
- ↑ "SafeCurves: Rigidity". safecurves.cr.yp.to. Retrieved 2015-05-20.
- ↑ "The NSA Is Breaking Most Encryption on the Internet - Schneier on Security". www.schneier.com. Retrieved 2015-05-20.
- ↑ "Things that use Curve25519". Retrieved 2015-12-23.
- 1 2 Adamantiadis, Aris (2013-11-03). "OpenSSH introduces curve25519-sha256@libssh.org key exchange !". libssh.org. Retrieved 2014-12-27.
- ↑ Werner Koch (15 April 2016). "Libgcrypt 1.7.0 release announcement". Retrieved 22 April 2016.
- 1 2 3 4 5 6 7 SSH implementation comparison. "Comparison of key exchange methods". Retrieved 2016-02-25.
- ↑ "Introduction". yp.to. Retrieved 11 December 2014.
- ↑ "nettle: curve25519.h File Reference - doxygen documentation | Fossies Dox". fossies.org. Retrieved 2015-05-19.
- ↑ Limited, ARM. "PolarSSL 1.3.3 released - Tech Updates - mbed TLS (Previously PolarSSL)". tls.mbed.org. Retrieved 2015-05-19.
- ↑ https://www.wolfssl.com/wolfSSL/Products-wolfssl.html
- ↑ http://botan.randombit.net/doxygen/curve25519_8cpp_source.html
- ↑ Justinha. "TLS (Schannel SSP)". docs.microsoft.com. Retrieved 2017-05-01.
- ↑ https://libsodium.org
- ↑ Inc., OpenSSL Foundation,. "OpenSSL". www.openssl.org. Retrieved 2016-06-24.
- ↑ https://github.com/openbsd/src/commit/0ad90c3e6b15b9b6b8463a8a0f87d70c83a07ef4
- ↑ "Tclers Wiki - NaCl for Tcl".
- ↑ "NSS 3.28 release notes". Retrieved 25 July 2017.
- ↑ "Monocypher Manual". Retrieved 2017-08-03.
- ↑ XEP-xxxx: OMEMO Encryption
- ↑ "Cryptocat - Security". crypto.cat. Retrieved 2016-05-24.
- ↑ Frank Denis. "DNSCrypt version 2 protocol specification". Retrieved 2016-03-03.
- ↑ Matt Johnston. "Dropbear SSH - Changes". Retrieved 2016-02-25.
- ↑ Bahtiar Gadimov; et al. "Gajim plugin for OMEMO Multi-End Message and Object Encryption". Retrieved 2016-10-01.
- ↑ "GNUnet 0.10.0". gnunet.org. Retrieved 11 December 2014.
- ↑ zzz (2014-09-20). "0.9.15 Release - Blog". Retrieved 20 December 2014.
- ↑ iOS Security Guide
- ↑ miniLock File Encryption
- ↑ Murenin, Constantine A. (2014-01-19). Soulskill, ed. "OpenBSD Moving Towards Signed Packages — Based On D. J. Bernstein Crypto". Slashdot. Retrieved 2014-12-27.
- ↑ Murenin, Constantine A. (2014-05-01). timothy, ed. "OpenBSD 5.5 Released". Slashdot. Retrieved 2014-12-27.
- ↑ Friedl, Markus (2014-04-29). "ssh/kex.c#kexalgs". BSD Cross Reference, OpenBSD src/usr.bin/. Retrieved 2014-12-27.
- ↑ Murenin, Constantine A. (2014-04-30). Soulskill, ed. "OpenSSH No Longer Has To Depend On OpenSSL". Slashdot. Retrieved 2014-12-26.
- ↑ How does Peerio implement end-to-end encryption
- ↑ PuTTY 0.68 Change Log
- ↑ Threema Cryptography Whitepaper
- ↑ Roger Dingledine & Nick Mathewson. "Tor's Protocol Specifications - Blog". Retrieved 20 December 2014.
- ↑ "Platform Security Overview". Userify. Retrieved 23 May 2017.
- ↑ "Viber Encryption Overview". Viber. 3 May 2016. Retrieved 24 September 2016.
- ↑ "Virgil crypto uses Curve25519 for ECIES by default".