Quantifying what it actually means to migrate to post-quantum cryptography

NSA releases: Immediate Actions to Push Toward Post-Quantum, cybersecurity advisory. Post on X by Eric Lu of Cognition giving a 130-digit number that divides RSA-260. Post on X by Steve Weis of Anthropic giving a 135-digit factor of RSA-896. Post on X by Anthropic, November 30, 2026, releasing papers on lattice cryptography
NSA releases: Immediate Actions to Push Toward Post-Quantum, cybersecurity advisoryPost on X by Eric Lu of Cognition giving a 130-digit number that divides RSA-260Post on X by Steve Weis of Anthropic giving a 135-digit factor of RSA-896Post on X by Anthropic, November 30, 2026, releasing papers on lattice cryptography

On December 2, the NSA told owners of national security systems to “immediately accelerate” the move to post-quantum cryptography [22], and published a list of steps that starts with an inventory [23]. The same day, the NSA, CISA and the Office of the National Cyber Director (ONCD) said that American AI companies had disclosed discoveries that “impact the security of some cryptography currently in use” [21]. Without adding to the speculation, whatever was disclosed was serious enough to get the NSA, CISA and ONCD to say so publicly.

The urgency comes from harvest now, decrypt later. As the NSA put it, “Adversaries are already collecting encrypted information to decrypt once the capabilities become available” [22]. Systems that can't move yet should get to at least CNSA 1.0, and systems bound by CNSA 2.0 can use only ML-KEM-1024 for post-quantum key exchange and ML-DSA-87 for signatures, plus LMS and XMSS for firmware [23].

The work already underway

Now is an especially relevant time to talk about this problem, but the work has been going on for a while. NIST standardized ML-KEM for key exchange and ML-DSA and SLH-DSA for signatures in 2024 (FIPS 203, 204 and 205), and in 2025 picked HQC as a backup to ML-KEM [13]. The IETF has published hybrid key exchange for TLS [19] and composite certificates [20]. Germany's BSI and France's ANSSI have issued their own recommendations [7, 8], Chrome has turned on hybrid key exchange [15], and researchers have measured what post-quantum TLS does to real-world connections [14]. After Anthropic's lattice result on November 30, both the Cryptography Incident Review Group (CIRG), a group of 21 leading cryptographers, and Cloudflare published assessments within a day [3, 4], and CIRG's advice was to keep migrating.

We've been working on this problem at Qernel too, and this post aims to quantify what it actually takes, in three parts.

  1. How much there is to migrate.
  2. What the replacements cost.
  3. Which connections need extra protection.

The short answer is that most of the cryptography we found isn't labeled quantum-safe, and that moving the key exchange to post-quantum is urgent, and hedging it further is cheap. Hedging signatures costs far more bytes, so the priority there is being able to switch signature schemes quickly if attacks improve. Still, transition signatures as soon as possible.

We say “hedging” because the replacements carry some risk of their own. Anthropic's algorithm attacks Module-LWE, the problem underneath both ML-KEM and ML-DSA. It doesn't break either standard and is far from practical against them, but CIRG expects the attack to improve, and recommends combining schemes from different mathematical families [3].

Background

In September 2026, two people directing AI agents factored two RSA challenge numbers that had stood for decades. Eric Lu at Cognition factored RSA-260 in about two weeks of wall-clock time, at that point the largest number publicly solved from the RSA Factoring Challenge. Sixteen days later, Stephen Weis at Anthropic factored RSA-896, which is larger still, in ten days on a fleet of idle H100s. Both used the general number field sieve, the same method the field has used for thirty years. What changed is that an AI agent ported the pipeline to GPUs, a large engineering job, and ran it on spare capacity.

The recipe

The recipe for these records is clear:

  1. Identify a problem with sufficiently computable mathematical structure.
  2. Identify an algorithm for that problem whose structure is amenable to parallel computation on GPUs, or on some other processor.
  3. Use AI to write the software that compiles that algorithm down to the hardware, eliminating inefficiencies that a human engineer would not have had the time or patience to reach.
  4. Repeat.

Step three used to be the expensive part, because it needed someone who understood both the mathematics and the machine, and even then the work was slow and error-prone. In both projects, AI agents did most of it. Lu reports that Devin had a working GPU siever for the number field sieve within a day of the first prompt, and Weis that Claude ported CADO-NFS and ran the fleet of GPUs. Lu still set priorities, built benchmarks and redirected work that went off track, but the engineering itself was largely automated.

