Diffie-Hellman
Has Diffie-Hellman been owned?
Export-grade and 768-bit groups, yes. Small-characteristic fields, completely. Properly sized prime-field Diffie-Hellman at 2048 bits stands, but the history of this family is a lesson in shared parameters: one precomputation per prime, then every connection that uses it.
Compare 6 systems and their cryptanalytic verdicts
- DH-512 (export)BrokenLogjam (2015) broke connections in about 70 seconds after a week of precomputation.
- DH-768BrokenA 768-bit prime-field discrete log was computed publicly in 2016.
- DH-1024WeakenedQuantum-vulnerableOne precomputation per widely shared prime is within nation-state budgets.
- DH-2048StandingQuantum-vulnerableNo practical classical attack; quantum-vulnerable, with transition guidance still evolving.
- Discrete logs in GF(2^n) and GF(3^n)BrokenQuasi-polynomial algorithms (2013) ended these fields; a 30,750-bit record fell in 2019.
- DSA-1024WeakenedQuantum-vulnerableDropped from FIPS 186-5 in 2023; 1024-bit groups and nonce bias made it fragile.
A new deterministic bound for prime fields
Number field sieve methods already give heuristic subexponential costs for prime-field discrete logs. Liu, Zhang and Ren’s separate claim is a deterministic worst-case bound conditional on the October tensor-contraction theorem. Its scope includes the mathematics behind ffdhe2048, while its abstract gives no concrete cost at that size.
Read the conditional result and how it relates to Diffie-Hellman
Prime-field discrete logarithm records
Bits of the largest prime field whose discrete logarithm has been computed with the number field sieve. The orange mark is a 1,024-bit prime built with a hidden trapdoor: a demonstration that a backdoored standard prime would be breakable.
- General prime records (compute)
- Trapdoored prime (math, parameter choice)
Table view
| Record | Bits | Field | Date | Team | Method |
|---|---|---|---|---|---|
| Joux-Lercier 130-digit | 431 | prime | 2005-06-18 | Antoine Joux, Reynald Lercier | NFS-DL |
| Kleinjung 160-digit | 530 | prime | 2007-02-05 | Thorsten Kleinjung | NFS-DL |
| 180-digit (CADO-NFS) | 596 | prime | 2014-06-11 | Cyril Bouvier, Pierrick Gaudry, Laurent Imbert, Hamza Jeljeli, Emmanuel Thomé | NFS-DL |
| DLP-768 | 768 | prime | 2016-06-16 | Thorsten Kleinjung, Claus Diem, Arjen K. Lenstra, Christine Priplata, Colin Stahlke | NFS-DL |
| Kilobit hidden SNFS (trapdoored prime) | 1024 | prime | 2016-10 | Joshua Fried, Pierrick Gaudry, Nadia Heninger, Emmanuel Thomé | SNFS-DL (deliberately trapdoored prime, 160-bit subgroup) |
| DLP-240 | 795 | prime | 2019-12-02 | Fabrice Boudot, Pierrick Gaudry, Aurore Guillevic, Nadia Heninger, Emmanuel Thomé, Paul Zimmermann | NFS-DL |
| GF(2^1778) | 1778 | binary | 2013-02-11 | Antoine Joux | Joux L(1/4) index calculus |
| GF(2^6120) | 6120 | binary | 2013-04-11 | Faruk Göloğlu, Robert Granger, Gary McGuire, Jens Zumbrägel | FFS with GGMZ polynomial-time relation generation |
| GF(2^6168) | 6168 | binary | 2013-05-21 | Antoine Joux | Joux L(1/4) index calculus |
| GF(3^(6*137)) | 1303 | ternary | 2014-01-27 | Gora Adj, Alfred Menezes, Thomaz Oliveira, Francisco Rodríguez-Henríquez | Joux L(1/4) algorithm (no Kummer structure) |
| GF(2^9234) | 9234 | binary | 2014-01-31 | Robert Granger, Thorsten Kleinjung, Jens Zumbrägel | FFS / Joux-GGMZ descent in twisted Kummer extension |
| GF(2^(12*367)) | 4404 | binary | 2014-02 | Robert Granger, Thorsten Kleinjung, Jens Zumbrägel | quasi-polynomial-era descent (new field representation) |
| GF(p^2) 160-digit | 595 | medium-characteristic (p^2, p of 80 digits) | 2014-06-24 | Razvan Barbulescu, Pierrick Gaudry, Aurore Guillevic, François Morain | NFS-DL (conjugation method) |
| GF(2^1279) | 1279 | binary (prime extension degree) | 2014-10-17 | Thorsten Kleinjung | FFS with GKZ descent |
| GF(3^(6*509)) | 4841 | ternary | 2016-07-18 | Gora Adj, Isaac Canales-Martínez, Nareli Cruz-Cortés, Alfred Menezes, Thomaz Oliveira, Luis Rivera-Zamarripa, Francisco Rodríguez-Henríquez | Joux / quasi-polynomial-era index calculus |
| GF(2^30750) | 30750 | binary | 2019-07-10 | Robert Granger, Thorsten Kleinjung, Arjen K. Lenstra, Benjamin Wesolowski, Jens Zumbrägel | quasi-polynomial elimination (first large-scale use) + classical descent |
Small-characteristic fields: from 1,778 to 30,750 bits in six years
In 2013 Joux, and then Barbulescu, Gaudry, Joux and Thomé, found index-calculus algorithms for fields like GF(2^n) and GF(3^n) that run in quasi-polynomial time. That is a break in the math. Pairing-based schemes built on those fields were finished overnight.
| Field | Bits | Date | Team |
|---|---|---|---|
| GF(2^1778) | 1,778 | 2013-02-11 | Antoine Joux |
| GF(2^6120) | 6,120 | 2013-04-11 | Faruk Göloğlu, Robert Granger, Gary McGuire, Jens Zumbrägel |
| GF(2^6168) | 6,168 | 2013-05-21 | Antoine Joux |
| GF(3^(6*137)) | 1,303 | 2014-01-27 | Gora Adj, Alfred Menezes, Thomaz Oliveira, Francisco Rodríguez-Henríquez |
| GF(2^9234) | 9,234 | 2014-01-31 | Robert Granger, Thorsten Kleinjung, Jens Zumbrägel |
| GF(2^(12*367)) | 4,404 | 2014-02 | Robert Granger, Thorsten Kleinjung, Jens Zumbrägel |
| GF(p^2) 160-digit | 595 | 2014-06-24 | Razvan Barbulescu, Pierrick Gaudry, Aurore Guillevic, François Morain |
| GF(2^1279) | 1,279 | 2014-10-17 | Thorsten Kleinjung |
| GF(3^(6*509)) | 4,841 | 2016-07-18 | Gora Adj, Isaac Canales-Martínez, Nareli Cruz-Cortés, Alfred Menezes, Thomaz Oliveira, Luis Rivera-Zamarripa, Francisco Rodríguez-Henríquez |
| GF(2^30750) | 30,750 | 2019-07-10 | Robert Granger, Thorsten Kleinjung, Arjen K. Lenstra, Benjamin Wesolowski, Jens Zumbrägel |
Math versus everything around it
Broken math
New algorithms for discrete logs in special fields, and parameters that were weak by construction.
- Pohlig-Hellman: discrete logs are only as hard as the largest prime factor of the group order
Stephen Pohlig and Martin Hellman showed that a discrete log in a group of order n can be split into discrete logs in subgroups of prime-power order dividing n, then recombined with the Chinese Remainder Theorem.
- Coppersmith's L(1/3) algorithm makes GF(2^n) discrete logs far easier than prime fields
Don Coppersmith's "Fast evaluation of logarithms in fields of characteristic two" (IEEE Trans.
- Joux's L(1/4) algorithm and GGMZ upend discrete logs in small characteristic
In February 2013 Antoine Joux posted an index-calculus algorithm with heuristic complexity L(1/4 + o(1)) for finite fields of very small characteristic.
- Quasi-polynomial discrete log algorithm for small-characteristic fields (BGJT)
Razvan Barbulescu, Pierrick Gaudry, Antoine Joux and Emmanuel Thomé gave a heuristic algorithm computing discrete logs in finite fields of small characteristic in time n^O(log n), where n is the bit-size of the field.
- "128-bit secure" supersingular binary curves broken via field discrete logs
Granger, Kleinjung and Zumbrägel showed that the supersingular genus-one curve over GF(2^1223), proposed for 128-bit-secure pairings, offers only about 59 bits of security.
- Kilobit hidden-SNFS computation shows undetectable trapdoored DH/DSA primes are practical
Joshua Fried, Pierrick Gaudry, Nadia Heninger and Emmanuel Thomé built a 1024-bit prime that looks random and has a 160-bit prime subgroup like standard DSA parameters, but is secretly amenable to the
Broken protocols and implementations
Downgrades to export groups, shared primes, non-prime parameters, small-subgroup confusion, timing leaks.
- Lim-Lee small-subgroup key recovery against DL schemes that skip public-key validation
Chae Hoon Lim and Pil Joong Lee (CRYPTO '97) showed that when a discrete-log scheme works in a prime-order subgroup of Z_p* but p-1 also has small factors, an attacker can send group elements of small
- Bleichenbacher finds bias in FIPS 186 DSA nonce generation; NIST issues a change notice
Daniel Bleichenbacher (Bell Labs) found that the pseudorandom generators in FIPS 186-2 Appendix 3, which reduce a 160-bit output modulo the 160-bit prime q, produce slightly non-uniform per-signature secrets k.
- "Mining Your Ps and Qs": DSA private keys of 1% of SSH hosts recovered from repeated nonces
Heninger, Durumeric, Wustrow and Halderman (USENIX Security 2012) scanned the IPv4 Internet and recovered the DSA private keys of 1.03% of SSH hosts, because those hosts reused the per-signature rando
- Triple Handshake: malicious DHE groups let a TLS server force identical master secrets
Bhargavan, Delignat-Lavaud, Fournet, Pironti and Strub showed that in TLS DHE a malicious server can pick a non-prime group or degenerate parameters so the premaster secret is fully under its control.
- Logjam: TLS downgrade to export-grade 512-bit DH, plus the 1024-bit precomputation warning
Adrian et al. ("Imperfect Forward Secrecy: How Diffie-Hellman Fails in Practice", ACM CCS 2015, best paper) showed that a man-in-the-middle could rewrite a TLS ClientHello to request DHE_EXPORT and tr
- OpenSSL CVE-2016-0701: key recovery via small subgroups with RFC 5114 / X9.42 parameters
Antonio Sanso (Adobe) reported that OpenSSL 1.0.2 supported X9.42-style DH parameters, such as the RFC 5114 groups, whose primes are not safe, yet did not validate peer public keys against the subgrou
- Socat shipped a hard-coded 1024-bit DH "prime" that was not prime
Socat 1.7.3.0 and 2.0.0-b8 used a hard-coded 1024-bit Diffie-Hellman modulus for its OpenSSL mode that turned out to be composite.
- Valenta et al. measure small-subgroup exposure: millions of hosts on non-safe DH primes, no library validating by default
Valenta, Adrian, Sanso, Cohney, Fried, Hastings, Halderman and Heninger (NDSS 2017) scanned HTTPS, POP3S, SMTP/STARTTLS, SSH, IKEv1 and IKEv2 and found millions of hosts using DSA-style or other non-safe primes for DH.
- D(HE)at: cheap clients force expensive server-side DHE exponentiations
Szilárd Pfeiffer and Norbert Tihanyi described a denial-of-service attack where a client claims to support only finite-field DHE, ideally at the server's largest group, and sends garbage instead of a real public key.
- VoWiFi gateways at 13 operators shared the same ten static DH private keys
Gegenhuber, Holzbauer, Frenzel, Weippl and Dabrowski (USENIX Security 2024) studied the IKEv2 key exchange used for Voice-over-Wi-Fi.
Diffie-Hellman: every event on file
Split by the three questions. Hover or focus a mark for details; select it for the case file.
- Broken mathMath
- More computeRecord
- Broken implementationProtocolImplementationSide channel
- ContextFalse alarmMilestoneQuantum
Outside 1975 to 2036: GCHQ's Malcolm Williamson devises finite-field "non-secret encryption" in secret (1974, 1976) (1974);
Table view
Case file
34 case files, newest first.
2020s
- MilestoneRFC 10015 prohibits finite-field DH cipher suites in TLS 1.2
RFC 10015 (Proposed Standard, July 2026, Nimrod Aviram) says clients MUST NOT offer and servers MUST NOT select finite-field DHE or static DH cipher suites in (D)TLS 1.2, and likewise bans static RSA key exchange. FFDHE remains allowed in TLS 1.3, where the named-group design avoids the problems. The same month the IETF published RFC 9846 (TLS 1.3 revision) and RFC 9852 (new protocols must require TLS 1.3).
TLS 1.2 DHE (TLS_DHE_*) / TLS 1.2 static DH (TLS_DH_*) / TLS 1.2 static RSA
- MilestoneOpenSSH 10.0 removes DSA and drops finite-field DH from sshd defaults
OpenSSH 10.0 (9 April 2025) removed support for the DSA signature algorithm entirely, ending a deprecation that began when ssh-dss was disabled by default in OpenSSH 7.0 (2015). It also removed all finite-field (modp) Diffie-Hellman methods from sshd's default key exchange list and made the hybrid post-quantum mlkem768x25519-sha256 the client default.
ssh-dss (DSA) / diffie-hellman-group* / diffie-hellman-group-exchange-*
- MilestoneCADO-NFS team wins the 2025 Levchin Prize for factoring and discrete log records
Pierrick Gaudry, Emmanuel Thomé and Paul Zimmermann received the 2025 Levchin Prize for Real-World Cryptography for developing CADO-NFS, the open-source number field sieve used for the largest public factoring and prime-field discrete log records, including RSA-240/RSA-250 and the 795-bit DLP-240.
NFS-DL / RSA (factoring)
- ImplementationPracticalVoWiFi gateways at 13 operators shared the same ten static DH private keys
Gegenhuber, Holzbauer, Frenzel, Weippl and Dabrowski (USENIX Security 2024) studied the IKEv2 key exchange used for Voice-over-Wi-Fi. They found 13 mobile operators (about 140 million subscribers) whose ePDG gateways, traced to one vendor (ZTE, per banner analysis), served the same global set of ten static DH key pairs at random, so anyone holding those private keys could decrypt every operator's VoWiFi key exchanges. On the handset side, some MediaTek basebands could be downgraded to weak groups such as 768-bit MODP group 1 that they never offered.
IKEv2 MODP DH-768 (group 1) / IKEv2 MODP DH-1024 (group 2) / IKEv2 MODP DH-2048 (group 14)
- MilestoneFIPS 186-5 drops DSA for new signatures
NIST published FIPS 186-5 on 3 February 2023. It approves RSA, ECDSA and EdDSA but no longer approves DSA for generating signatures, keeping it only to verify existing ones. NIST cited little industry use and academic findings that DSA implementations may be vulnerable if domain parameters are not generated properly.
DSA
- ProtocolLimitedD(HE)at: cheap clients force expensive server-side DHE exponentiations
Szilárd Pfeiffer and Norbert Tihanyi described a denial-of-service attack where a client claims to support only finite-field DHE, ideally at the server's largest group, and sends garbage instead of a real public key. The server still performs costly modular exponentiations, so a little client CPU and bandwidth ties up much more server CPU. It was assigned CVE-2002-20001 (published November 2021), with follow-ups CVE-2022-40735 (needlessly long exponents) and CVE-2024-41996 (needless public-key order checks with safe primes in OpenSSL).
TLS DHE / SSH DH / IKE DH
2010s
- RecordLimitedDLP-240: 795-bit prime-field discrete log, announced with RSA-240
Fabrice Boudot, Pierrick Gaudry, Aurore Guillevic, Nadia Heninger, Emmanuel Thomé and Paul Zimmermann announced the factorization of RSA-240 together with a discrete log modulo p = RSA-240 + 49204, the first safe prime above RSA-240 (795 bits). The discrete log took about 3,100 core-years (2,400 sieving + 700 linear algebra on 2.1 GHz Xeon Gold 6130), compared with about 900 core-years for RSA-240. It remains the prime-field discrete log record as of October 2026.
DH-768 / DH-1024 / DSA-1024
- RecordLimitedDiscrete logs in GF(2^30750): first large-scale quasi-polynomial descent
Robert Granger, Thorsten Kleinjung, Arjen Lenstra, Benjamin Wesolowski and Jens Zumbrägel computed a discrete logarithm in the 30,750-bit binary field GF(2^30750), represented as GF((2^30)^1025). The run took 25,481,219 core-hours (about 2,900 core-years) on EPFL clusters between February 2016 and May 2019. It was the first large-scale use of the elimination step of the quasi-polynomial algorithm.
DH over GF(2^n)
- MilestoneTLS 1.3 removes static DH, custom DHE groups and DSA
RFC 8446 (August 2018) removed static RSA and static Diffie-Hellman key exchange, DSA signatures and custom ephemeral DH groups from TLS. Finite-field DHE survives only through the five named RFC 7919 groups, alongside elliptic-curve groups. The July 2026 revision, RFC 9846, keeps the same FFDHE groups.
TLS 1.3 FFDHE / DSA
- ProtocolPracticalValenta et al. measure small-subgroup exposure: millions of hosts on non-safe DH primes, no library validating by default
Valenta, Adrian, Sanso, Cohney, Fried, Hastings, Halderman and Heninger (NDSS 2017) scanned HTTPS, POP3S, SMTP/STARTTLS, SSH, IKEv1 and IKEv2 and found millions of hosts using DSA-style or other non-safe primes for DH. Of more than 20 libraries and applications examined, none validated subgroup order by default until January 2016. They demonstrated full or partial key recovery against OpenSSL, Exim, the Unbound DNS client and Amazon's load balancer.
DH (RFC 5114 groups) / DSA-style DH parameters
- MathTheoreticalKilobit hidden-SNFS computation shows undetectable trapdoored DH/DSA primes are practical
Joshua Fried, Pierrick Gaudry, Nadia Heninger and Emmanuel Thomé built a 1024-bit prime that looks random and has a 160-bit prime subgroup like standard DSA parameters, but is secretly amenable to the special number field sieve. They then computed a discrete log in it, the first kilobit prime-field discrete log ever reported, in a little over two months of calendar time (about 385 core-years) with CADO-NFS. Detecting the trapdoor without the designer's secret appears infeasible.
DH-1024 / DSA-1024
- MilestoneRFC 7919 introduces negotiated FFDHE groups for TLS
RFC 7919 (August 2016, Daniel Kahn Gillmor) let TLS clients and servers negotiate finite-field DHE groups by name through the Supported Groups extension instead of accepting whatever parameters the server sent. It defined five safe-prime groups from 2048 to 8192 bits derived from the digits of e (ffdhe2048 to ffdhe8192).
ffdhe2048 / ffdhe3072 / ffdhe4096 / ffdhe6144 / ffdhe8192
- RecordPracticalDiscrete logs in the 4,841-bit field GF(3^(6*509)) break a 128-bit pairing setting
Adj, Canales-Martínez, Cruz-Cortés, Menezes, Oliveira, Rivera-Zamarripa and Rodríguez-Henríquez computed discrete logarithms in the order-r subgroup of GF(3^(6*509)), the embedding field of the supersingular curve Y^2 = X^3 - X + 1 over GF(3^509). Before 2013 this setting was assessed at about 2^128 work; the computation took on the order of 200 core-years.
pairings on supersingular curves over GF(3^509)
- RecordLimited768-bit prime-field discrete log computed, closing the gap with RSA-768
Thorsten Kleinjung, Claus Diem, Arjen Lenstra, Christine Priplata and Colin Stahlke computed a discrete log modulo p = [2^766 * pi] + 62762, a 768-bit safe prime. The effort was about 5,300 core-years (scaled to a 2.2 GHz Xeon E5-2660), mostly run from May to December 2015, far below the 30,000 to 50,000 core-years they had first projected. Each additional log in the same group then cost about two core-days.
DH-768 / DSA-768 / ElGamal-768
- ImplementationPracticalSocat shipped a hard-coded 1024-bit DH "prime" that was not prime
Socat 1.7.3.0 and 2.0.0-b8 used a hard-coded 1024-bit Diffie-Hellman modulus for its OpenSSL mode that turned out to be composite. Santiago Zanella-Béguelin (Microsoft Vulnerability Research) reported it; socat 1.7.3.1 and 2.0.0-b9 replaced it with a freshly generated 2048-bit prime.
DH-1024
- ImplementationPracticalOpenSSL CVE-2016-0701: key recovery via small subgroups with RFC 5114 / X9.42 parameters
Antonio Sanso (Adobe) reported that OpenSSL 1.0.2 supported X9.42-style DH parameters, such as the RFC 5114 groups, whose primes are not safe, yet did not validate peer public keys against the subgroup order and by default reused the server's DH private exponent unless SSL_OP_SINGLE_DH_USE was set. An attacker could make many handshakes with small-order elements and recover the exponent via Lim-Lee style small-subgroup attacks. Rated High; fixed in 1.0.2f, which validates X9.42 keys when q is known and always generates a fresh exponent.
DH (RFC 5114 / X9.42 groups)
- ProtocolPracticalLogjam: TLS downgrade to export-grade 512-bit DH, plus the 1024-bit precomputation warning
Adrian et al. ("Imperfect Forward Secrecy: How Diffie-Hellman Fails in Practice", ACM CCS 2015, best paper) showed that a man-in-the-middle could rewrite a TLS ClientHello to request DHE_EXPORT and trick the client into accepting 512-bit DH parameters as if they were normal DHE. After a week-long number field sieve precomputation per prime, individual 512-bit logs took a median of about 70 seconds, fast enough to break handshakes live. Two 512-bit primes covered 92% of export-supporting servers, exposing about 7-8% of Alexa Top 1M HTTPS sites.
DHE_EXPORT-512 / DH-768 / DH-1024 / Oakley Group 2
- RecordLimited596-bit (180-digit) prime-field discrete log record with CADO-NFS
Cyril Bouvier, Pierrick Gaudry, Laurent Imbert, Hamza Jeljeli and Emmanuel Thomé announced a discrete logarithm modulo a 180-digit (596-bit) safe prime using the number field sieve, with GPU-accelerated linear algebra. Kleinjung et al. later put its cost at about 130 core-years.
DH-512 / DH-768
- ProtocolPracticalTriple Handshake: malicious DHE groups let a TLS server force identical master secrets
Bhargavan, Delignat-Lavaud, Fournet, Pironti and Strub showed that in TLS DHE a malicious server can pick a non-prime group or degenerate parameters so the premaster secret is fully under its control. Combined with session resumption and renegotiation, this allowed a man-in-the-middle to synchronize two sessions and impersonate a client to another server. Fixes included rejecting degenerate DH public keys (NSS, CVE-2014-1491), blocking certificate changes on renegotiation, and the extended master secret extension (RFC 7627).
TLS DHE
- MathPractical"128-bit secure" supersingular binary curves broken via field discrete logs
Granger, Kleinjung and Zumbrägel showed that the supersingular genus-one curve over GF(2^1223), proposed for 128-bit-secure pairings, offers only about 59 bits of security. They fully broke a genus-two curve over GF(2^367) by computing discrete logs in its 4,404-bit embedding field GF(2^(12*367)). The paper appeared at CRYPTO 2014.
pairings on supersingular curves over GF(2^1223) and GF(2^367)
- RecordLimitedDiscrete logs in GF(2^9234) using about 400,000 core-hours
Robert Granger, Thorsten Kleinjung and Jens Zumbrägel computed discrete logarithms in the 9,234-bit binary field GF(2^9234) with about 400,000 core-hours. It beat the 6,168-bit record of May 2013 by using automorphisms of a twisted Kummer extension and an optimised descent strategy.
DH over GF(2^n)
- MathPracticalQuasi-polynomial discrete log algorithm for small-characteristic fields (BGJT)
Razvan Barbulescu, Pierrick Gaudry, Antoine Joux and Emmanuel Thomé gave a heuristic algorithm computing discrete logs in finite fields of small characteristic in time n^O(log n), where n is the bit-size of the field. This is quasi-polynomial, asymptotically better than any L(epsilon) algorithm. The paper appeared at EUROCRYPT 2014.
DH over GF(2^n) / DH over GF(3^n) / pairings on supersingular curves over GF(2^n)/GF(3^n)
- MathPracticalJoux's L(1/4) algorithm and GGMZ upend discrete logs in small characteristic
In February 2013 Antoine Joux posted an index-calculus algorithm with heuristic complexity L(1/4 + o(1)) for finite fields of very small characteristic. In parallel, Göloğlu, Granger, McGuire and Zumbrägel (GGMZ) showed relations for the factor base can be found in polynomial time for suitable fields. Within weeks both teams set records in binary fields of 1,778 to 6,168 bits.
DH over GF(2^n) / DH over GF(3^n) / pairings on supersingular curves over GF(2^n)/GF(3^n)
- ImplementationPractical"Mining Your Ps and Qs": DSA private keys of 1% of SSH hosts recovered from repeated nonces
Heninger, Durumeric, Wustrow and Halderman (USENIX Security 2012) scanned the IPv4 Internet and recovered the DSA private keys of 1.03% of SSH hosts, because those hosts reused the per-signature random value k across signatures. Nearly all were headless embedded devices that generated randomness on first boot without enough entropy.
DSA-1024 (ssh-dss)
2000s
- MilestoneLimitedRFC 5114 publishes DSA-style DH groups with no published seeds
RFC 5114 (Informational, January 2008, BBN authors) published additional DH groups for IETF protocols, including a 1024-bit and two 2048-bit MODP groups with small prime-order subgroups (160, 224 and 256 bits), taken from NIST test data. Unlike the Oakley and RFC 3526 groups, the primes are not safe primes, and neither the RFC nor NIST's data includes the seeds needed to verify how they were generated.
RFC 5114 1024-bit MODP with 160-bit subgroup / RFC 5114 2048-bit MODP with 224/256-bit subgroups
- RecordLimitedKleinjung computes a discrete log modulo a 160-digit (530-bit) safe prime
Thorsten Kleinjung announced on the NMBRTHRY list a discrete logarithm modulo the safe prime p = floor(10^159 * pi) + 119849 (160 digits, about 530 bits), using the general number field sieve in the Joux-Lercier variant. It beat the 2005 Joux-Lercier 130-digit (431-bit) record.
DH-512 / DSA-512
- MilestoneRFC 3526 standardizes the 1536- to 8192-bit MODP groups built from pi
RFC 3526 (May 2003) defined the 1536-bit group 5 and new 2048-, 3072-, 4096-, 6144- and 8192-bit safe-prime MODP groups (14-18) for IKE. They followed the 768-bit and 1024-bit Oakley groups 1 and 2 of RFC 2409 (1998). Each prime embeds the binary digits of pi, a "nothing up my sleeve" construction that rules out a hidden SNFS trapdoor.
MODP group 5 (1536) / MODP group 14 (2048) / MODP groups 15-18 (3072-8192) / Oakley groups 1-2 (768, 1024)
- ProtocolTheoreticalBleichenbacher finds bias in FIPS 186 DSA nonce generation; NIST issues a change notice
Daniel Bleichenbacher (Bell Labs) found that the pseudorandom generators in FIPS 186-2 Appendix 3, which reduce a 160-bit output modulo the 160-bit prime q, produce slightly non-uniform per-signature secrets k. NIST's Change Notice 1 (5 October 2001) describes the attack as needing about 2^22 known signatures and 2^64 work, and offered either a 2-million-signature cap per key or revised generators.
DSA
1990s
- ProtocolPracticalLim-Lee small-subgroup key recovery against DL schemes that skip public-key validation
Chae Hoon Lim and Pil Joong Lee (CRYPTO '97) showed that when a discrete-log scheme works in a prime-order subgroup of Z_p* but p-1 also has small factors, an attacker can send group elements of small order instead of valid public keys. Each response leaks the victim's static private key modulo a small prime, and Pohlig-Hellman/CRT reassembles the key.
Diffie-Hellman / DSA-style subgroup DH / ElGamal
- MilestoneNIST publishes DSA as FIPS 186 over heavy public objection
The US Secretary of Commerce approved the Digital Signature Standard (FIPS 186) on 19 May 1994, effective 1 December 1994. It specified the Digital Signature Algorithm, an ElGamal/Schnorr-style signature computed in a prime-order subgroup of the multiplicative group mod p, designed with NSA involvement.
DSA
1980s
- MathPracticalCoppersmith's L(1/3) algorithm makes GF(2^n) discrete logs far easier than prime fields
Don Coppersmith's "Fast evaluation of logarithms in fields of characteristic two" (IEEE Trans. Inf. Theory, July 1984; STOC 1984) gave the first heuristic L(1/3) index-calculus algorithm, for binary fields. It sharply cut the cost of discrete logs in GF(2^n) and broke proposals that had used GF(2^127) for speed.
DH over GF(2^n)
1970s
- MathPracticalPohlig-Hellman: discrete logs are only as hard as the largest prime factor of the group order
Stephen Pohlig and Martin Hellman showed that a discrete log in a group of order n can be split into discrete logs in subgroups of prime-power order dividing n, then recombined with the Chinese Remainder Theorem. If p-1 has only small prime factors, logarithms mod p become easy regardless of how large p is.
Diffie-Hellman / ElGamal / DSA
- MilestoneDiffie and Hellman publish "New Directions in Cryptography"
Whitfield Diffie and Martin Hellman's paper in IEEE Transactions on Information Theory (vol. IT-22, no. 6, November 1976) introduced public key distribution: two parties exchange g^a and g^b modulo a prime p and both derive g^ab, while an eavesdropper must, as far as anyone knows, solve a discrete logarithm. The paper also set out the concepts of public-key encryption and digital signatures.
Diffie-Hellman
- MilestoneGCHQ's Malcolm Williamson devises finite-field "non-secret encryption" in secret (1974, 1976)
In January 1974 Malcolm Williamson, a mathematician at GCHQ/CESG, wrote an internal note, "Non-Secret Encryption Using a Finite Field", proposing a public-key scheme based on exponentiation in a finite field. That scheme needed inverse exponents computed with the Euclidean algorithm. His follow-up report, "Thoughts on Cheaper Non-Secret Encryption" (10 August 1976), removed that step: both ends publish x^a and x^b for a public primitive element x and share x^ab. This is exactly the Diffie-Hellman exchange, written months before Diffie and Hellman's paper appeared. Both notes stayed classified until the British government released them in 1997.
Diffie-Hellman