PQ Python

Experts split on whether 256-bit curves are weakened but agree on what to do first

Filippo Valsorda reads the advisory’s inventory list as a hint that P-256, X25519 and Ed25519 are weakened. That is interpretation, not NSA text, and several cryptographers dispute it. Both camps prescribe hybrid ML-KEM key exchange now and ML-DSA next.

State as of 3 Dec 2026

In short

  • Valsorda’s claim that 256-bit curves are “likely broken or significantly weaker” is an inference from what the advisory’s list leaves out, not an NSA statement (details).
  • Connolly and Aaronson lean toward it and Prince goes further; Kobeissi, Soatok, Smart, Back, Miller and Dukhovni dispute it (details).
  • Flagged is not broken: the list follows CNSA membership, and it also flags Ed448 and X448 (details, table).
  • A key-exchange break exposes recorded traffic; a signature break allows live impersonation. Hybrid key exchange fixes only the first (details).
  • If X25519 fell, X25519MLKEM768 would still rest on ML-KEM-768, but the certificate signature would not be protected (details).
  • The public AI cryptanalysis is far from practical, and no source links it to the NSA disclosure (details).

Both camps prescribe the same first move#

Valsorda and his critics agree on what to do: deploy hybrid ML-KEM key exchange (X25519MLKEM768) on every TLS hop now, to stop harvest-now-decrypt-later collection, and accelerate ML-DSA. Soatok, a sceptic of the curve reading, puts it as “If it doesn’t use ML-KEM (with or without ECC), fix that” (Bluesky).

The Python action plan is therefore largely insensitive to who turns out to be right. What the disagreement does change is the urgency of signatures: whether ES256, EdDSA, passkeys, SSH keys and PEP 740 attestations need emergency or routine rotation (Unknowns).

Valsorda argues by exclusion that 256-bit curves are weakened#

Filippo Valsorda’s post “What to Make of the NSA Advisory” is dated 2 Dec 2026 and self-described as “hastily drafted”. Its conclusion: “256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought”, while “RSA and P-384 might be fine as an interim solution.”

The argument works from what the inventory list names and omits:

  • The advisory explicitly flags “elliptic curves other than P-384 or P-521” and “EdDSA”. It therefore calls out “the P-256 elliptic curve (by exclusion), and Ed25519… They are not calling out RSA.”
  • RSA-2048 is just as non-CNSA as P-256, yet it is allowed for legacy roots.
  • “Pairing-based cryptography is preponderantly done over curves with ~256-bit prime subgroup order, so it’s another hint we lost 256-bit ECC specifically. (Don’t be confused by BLS12-381’s name, its group order is 255 bits.)”
  • The attack is probably classical, because “no quantum algorithm would ‘present a significant threat…’ without also a big progress in CRQC development, which is not mentioned anywhere.”

Interpretation. This is a serious prioritization hypothesis, not a published attack result (the ASTRA report’s framing). Replying to Damien Miller, Valsorda conceded “I know I am reading tea leaves, but the press release is clear that something got disclosed” (Mastodon).

QuotesValsorda's recommendations
  • Move TLS to X25519MLKEM768.
  • Get ready to rotate WebPKI certificates and require ML-DSA or RSA-3072/P-384 for authentication.
  • Move private PKI to ML-DSA, or RSA-3072/P-384 where necessary.
  • “update OpenSSH to 10.6 and rotate to ssh-mldsa44-ed25519 keys”.
  • Plan for “attacks against ECC and/or RSA getting better over coming weeks and months”.

He stresses that “auth is secure only once you don’t have any vulnerable anchors”, and notes that “ML-DSA certificate support is far less available than ML-KEM key exchange”. The post names no Python library. Python consequences are on TLS, FastAPI and identity, infrastructure and supply chain.

Connolly and Prince back the reading; Kobeissi, Soatok, Smart and others dispute it#

The sceptics share one argument: the inventory list is standard CNSA boilerplate, and P-256 and Ed25519 were never CNSA-approved. On the other side are the RSA-2048 carve-out and the first-ever mention of pairings (weighed below). Several key quotes are secondhand, as marked.