Neither result comes close to RSA-2048. What they show is that an attack held back only by engineering may not stay held back for long. Making a known attack faster doesn't change how its cost grows with key size, so the cryptography at risk is what was already close to breakable, such as RSA-1024, 1024-bit Diffie–Hellman, short keys and legacy ciphers. Much of that falls under the weak label in the next section, which is one more reason to know where your cryptography is before you have to change it. Anthropic's result is a different kind of AI contribution. It's a new algorithm rather than a faster version of an old one, so it changes how an attack's cost grows, not just how quickly it runs.

What does it mean to migrate?

Like breaking encryption, migration has a recipe too:

  1. Discover. Find the cryptography you run. The NSA's list of steps starts with an inventory [23].
  2. Count bytes. Add up what each replacement adds to a connection. We do it for one full TLS 1.3 handshake, using the sizes in the specifications.
  3. Model time. Estimate how much longer a connection takes with those bytes, on a slow link and a fast one.
  4. Model risk. Write down the probability that a key exchange fails while its data is still sensitive, and from that the point where a hedge is worth its cost on a given connection.
  5. Switch. Start with the connections where the risk is worth the cost, and make the schemes easy to change.

You can see discovery modeled out on weakcrypto.com. The site is an open initiative, managed by Qernel, that uses AI to build a cryptographic bill of materials for as much public code as we can reach (Figure 1).

Figure 1: The weakcrypto.com map in October 2026, when it covered 896 repositories, grouped by the kind of project they came from. Red is weak cryptography and green is strong. Table 1 has the December totals.

Language models read each repository and record every place they find cryptography, which we call an instance. Each instance gets one of three labels.

  • Strong. Quantum-safe: the NIST post-quantum standards, along with modern symmetric ciphers and hashes such as AES and SHA-2.
  • Weak. Broken, below 128 bits of strength, or not recommended at any strength, from MD5 and 3DES to RSA-2048 and secp256k1.
  • Needs migrating or ungraded. weakcrypto.com calls this “neither”. Roughly half is classical public-key cryptography that's sound today and falls to a quantum computer, such as X25519 and ECDSA on P-256. The rest is cryptography the scan couldn't grade.
LabelInstancesShare
Weak926,72438.5%
Needs migrating or ungraded793,89733.0%
Strong686,77828.5%
Total2,407,399100%
Table 1: Cryptography found in 14,948 public repositories and 1.4 billion lines of code, counting each repository's latest scan. Read from weakcrypto.com on December 2, 2026 [1].

Table 1 puts 71.5 percent of instances outside the strong label. The scan found cryptography in 10,493 of the repositories. Of those, 82 percent have at least one weak instance and 99 percent have at least one that is weak, needs migrating or ungraded.

Disclaimer: these are unreviewed machine findings. Models mislabel some lines and miss others. The repositories aren't a random sample, and the 100 with the most instances, including cryptographic libraries such as liboqs and OpenSSL, hold 44 percent of the total. A label isn't a vulnerability either: MD5 as a cache key has no adversary, and a library may keep 3DES so people can decrypt old files.

Discovery tells you how much there is to look at, not what replacing it costs. To put a cost on replacing it, we take one common case, a TLS connection, and start with how far to trust the replacements.

What Anthropic found

The main result is a quantum algorithm for random instances of search Module-LWE with small secrets and errors, for suitable moduli, over power-of-two cyclotomic rings. For any fixed rank, its running time grows quasi-polynomially in the ring degree. That's an asymptotic improvement over the best previous attacks, which ran in exponential or slightly sub-exponential time [2, 3]. The algorithm and its running-time bound are checked in the Lean proof assistant, and the repository says the results were discovered by an internal research Claude model [2].

However, it's far from a practical attack. ML-KEM and ML-DSA fix the ring degree at 256 and reach higher security levels by adding ring elements, so they don't grow in the direction where the speedup appears. CIRG says that against the standardized parameters the algorithm needs vastly more work than the attacks we already knew about [3]. Cloudflare puts the cost against ML-DSA above 210002^{1000} operations, compared with a target of 21282^{128} [4].

It's still a meaningful result, but it has two limits worth knowing. It exploits the algebraic structure that makes ML-KEM and ML-DSA small (Figure 2), and CIRG reports no improvement against unstructured lattices, which FrodoKEM uses [3]. And it concerns Module-LWE, which protects the private keys of both schemes. ML-DSA's resistance to forgery also rests on Module-SIS, and the paper doesn't treat ML-DSA's Module-SIS parameters [2].

A 2 × 2 grid of polynomials: ML-KEM, ML-DSA

