Finite-field Diffie-Hellman
DH-1024
One precomputation per widely shared prime is within nation-state budgets.
Deployment assessment
Specialist review required
Check the exact construction, parameters and protocol profile before deployment. The catalog verdict alone is not a deployment recommendation.
- Intended use
- Finite-field Diffie-Hellman
- Conditions
- One precomputation per widely shared prime is within nation-state budgets.
This caution summarizes the existing catalog evidence. A separate deployment-source review has not yet been recorded. How to read this assessment.
Cryptanalytic assessment
Compute plus shared parameters. The Logjam authors estimated a 1024-bit precomputation at a few hundred million dollars of hardware and showed a handful of primes protected much of the VPN and SSH ecosystem. The 2016 hidden-SNFS work showed a trapdoored 1024-bit prime is practical to break. Public records reached 795 bits in 2019.
- Best known attack
- NFS discrete log with precomputation; trivial for a trapdoored prime
- Quantum
- Quantum-vulnerable. A large fault-tolerant quantum computer running Shor's algorithm breaks it outright.
- Names and historical labels
- 1024-bit Diffie-Hellman, Oakley group 2
Evidence for the verdict
- Protocol(not the math)Logjam: TLS downgrade to export-grade 512-bit DH, plus the 1024-bit precomputation warningAdrian 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.
- Math(the math)Kilobit hidden-SNFS computation shows undetectable trapdoored DH/DSA primes are practicalJoshua 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.
- Record(compute)DLP-240: 795-bit prime-field discrete log, announced with RSA-240Fabrice 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.
Case file
Every event on file that names DH-1024.
5 case files, newest first.
2020s
- ImplementationPracticalVoWiFi gateways at 13 operators shared the same ten static DH private keys
IKEv2 MODP DH-768 (group 1) / IKEv2 MODP DH-1024 (group 2) / IKEv2 MODP DH-2048 (group 14)
2010s
- RecordLimitedDLP-240: 795-bit prime-field discrete log, announced with RSA-240
DH-768 / DH-1024 / DSA-1024
- MathTheoreticalKilobit hidden-SNFS computation shows undetectable trapdoored DH/DSA primes are practical
DH-1024 / DSA-1024
- ProtocolPracticalLogjam: TLS downgrade to export-grade 512-bit DH, plus the 1024-bit precomputation warning
DHE_EXPORT-512 / DH-768 / DH-1024 / Oakley Group 2