Who Position Source quality
Deirdre Connolly Agrees: “no notes” First-hand (Bluesky)
Scott Aaronson Declines to speculate; calls Valsorda “informed speculation” First-hand (blog)
Matthew Prince, Cloudflare CEO Briefed; goes further and includes RSA First-hand (X); one deleted reply secondhand
Justin Drake, Ethereum Foundation secp256k1, BLS12-381, BN254 “may be vulnerable… as early as 2027 or 2028” Secondhand; before the advisory
Nadim Kobeissi, Symbolic Software “no new weakness in 256-bit elliptic curves” First-hand (blog, X)
Soatok Valsorda is “extrapolating further than the evidence states” First-hand (Bluesky, blog)
Nigel Smart Six things companies “have been told to do… for at least five years” First-hand (Bluesky)
Adam Back “a reading comprehension mistake” Secondhand
Damien Miller, OpenSSH NSA is “not listing RSA” First-hand (Bluesky)
Viktor Dukhovni Omission may reflect qubit counts, a quantum explanation Blog comment

No public comment was found on the elliptic-curve question from Matthew Green, Nadia Heninger, Daniel J. Bernstein, Bas Westerbaan or Tanja Lange.

Quotessupportive or consistent
  • Deirdre Connolly wrote before Valsorda’s post that “the NSA is telling you to drop 128bit curves, probably drop RSA2048, and move immediately to post-quantum”. Afterwards Connolly wrote “no notes” (Bluesky, Bluesky).
  • Scott Aaronson declines to speculate but sends readers to Valsorda for “informed speculation” (Shtetl-Optimized).
  • Matthew Prince, a briefed insider, on 3 Dec 2026: “Yes, we were briefed on something. Yes, it’s a big deal. No, we can’t give you all the details yet.” (X). Also: “Assume anything that uses RSA or Elliptic Curve cryptography” (X), which goes further than Valsorda. And: “We’re not doomed, the researchers have been responsible and we have time before any potential techniques are released, but this is no longer a drill.” (Techmeme).
  • Justin Drake (Ethereum Foundation), around 30 Nov 2026 and before the advisory, reportedly said secp256k1, BLS12-381 and BN254 “may be vulnerable to new classical attacks… as early as 2027 or 2028”. Drake called the timeframe “a personal judgment” (KuCoin/Odaily, TokenPost).

Unverified. A since-deleted Prince reply, reported only by OfficeChai, said “There are things worse than that” when he was asked whether RSA-2048 was cracked. The Drake quotes are also secondhand.

Quotessceptical
  • Symbolic Software (Nadim Kobeissi): “Today’s publications identify no new weakness in 256-bit elliptic curves and give no evidence of a reduction in their classical security margins… We would not revise our assessment of Ed25519’s classical security on this basis.” It adds that NSA’s P-384 preference “predates today’s advisory by years” (Symbolic Software). Kobeissi was much harsher on X (Techmeme).
  • Soatok: “Suite B even recommended P-384… Either he’s aware of an attack I’m not, or he’s extrapolating further than the evidence states” (Bluesky). Longer post: Rumors will metastasize.
  • Nigel Smart reads the advisory as a list of six things companies “have been told to do… for at least five years” (Bluesky).
  • Adam Back (secondhand): “it’s a reading comprehension mistake to infer that list relates to recent AI algorithmic research” (KuCoin/BeInCrypto).
  • Damien Miller (OpenSSH) notes the guidance “is not listing RSA as one of the things that needs to be urgently moved away from” (Bluesky).
  • Viktor Dukhovni (in Aaronson’s comments) suggests the omission could reflect that 256-bit curves need fewer qubits than RSA, which would be a quantum explanation, not a classical one (Shtetl-Optimized).

The discussion is large. The Hacker News thread on the NSA press release reached about 2,400 points and 1,180 comments, and the thread on Valsorda’s post about 980 points (HN, HN).

The “signal” reading is plausible but not established#

Two details favor Valsorda. RSA-2048 is treated differently from P-256, and pairings are mentioned for the first time.

Two facts weigh against a size-specific reading. The inventory sentence is explicitly framed as examples of algorithms “not approved in CNSA 2.0 or CNSA 1.0”, and P-256 and Ed25519 were never CNSA-approved. The same rule also flags Ed448 and X448 (about 224-bit security), which shows the list is driven by CNSA membership rather than purely by key size.