n = 8n = 84−62687246−735−4335−44−626872−56−735−433−2−44−62687−3−56−735−43−7−2−44−6268−3−3−56−735−4−8−7−2−44−6264−3−3−56−735−6−8−7−2−44−62−54−3−3−56−73−2−6−8−7−2−44−6−3−54−3−3−56−76−2−6−8−7−2−447−3−54−3−3−56774−61−44−4−236−54−4−4−64774−61−446−236−54−4−4−44774−61−446−236−54−44−44774−61446−236−54−14−44774−6−4446−236−56−14−447745−4446−236−46−14−4477−65−4446−23−7−46−14−447−3−65−4446−2
Figure 2: The structure behind ML-KEM and ML-DSA, at toy scale. Each block comes from one polynomial: every column is the last one shifted down a step, with the sign flipped where it wraps (dashed). This is what Anthropic’s algorithm exploits.

CIRG expects the attack to improve [3], and lattices aren't the only family under pressure. In October, two preprints, not yet peer reviewed, claimed that the SHA-256 parameter sets of the hash-based signatures LMS and XMSS are weaker than their stated security, LMS in both papers and XMSS in one [5, 6]. With AI now producing results like Anthropic's, we should plan for more of them.

How do we defend?

CIRG recommends continuing the migration, using the highest security level each application can support, combining schemes from different mathematical foundations, and being able to replace schemes quickly [3]. In practice that gives these options:

  • A higher security level. ML-KEM-1024 and ML-DSA-87. More margin, but still the structured lattices the attack targets.
  • Unstructured lattices. FrodoKEM, which Germany's BSI and France's ANSSI see as a conservative option [7, 8], though NIST chose not to standardize it [9].
  • A different family. HQC, a code-based KEM that NIST picked as a backup to ML-KEM [13], for key exchange. SLH-DSA, which relies only on hash functions, for signatures.
  • A cross-family hybrid. HQC added to the hybrid most of the web already uses, X25519 with ML-KEM. We call this the three-way hybrid. The key stays secret unless all three are broken, but no standard defines it yet.

X25519MLKEM768, the hybrid most post-quantum web traffic already uses, isn't on the list. It protects you if someone finds a classical break of ML-KEM, but a quantum computer that can run an attack like Anthropic's would break X25519 too.

Signatures and key exchanges run on different clocks. Traffic protected by a key exchange can be recorded today and decrypted later, so a hedge must be in place before the data is ever sent. Handshake signatures only have to hold at the moment you connect, so they need replacing before an attack becomes practical, not before the data is sent. Signatures on firmware, code and documents are the exception, because they may have to be trusted for decades.

Counting the costs

Moving to post-quantum cryptography has one cost the standards fix: bigger keys, ciphertexts and signatures, so every handshake sends more data. Per connection it's small, but across an organization, and especially on constrained networks, it adds up.

Bytes aren't the only cost. Post-quantum schemes also change how much computation a handshake takes and how much memory it needs. ML-KEM is typically faster than X25519, and ML-DSA is slower than elliptic-curve signatures to sign but faster to verify [11], while HQC's decapsulation and SLH-DSA's signing are much slower than both. Those costs depend on the implementation and the hardware, so we leave them out here. Byte counts are the most reliable comparison, since the standards fix them. Every byte count and timing below comes from our handshake comparison tool. The byte counts cover one full handshake in both directions, with no session resumption. The certificate chain has three certificates, a leaf, an intermediate and a root. The server sends the first two, and the leaf carries two Certificate Transparency timestamps (SCTs). That makes five signatures per handshake: one in each of the two certificates sent, one in each SCT, and the server's CertificateVerify. The key exchange is sent only once in each direction.

The threshold to watch is the server's first flight. Over TCP, a server can send about 14.5 KB, or ten packets, in its first round trip before it has to wait for the client. A TLS handshake that fits takes the same number of round trips as today. One that doesn't takes at least one more: about 20 ms on a fast link, and 200 ms or more on a slow or distant one. QUIC has a similar limit: until a server has validated the client's address, it can send only three times what it has received.

Key exchange

Table 2 keeps ECDSA P-256 certificates and changes only the key exchange.

OptionKey exchangeHandshakeAddedFirst flight
ClassicalX255192.1 KB–fits
Common hybridX25519MLKEM7684.4 KB+2.3 KBfits
Higher security levelSecP384r1MLKEM10245.4 KB+3.3 KBfits
Three-way hybridX25519 + ML-KEM-768 + HQC-12811.1 KB+8.9 KBfits
Unstructured latticeFrodoKEM-97633.5 KB+31.3 KBover
Table 2: TLS 1.3 handshake bytes, both directions, with ECDSA P-256 certificates. “First flight” is whether the server's first flight fits in about 14.5 KB. FrodoKEM, which NIST didn't select [9], is shown without a classical component.

