Quantum Computing · Quantum-Safe
Shor against Curve25519: a preprint estimates 1,189 logical qubits and 47 million gates
Two QUT researchers cost Shor's circuit for Curve25519, the curve behind X25519 and Ed25519: fewer gates than for secp256k1. It is an estimate.
Key points
- A preprint estimates Shor's circuit for Curve25519 at 47.2 million Toffoli gates and at most 1,189 logical qubits.
- That is 35% and 18% fewer gates than the circuits Schrottenloher published for the secp256k1 curve.
- It counts logical qubits, not physical ones, and leaves out parts of the algorithm: it does not say when the curve could be broken.
Yintong Luo and Craig Costello, of Queensland University of Technology (QUT), have worked out what it would cost to attack Curve25519 with Shor’s algorithm on a fault-tolerant quantum computer: a circuit of 47,199,530 Toffoli gates that uses at most 1,189 logical qubits. They describe it in a preprint in the IACR ePrint archive, received on 30 October and approved on 4 November.
Curve25519 is the elliptic curve behind X25519 and Ed25519, and the authors describe it as widely deployed. Until now, resource estimates over prime fields had mostly focused on prime-order curves such as secp256k1. Curve25519 has composite order, and that means the circuits have to be adapted.
What they have calculated
- Fewer gates than for secp256k1. Their circuit uses around 35% and 18% fewer gates than the two circuits André Schrottenloher published for secp256k1, one optimised for space and the other for gates.
- Where the saving comes from. With the same arithmetic techniques, the field and subgroup parameters of Curve25519 and the budgets chosen for the greatest common divisor computation save 2,218,944 gates compared with secp256k1. A recoding of the scalar’s digits saves 15,204 more, and also works for prime-order curves.
- A trick specific to the curve. They add a fixed point of order 8 so that the accumulator never lands in the subgroup of the table points. That way the point additions have no exceptional cases, without adding any quantum additions.
Note · what this estimate does not say
These are logical qubits, not physical ones: each would need many error-corrected physical qubits, and the preprint gives neither that figure nor a running time. The count covers the whole scalar multiplication, but the implementation uses truncated arithmetic and heuristic budgets, and leaves out the synthesis of the quantum Fourier transform rotations and the classical part of the attack. It is a preprint that has not been peer reviewed.
What changes for decision-makers
The timeline does not change: nobody has a machine with 1,189 logical qubits today. What changes is the starting assumption. Curve25519 is often chosen because it is fast and hard to implement badly, but against a quantum computer it is no more resistant than other 256-bit curves: by this calculation, its circuit is even slightly cheaper than secp256k1’s. In a cryptographic inventory, X25519 and Ed25519 count as what they are, elliptic-curve cryptography that has to be migrated, just like that on the curves NIST is removing from its standards after 2035.