In October 2026 the Let’s Encrypt team reported that the lost generation method for the NIST curves had been found, with “seeds… from an ordinary random number generator, seeded with the time” (Let’s Encrypt). That undercuts the old “backdoored P-256” theory, though it says nothing about the new disclosure.

Flagged is not broken: status by algorithm#

“Flagged” below means listed as non-CNSA in the advisory, not declared broken. The pill gives this guide’s summary; the full table keeps both the Claude and AGY reports’ classifications where they differ.

Algorithm Advisory text Status
P-256, X25519, Ed25519 Flagged disputed, unconfirmed
secp256k1, brainpoolP256 Flagged by the same rule unknown, not cleared
BLS12-381, BN254 (pairings) Flagged explicitly flagged, no statement
Ed448, X448 Flagged not a migration target
P-384, P-521 Retained interim only
RSA-3072+ Retained (CNSA 1.0) interim only
RSA-2048 Legacy roots only legacy last resort
Finite-field DH Deprecated groups flagged reports disagree
DSA Flagged flagged, already deprecated
ML-KEM, ML-DSA Endorsed (CNSA 2.0) migration target
AES-256, SHA-384/512 Endorsed (CNSA 2.0) endorsed
Other symmetric, hashes, MACs, password hashes Not listed not on the list

Interpretation. The AGY report puts every 256-bit curve and pairing curve in its top tier, “treat as weakened or potentially broken”, which adopts Valsorda’s reading rather than the advisory text. The Claude report keeps them as flagged and unconfirmed.

Sources disagree. On finite-field Diffie-Hellman, the Claude report says only “deprecated groups” are flagged and DH with a modulus of at least 3072 bits is retained in CNSA 1.0 Claude. The AGY report lists “classical DH / FFDH” as “explicitly flagged” and says to remove it immediately AGY. The advisory PDF’s CNSA 1.0 table does list DH with a minimum 3072-bit modulus.

Tablemerged algorithm status with both reports' classifications
Algorithm Official status in the advisory Claude report AGY report
P-256 (secp256r1), X25519, Ed25519 Flagged (“elliptic curves other than P-384 or P-521”, “EdDSA”) Valsorda: “likely broken or significantly weaker”. Disputed by Kobeissi, Back, Soatok and Smart. Unconfirmed. Top tier: treat as weakened or potentially broken (“likely a resource-intensive classical attack disclosed by frontier AI/SI labs”). Eliminate as soon as possible from key exchange, signatures, certificates, JWTs and roots of trust
secp256k1, brainpoolP256 Flagged by the same rule; no specific statement The CNSA FAQ says cryptocurrencies are “not an NSA responsibility”. Back: “not a new Bitcoin threat” (secondhand). Status “unknown, not cleared”: Valsorda does not mention secp256k1; a generic speed-up for ~256-bit-order groups would plausibly affect it, an attack on structure specific to P-256 or Curve25519 might not secp256k1 in the same top tier as P-256 (brainpool not discussed)
BLS12-381, BN254 (pairings) Flagged explicitly Valsorda: the ~255-bit group order hints at 256-bit ECC Same top tier; “BLS12-381 (255-bit subgroup order)”
Ed448, X448 Flagged (“EdDSA”; “other than P-384/P-521”) Shows the list is CNSA-driven, not size-driven Do not migrate to them: ~224-bit classical security and outside the narrow 256-bit claim, but CNSA 1.0/2.0 excludes all EdDSA, WebPKI verification rejects it and TLS/HSM adoption is negligible. Go straight to ML-DSA/ML-KEM, or P-384/RSA-3072+ as interim
P-384, P-521 Retained (P-384 in the CNSA 1.0 table; P-521 only in the inventory sentence) Valsorda: P-384 “might be fine as an interim solution” Interim only: not flagged by the 256-bit exclusion, but still quantum-vulnerable and subject to improving attacks. Use for PKI roots, TLS leaf certificates, JWTs and SSH keys only where peers cannot yet accept ML-DSA
RSA-3072+ Retained (CNSA 1.0) Interim stopgap Interim only (RSA-3072/RSA-4096), same conditions as P-384
RSA-2048 “2K may be required for legacy support” Valsorda: legacy last resort. Prince: assume RSA is affected Legacy only
Finite-field DH Only “deprecated groups” flagged; ≥3072-bit retained No interpretation beyond the text “Explicitly flagged”; remove immediately (FFDH already deprecated in cryptography 50.0)
DSA Flagged Already deprecated in pyca 51.0.0 and removed from OpenSSH 10.0 and paramiko 4.0 Explicitly flagged; remove immediately
ML-KEM, ML-DSA Endorsed (CNSA 2.0: ML-KEM-1024, ML-DSA-87) The public lattice attack is impractical (below). The CIRG advises choosing “the highest security level each application can support” Safe; the primary migration target. Includes ML-KEM-768/1024 (FIPS 203), ML-DSA-44/65/87 (FIPS 204), SLH-DSA (FIPS 205) and TLS 1.3 X25519MLKEM768 (RFC 10024)
AES-256, SHA-384/512 Endorsed (CNSA 2.0) “AES-256 remains a conservative choice” (Symbolic Software) Unaffected by this elliptic-curve threat
Other symmetric, hashes, MACs, password hashing Not on the list Not implicated by any of the three documents (What you can leave alone) Unaffected: AES-128/256-GCM, ChaCha20-Poly1305, Fernet, Cobblestone, SHA-2/SHA-3/BLAKE2, HMAC, HKDF, Argon2id/bcrypt/scrypt/PBKDF2. CNSA 2.0 prefers 256-bit symmetric keys long-term because of Grover’s algorithm. Do not spend emergency triage on these