Every option fits in the first flight except FrodoKEM, which takes about 15.6 KB in each direction.

Signatures

Table 3 keeps X25519MLKEM768 and changes only the certificates.

CertificatesNotesHandshakeAdded
ECDSA P-256today's certificates4.4 KB–
FN-DSA-512lattice; standard still in draft9.1 KB+4.6 KB
ML-DSA-4418.7 KB+14.2 KB
ML-DSA-6524.4 KB+20.0 KB
ML-DSA-87highest level32.3 KB+27.9 KB
Mixed chainML-DSA-44 leaf, SLH-DSA-SHAKE-128s CAs28.3 KB+23.8 KB
SLH-DSA-SHAKE-128severy certificate43.3 KB+38.9 KB
SLH-DSA-SHAKE-128fevery certificate89.5 KB+85.1 KB
Table 3: TLS 1.3 handshake bytes, both directions, with X25519MLKEM768 key exchange. Three-certificate chain with the root not sent; SCTs are assumed to be signed with the leaf's scheme, following Kampanakis and Childs-Klein [14].

Of the post-quantum options, only FN-DSA fits in the first flight. ML-DSA-44's signature is 2.4 KB and its public key 1.3 KB, and repeated across the chain they add 14 KB. SLH-DSA's signatures run from 7.8 KB to 17 KB. It's also slow to sign, and the server signs every handshake, so the realistic way to use it is the mixed chain, with SLH-DSA on the certificate authorities and ML-DSA on the leaf. CNSA 2.0 excludes SLH-DSA for this use [24].

Time

Extra bytes matter less the more data a connection carries, which is the main finding of Kampanakis and Childs-Klein [14]. Table 4 applies their method to the configurations above.

1 Mbps, 200 ms100 Mbps, 20 ms
Configuration1 KiB reply2 MiB reply1 KiB reply2 MiB reply
Classical660 ms18.1 s61 ms293 ms
Common hybrid684 ms18.1 s61 ms291 ms
Three-way hybrid732 ms18.1 s61 ms286 ms
ML-DSA-44 certificates872 ms18.2 s81 ms296 ms
Mixed chain956 ms18.3 s82 ms291 ms
ML-DSA-87 certificates992 ms18.4 s82 ms289 ms
Table 4: Modeled time to last byte, including TCP and TLS setup. One TCP connection with slow start and a ten-segment initial window, no packet loss and no CPU time. Key-exchange rows use ECDSA P-256 certificates, and certificate rows use X25519MLKEM768. Differences of a few milliseconds in the 2 MiB columns aren't meaningful.

For a 2 MiB download the handshake hardly shows up. For a 1 KiB reply on the slow link, post-quantum certificates add 30 to 50 percent and the three-way hybrid adds 11 percent. You'll notice the extra bytes most on constrained and high-latency networks, and in workloads that make many small, short-lived connections.

Which connections need a second post-quantum family

The tables price a hedge per handshake. Whether a connection should pay that price depends on what it protects and for how long. Here we model that for the key exchange.

How likely a configuration is to fail

We group schemes by the kind of mathematical problem their security rests on: elliptic curves EE, structured lattices LL (ML-KEM's family) and codes CC (HQC's). This is a simplification. An attack on one scheme won't always carry over to the others in its group, and we leave FrodoKEM's unstructured lattices out of the model. A family can be broken in two classical ways: by a new attack that works only against that family, such as a better algorithm for lattice problems, or by a single advance that breaks lattices and codes together. A configuration fails within a window of TT years if every family in it is broken by the end of the window. That rests on hybrids staying secure as long as any one component does, which holds with a sound combiner [17]. Three kinds of event can break a family:

  • An attack on that family alone, arriving at rate afa_f per year for family ff. We set aE=0a_E = 0. A classical break of elliptic curves only matters in this model if it coincides with a break of the other family as well, and at any plausible rate that product is too small to change the results: at 0.1 percent a year it moves no probability in Table 6 by more than 0.02 percentage points.
  • A common classical attack, at rate a0a_0 per year, which breaks lattices and codes at once. It stands for an advance that doesn't respect the boundary between families.
  • A cryptographically relevant quantum computer, which exists within the window with probability G(T)G(T) and breaks family ff if that family is quantum-weak, with probability θf\theta_f. Elliptic curves have θE=1\theta_E = 1, because a cryptographically relevant quantum computer is one that can break today's public-key sizes with Shor's algorithm, and elliptic curves need fewer qubits to break than RSA-2048. For lattices, θL\theta_L is the chance that some descendant of Anthropic's algorithm becomes practical at deployed sizes, and it's the number this result gives us a reason to raise.

We take all of these to be independent, as in the common-shock models of reliability theory [16]. That's a simplification too. The obvious dependence, one advance driving several attacks at once, is what the common attack is for. Others, such as AI speeding up both quantum algorithms and classical cryptanalysis, would raise the risk for every configuration and push more of it into the floor in Eq. 5. Over the window, let αf\alpha_f be the probability that ff falls to its own attack, ζ\zeta the probability that the common attack arrives, and βf\beta_f the probability that ff is either attacked or quantum-weak:

αf=1−e−afT,ζ=1−e−a0T,βf=αf+(1−αf) θf. \alpha_f = 1 - e^{-a_f T}, \qquad \zeta = 1 - e^{-a_0 T}, \qquad \beta_f = \alpha_f + (1 - \alpha_f)\,\theta_f . (1)

Write qq for the probability of failure and GG for G(T)G(T). For the common hybrid, ML-KEM-768 and HQC-128 without X25519 (the cross-family pair), and the three-way hybrid of Table 2,

q({E,L})=G [ζ+(1−ζ) βL],q({L,C})=G [ζ+(1−ζ) βLβC]+(1−G) [ζ+(1−ζ) αLαC],q({E,L,C})=G [ζ+(1−ζ) βLβC]. \begin{aligned} q(\{E, L\}) &= G\,\big[\zeta + (1 - \zeta)\,\beta_L\big], \\ q(\{L, C\}) &= G\,\big[\zeta + (1 - \zeta)\,\beta_L \beta_C\big] \\ &\quad + (1 - G)\,\big[\zeta + (1 - \zeta)\,\alpha_L \alpha_C\big], \\ q(\{E, L, C\}) &= G\,\big[\zeta + (1 - \zeta)\,\beta_L \beta_C\big]. \end{aligned} (2)

The first line is why X25519MLKEM768 doesn't help here. The curve removes every term in 1−G1 - G, the cases where lattices fall before a quantum computer exists, but θL\theta_L sits inside βL\beta_L, in the term the curve can't touch. The second and third lines differ by exactly the 1−G1 - G term. Adding X25519 to the cross-family pair removes it for 64 bytes, so if you do add a second post-quantum family, the model suggests keeping X25519 as well: the three-way hybrid of X25519, ML-KEM-768 and HQC-128. Compared with the common hybrid, it lowers the probability of failure by

Δq(T)=q({E,L})−q({E,L,C})=G (1−ζ) βL (1−βC). \Delta q(T) = q(\{E, L\}) - q(\{E, L, C\}) = G\,(1 - \zeta)\,\beta_L\,(1 - \beta_C) . (3)

There are two caveats on that suggestion. First, it isn't standard. No standard defines this three-way combination, and HQC's own standard isn't out yet, so for now it's something you'd build and test yourself rather than switch on. With no TLS codepoint for it, it only works between endpoints you control, and HQC-128 is a level-1 backup: HQC-192 keeps level 3 for about twice the added bytes, and still fits in the first flight. Second, it isn't allowed for national security systems. CNSA 2.0 approves only ML-KEM-1024 for key exchange, and neither X25519 nor HQC is on its list [23]. If you're bound by CNSA 2.0, the hedge available to you is the higher security level: ML-KEM-1024, on its own or paired with P-384.

Table 5 lists what we put in. Only GG comes from a source, the Global Risk Institute's 2025 survey of 26 experts [18]. The attack rates are nearly impossible to estimate, and ours are guesses informed by a track record: RSA has gone decades without a practical classical break, while some newer schemes that reached late rounds of NIST's process were broken outright [24].

InputMeaningValue
G(10)G(10), G(15)G(15)quantum computer within 10 and 15 years38.5%, 60.5%
a0a_0classical attack on lattices and codes at once0.1% a year
aLa_Lclassical attack on lattices only0.1% a year
aCa_Cclassical attack on codes only0.2% a year
θC\theta_Cquantum attack on codes2%
θL\theta_Lquantum attack on lattices2% or 10%
Table 5: Model inputs. GG is the midpoint of the ranges in the Global Risk Institute's 2025 survey of 26 experts, 28 to 49 percent within ten years and 51 to 70 percent within fifteen [18]. Everything else is our judgment. For θL\theta_L, 2 percent is what we'd have said before November 30, and 10 percent is for someone who has since become more worried.

Table 6 gives the resulting probabilities of failure.