Sources: advisory PDF, Valsorda, CNSA 2.0 FAQ, CIRG. Library-specific consequences (secp256k1 wallets, pairing libraries) are on infrastructure and cryptography.

A key-exchange weakness exposes the past; a signature weakness allows impersonation#

A sufficiently weak key exchange could expose recorded traffic later, even when the bulk cipher was AES and ephemeral keys were used. Forward secrecy does not help here: it protects against later theft of a long-term authentication key, not against failure of the key-exchange math itself.

NSA itself flags this harvest-now-decrypt-later risk: “Adversaries are already collecting encrypted information to decrypt once the capabilities become available.” It is also the most fixable risk: move every runtime onto OpenSSL ≥3.5 and check every TLS hop (TLS in Python).

A sufficiently weak signature could instead let someone impersonate an issuer or service: an API might accept a token the real IdP never issued. A signature weakness alone does not reveal past TLS 1.3 session keys. It is an online-forgery risk that only helps an attacker who can break a specific key at the moment they use it. The fix is key rotation, and Python’s library support for it is thin (FastAPI and identity, infrastructure).

Hybrid key exchange can protect recorded traffic under its security assumptions without fixing an actively impersonated endpoint. That is why the TLS and identity workstreams are separate: key exchange is the do-now item, signatures the prepare item (playbook).

Interpretation. The Claude report reads the joint statement’s “not… immediate and widespread” as supporting weeks to months for signature rotation, not hours.

Hybrids survive a classical X25519 break; authentication does not#

RFC 9954, which RFC 10024 builds on, states the design goal: a shared secret “that remains secure as long as one of the component key exchange mechanisms remains unbroken”. If X25519 fell, X25519MLKEM768 would degrade to ML-KEM-768-only confidentiality, still secure as long as ML-KEM holds. What the hybrid loses is its defense in depth against a lattice break. X25519MLKEM768 is not classical X25519.

The hybrid protects only key exchange. A TLS connection using X25519MLKEM768 still authenticates with the certificate’s signature, which is often ECDSA P-256. Symbolic Software notes that hybrid PQ key exchange “does not, by itself, provide post-quantum authentication” (Symbolic Software).

Quotesexperts on hybrids
  • Thomas Ptacek: “Even NSA says use hybrids… This hybrid thing is an entirely fake controversy. All mainstream PQC deployments are already hybrids” (HN).
  • The CIRG encourages “hybrids that combine schemes based on different mathematical foundations” (CIRG), and suggests higher security levels such as ML-KEM-1024.
  • Damien Miller: “if this turns out to be a real thing, then we need to reconsider our hybrid strategy… I never considered the possibility that the classical algorithm would fall to a classical attack ahead of Q-day” (Bluesky).

Wire sizes, codepoints and component order for the three RFC 10024 groups are on Responses.

The AI cryptanalysis that is public is all theoretical#

Four public results are relevant: two from Anthropic, an OpenAI preprint, and a Bochum algorithm that builds on it. None threatens deployed parameters, and whatever NSA was told about remains private.