θL\theta_L = 2%θL\theta_L = 10%
Key exchange10 years15 years10 years15 years
Common hybrid, {E,L}\{E, L\}1.5%3.0%4.5%7.7%
ML-KEM-768 + HQC-128, {L,C}\{L, C\}1.1%1.6%1.2%1.8%
Three-way hybrid, {E,L,C}\{E, L, C\}0.4%1.0%0.5%1.2%
Removed by adding HQC, Δq\Delta q1.1%2.0%4.0%6.4%
Floor, G ζG\,\zeta (Eq. 5)0.4%0.9%0.4%0.9%
Table 6: Probability that each key exchange fails within the window, from Eqs. 1 to 3. Inputs are in Table 5.

Moving θL\theta_L from 2 to 10 percent means adding HQC lowers the probability of a failure by 3.3 to 3.7 times as much, depending on the window.

What adding HQC is worth per connection

The probabilities above say how much adding HQC lowers the chance of a failure. To decide whether that's worth its bytes on a given connection, we put both sides in dollars: the expected cost of a failure that the hedge removes, and what the hedge itself costs. For one kind of connection, jj, we need four estimates: vjv_j, the harm in dollars if a year of its traffic is exposed; TjT_j, the number of years that data stays sensitive; NjN_j, the number of connections a year; and wjw_j, the cost of the hedge per connection. The hedge is worth adding when the risk it removes from one connection exceeds its cost:

vjNj Δq(Tj)>wj. \frac{v_j}{N_j}\,\Delta q(T_j) > w_j . (4)

We estimate wjw_j from bandwidth alone. The three-way hybrid adds HQC-128's public key and ciphertext to the common hybrid, which is 6.7 KB, and it still fits in the first flight. We price those bytes at $0.09 per GB, AWS's list price for the first 10 TB a month of data sent out to the internet [10], which puts wjw_j at 6×10−76 \times 10^{-7} dollars per connection. Large senders pay less, down to $0.05 per GB, which halves it. With θL\theta_L at 2 percent, the hedge pays for its bytes when a connection carries more than about 0.006 cents of ten-year secret, or 0.003 cents of fifteen-year secret.

Where latency matters, wjw_j also includes the value of the delay, which in Table 4 is 48 ms for a 1 KiB reply on the slow link and nothing measurable on the fast one. So the data sets the left side of Eq. 4, and the link sets the right.

Eq. 4 doesn't apply to handshake signatures, which aren't harvested. Their exposure is the time between an attack becoming practical and the scheme being replaced. It does apply to long-lived signatures, with TjT_j the years they must be trusted and SLH-DSA in place of HQC.

What adding more families can't do

Adding more families that the common attack also breaks shrinks the term (1−ζ) βLβC(1 - \zeta)\,\beta_L \beta_C in Eq. 2, but nothing shrinks ζ\zeta. However many such families join the curve,

q  ≥  G(T) ζ(T). q \;\geq\; G(T)\,\zeta(T) . (5)

Adding families removes the risk particular to each one and leaves the risk they share. With θL\theta_L at 2 percent, the hedge removes 72 percent of the common hybrid's ten-year risk and 66 percent of its fifteen-year risk. About nine-tenths of what's left is the floor. No combination of schemes removes that shared risk, which is why being able to switch quickly matters more than any one choice of hybrid.

The split between shared and separate risk matters as much as its size. Keep the total classical rates at 0.2 percent a year for lattices and 0.3 percent for codes. If none of the lattice rate is shared with codes, the hedge removes 94 percent of the fifteen-year risk, and if all of it is, 38 percent. We can't tell which is closer to the truth, and HQC is itself built on structured, quasi-cyclic codes.

Putting it together

Table 7 compares the key-exchange options for one illustrative organization. It makes a billion TLS connections a year, about 30 a second, and a year of its traffic would cost $50 million if it were exposed, about ten times IBM's 2026 global average for a single data breach, $4.99 million [12]. Bandwidth is priced at $0.09 per GB [10], and the expected loss is that $50 million times the probability of a failure within ten years, from Eq. 2 with the inputs in Table 5.

Failure in 10 years
Key exchangeAdded bytesBandwidth per yearθL\theta_L = 2%θL\theta_L = 10%Total per year
X25519 alone–$038.5%38.5%$19,250,000
ML-KEM alone2,208$1992.7%5.8%$1,368,000
HQC alone6,610$5953.7%3.7%$1,852,000
Common hybrid2,272$2041.5%4.5%$759,000
ML-KEM + HQC8,882$7991.1%1.2%$527,000
Three-way hybrid8,946$8050.4%0.5%$215,000
Table 7: Key-exchange options for an organization making a billion TLS connections a year, whose traffic would cost $50 million a year to have exposed. Added bytes are per handshake, relative to X25519, with ECDSA P-256 certificates. The total is bandwidth plus expected loss, at θL\theta_L = 2%. ML-KEM is ML-KEM-768 and HQC is HQC-128 throughout. The connection count and the $50 million are illustrative.

Bandwidth is a small part of every row. The biggest drop in expected cost comes from moving off classical key exchange at all. Pairing ML-KEM with X25519 does better than either post-quantum scheme on its own, because the curve still protects against a classical break of the new scheme, and that's why the common hybrid is the baseline. Pairing ML-KEM with HQC instead does better again with our inputs, because it protects against a lattice break, but it gives up the curve's protection, so it loses to the common hybrid if lattices turn out to be safe or classical attacks are more likely than we assume. The three-way hybrid keeps both protections for a small extra cost in bytes. That makes hybrids of more than two algorithms worth the community's attention, especially where the extra bytes and computation barely matter, such as long-lived connections and bulk transfers.

The probabilities in this model can't be predicted precisely, and most of our inputs are judgment calls. The model is still useful. It replaces one hard guess, whether a hedge is worth it, with several smaller ones, each of which can be checked against evidence where it exists: an expert survey for the quantum computer, the track record of cryptanalysis for the attack rates, and published prices for the bytes. Breaking a hard estimate down like this tends to give a better answer than guessing the whole thing at once. It also makes every assumption explicit, so it can be argued with and updated, and it shows which inputs the answer depends on. The three-way hybrid comes out lowest across a wide range of inputs, from lattices that are certain to be safe against quantum computers to attack rates ten times higher or lower than ours, while the two two-way hybrids swap places depending on which risk is larger.

What we left out

On the cost side, we only touch on compute and memory, which depend on the implementation and the hardware and matter most on constrained devices. We're developing benchmarks on real hardware at Qernel. The timing model assumes no packet loss, which makes large handshakes worse. Real networks are also uneven, from data-center links to satellite, cellular and industrial ones, so a few constrained links carry most of the cost, and the key exchange can be matched to each network rather than chosen once for all of them. Session resumption, cached certificate chains, certificate compression, KEM-based authentication (KEMTLS) and Merkle tree certificates can all reduce the bytes in Table 3, though compression helps less than it does today, because post-quantum keys and signatures barely compress. Hybrids also bring deployment risk. They mean two implementations and a combiner to get right, and their bigger messages broke some servers when Chrome turned hybrid key exchange on, because those servers expected to read the whole ClientHello in one call [15]. We only cover TLS. SSH, IPsec, code signing and stored data have the same split between confidentiality and authentication, with different sizes and constraints.

On the risk side, the model covers mathematical breaks of the key exchange. It leaves out implementation flaws, which are how most cryptography fails in practice and which a hybrid has more chances to get wrong, and it has no model for signatures or for security levels within a family. The published TLS standards pair lattices with classical algorithms [19, 20], we know of none for the three-way hybrid, and HQC's own standard isn't final. Post-quantum certificates also depend on certificate authorities, browsers and trust stores being ready, which is further behind than key exchange, and an organization that isn't crypto-agile yet faces switching costs the model doesn't count. Finally, rumors that RSA had been broken spread for days before Anthropic's release [25, 26, 27], and the NSA's advisory on December 2 [22] set off a new round of speculation [28, 29, 30]. We're researching how to react optimally to these signals in real time while also incorporating switching costs, by modeling the problem as a partially observable stochastic control problem.

To learn more about migration and how we'd handle it, see Ray Fitzgerald's article on cryptographic agility [24].