Date Who Result Why it is not practical
30 Nov 2026 Anthropic Four lattice papers; quantum, quasi-polynomial algorithm for some Module-/Ring-LWE problems Cost grows super-exponentially in module rank; far above 2^1000 quantum operations for ML-KEM-512 and ML-DSA-44
Jul 2026 Anthropic HAWK key recovery; 7-round AES; reduced-round LEA and Serpent No elliptic curves, no full-round AES
Oct 2026 OpenAI Preprint “The Exponential Time Hypothesis Is False” Under independent review as of early Nov
2 Dec 2026 Ruhr University Bochum / MPI-SP Classical subexponential ECDLP algorithm built on the OpenAI preprint “galactic”; no gain over Pollard’s rho for P-256 and Ed25519

Prince reportedly called the briefing and Anthropic’s lattice work “Two completely separate things”; this is secondhand (OfficeChai). No source links the Bochum result to the NSA disclosure.

Evidencethe four results and what reviewers said

Anthropic, 30 Nov 2026: four lattice papers. An “internal research Claude model” produced four lattice papers with a Lean 4 formalization (anthropics/formal-math). The headline paper gives a quantum, quasi-polynomial algorithm for some Module-/Ring-LWE problems. Its cost grows super-exponentially in the module rank, while ML-KEM and ML-DSA fix the ring degree at n=256. Reviewers say it is far from practical:

  • The CIRG said “even (say) 2^1000 quantum operations would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44)”. It still expects that “the attack will be improved in the near future” (CIRG).
  • Cloudflare, on 1 Dec, called it “purely theoretical”, needing “at least billions of logical quantum bits” (Cloudflare).
  • The UK NCSC, on 1 Dec, said it “does not represent a threat to the standardised and deployed… ML-KEM and ML-DSA” (NCSC).

Anthropic, July 2026: earlier results. The post “Discovering cryptographic weaknesses with Claude” covered a HAWK key-recovery improvement, a 200–800× faster attack on 7-round AES, and attacks on reduced-round LEA and Serpent. None of these touches elliptic curves or full-round AES (Anthropic).

OpenAI, October 2026: “The Exponential Time Hypothesis Is False”. This preprint was still under independent review as of early November (OpenAI preprint, arXiv 2611.00517).

Ruhr University Bochum / MPI-SP, 2 Dec 2026: a classical subexponential ECDLP algorithm. The group built on OpenAI’s preprint. In their words: “the algorithm is galactic… For curves such as P-256 and Ed25519, our analysis therefore gives no improvement over Pollard’s rho algorithm, which takes roughly 2^128 group operations”. The crossover point is at log2 b ≈ 10^15 (Bochum repo). The Claude report notes that the result is size-agnostic: it does not single out 256-bit curves.

Sources cited on this page 34
  1. Bluesky bsky.app
  2. What to Make of the NSA Advisory words.filippo.io
  3. Mastodon abyssdomain.expert
  4. Bluesky bsky.app
  5. Bluesky bsky.app
  6. Shtetl-Optimized scottaaronson.blog
  7. X x.com
  8. X x.com
  9. Techmeme techmeme.com
  10. KuCoin/Odaily kucoin.com
  11. TokenPost tokenpost.com
  12. OfficeChai officechai.com
  13. Symbolic Software symbolic.software
  14. Bluesky bsky.app
  15. Rumors will metastasize soatok.blog
  16. Bluesky bsky.app
  17. KuCoin/BeInCrypto kucoin.com
  18. Bluesky bsky.app
  19. HN news.ycombinator.com
  20. HN news.ycombinator.com
  21. Let’s Encrypt letsencrypt.org
  22. advisory PDF web.archive.org
  23. CNSA 2.0 FAQ media.defense.gov
  24. CIRG cirg.org
  25. RFC 9954 rfc-editor.org
  26. HN news.ycombinator.com
  27. Bluesky bsky.app
  28. anthropics/formal-math github.com
  29. Cloudflare blog.cloudflare.com
  30. NCSC ncsc.gov.uk
  31. Anthropic anthropic.com
  32. OpenAI preprint github.com
  33. arXiv 2611.00517 arxiv.org
  34. Bochum repo github.com

All sources across the guide