References

  1. [1]Qernel Technologies (2026). weakcrypto.com: a public record of the cryptography in open-source code. Figures read December 2, 2026. https://weakcrypto.com
  2. [2]Anthropic (2026). formal-math/lattices: four papers with Lean formalization, led by “Galactic quasi-polynomial quantum algorithms for integral and module lattices.” Research repository, released November 30, 2026. https://github.com/anthropics/formal-math/tree/main/lattices
  3. [3]Cryptography Incident Review Group (2026). “Initial Assessment of Anthropic's Findings on Lattice Cryptography.” Statement #1, November 30, 2026. https://cirg.org/statements/1/
  4. [4]J.-P. Aumasson, L. Galicer, C. Patton, B. Westerbaan (2026). “Post-quantum cryptography is still safe.” Cloudflare blog, December 1, 2026. https://blog.cloudflare.com/pq-is-still-safe/
  5. [5]F. Strenzke (2026). “A Kelsey–Kohno Attack Variant against SHA-2 Message Digests in HSS/LMS and XMSS.” IACR ePrint 2026/2635. https://eprint.iacr.org/2026/2635
  6. [6]C. Guo, H. Cheng, B. Preneel, M. Wang (2026). “Provable Security of SHA-256-Based LMS Revisited in the Ideal-Cipher Model.” IACR ePrint 2026/2624. https://eprint.iacr.org/2026/2624
  7. [7]BSI (2026). “Cryptographic Mechanisms: Recommendations and Key Lengths.” TR-02102-1, version 2026-01, section 2.4.1. https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/Publications/TechGuidelines/TG02102/BSI-TR-02102-1.pdf
  8. [8]ANSSI (2023). “ANSSI views on the Post-Quantum Cryptography transition (2023 follow up).” https://cyber.gouv.fr/sites/default/files/document/follow_up_position_paper_on_post_quantum_cryptography.pdf
  9. [9]G. Alagic et al. (2022). “Status Report on the Third Round of the NIST Post-Quantum Cryptography Standardization Process.” NIST IR 8413-upd1, section 4.3.1. https://doi.org/10.6028/NIST.IR.8413-upd1
  10. [10]Amazon Web Services (2026). AWS Price List, data transfer out from US East (N. Virginia) to the internet, first 10 TB per month: $0.090 per GB. Price list published November 19, 2026. https://aws.amazon.com/ec2/pricing/on-demand/
  11. [11]Cloudflare (2024). “The state of the post-quantum Internet.” Cloudflare blog, March 5, 2024. https://blog.cloudflare.com/pq-2024/
  12. [12]IBM (2026). Cost of a Data Breach Report 2026. Global average cost of a data breach: $4.99 million. https://www.ibm.com/reports/data-breach
  13. [13]NIST (2025). “NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption.” March 11, 2025. https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption
  14. [14]P. Kampanakis, W. Childs-Klein (2024). “The impact of data-heavy, post-quantum TLS 1.3 on the Time-To-Last-Byte of real-world connections.” MADWeb 2024. https://eprint.iacr.org/2024/176
  15. [15]D. Adrian et al. “tldr.fail.” https://tldr.fail/
  16. [16]A. W. Marshall, I. Olkin (1967). “A Multivariate Exponential Distribution.” Journal of the American Statistical Association 62, 30–44.
  17. [17]F. Giacon, F. Heuer, B. Poettering (2018). “KEM Combiners.” PKC 2018. https://eprint.iacr.org/2018/024
  18. [18]M. Mosca, M. Piani (2026). Quantum Threat Timeline Report 2025. Global Risk Institute. https://globalriskinstitute.org/publication/quantum-threat-timeline-report-2025b/
  19. [19]K. Kwiatkowski, P. Kampanakis, B. E. Westerbaan, D. Stebila (2026). “Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3.” RFC 10024. https://www.rfc-editor.org/info/rfc10024
  20. [20]M. Ounsworth, J. Gray, M. Pala, J. Klaußner, S. Fluhrer (2026). “Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in X.509 Public Key Infrastructure.” RFC 10073. https://www.rfc-editor.org/info/rfc10073
  21. [21]Office of the National Cyber Director, NSA, CISA (2026). “Joint Statement on Recent Advances in Cryptographic and Cybersecurity Capabilities.” December 2, 2026. https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities
  22. [22]NSA (2026). “NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security Systems.” Press release, December 2, 2026. https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/
  23. [23]NSA (2026). “Immediate Actions to Push Toward Post-Quantum.” Cybersecurity Advisory PP-26-4956, December 2026. https://media.defense.gov/2026/Dec/01/2004039413/-1/-1/0/CSA_Immediate_Actions_Push_Toward_PQC.PDF
  24. [24]R. Fitzgerald (2026). “Cryptographic Agility & the Post-Quantum Migration.” Qernel Library. https://www.qernelzoo.com/library/crypto-agility/the-post-quantum-migration
  25. [25]C. Guillemet (2026). Post on X, November 25, 2026. https://x.com/P3b7_/status/2125633815519354949
  26. [26]F. Bruckhoff (2026). Post on X, November 28, 2026. https://x.com/franzbruckhoff/status/2126472666718613584
  27. [27]Walter Bloomberg (2026). Post on X, November 30, 2026. https://x.com/DeItaone/status/2127415494512669092
  28. [28]P. E. Metzger (2026). Post on X, December 2, 2026. https://x.com/perrymetzger/status/2128171777939460536
  29. [29]H. Wilson (2026). Post on X, December 2, 2026. https://x.com/holmesworcester/status/2128184257327534331
  30. [30]splitXCH (2026). Post on X, December 2, 2026. https://x.com/splitXCH/status/2128181043689586941