Quantum Computers Are Not a Threat to 128-bit Symmetric Keys

2026年4月20日

AI 摘要 AI 生成,可能有误

文章驳斥了量子计算机将使对称密钥安全性“减半”这一常见误解,认为AES-128及其他128位对称加密原语在量子攻击下仍然安全。由于Grover算法无法被有效并行化(正如Zalka在1997年所证明的那样),破解AES-128将需要大约140万亿个各自拥有724个逻辑量子比特的量子电路并行运行十年——这使得其成本远高于Shor算法对256位椭圆曲线的攻击,堪称天文数字。这一近乎达成共识的立场得到了NIST、德国联邦信息安全局(BSI)以及Samuel Jaques等专家的支持,这意味着在后量子密码学迁移过程中,对称密钥的长度无需改变。

The advancing threat of cryptographically-relevant quantum computers has made it urgent to replace currently-deployed asymmetric cryptography primitives—key exchange (ECDH) and digital signatures (RSA, ECDSA, EdDSA)—which are vulnerable to Shor’s quantum algorithm. It does not, however, impact existing symmetric cryptography algorithms (AES, SHA-2, SHA-3) or their key sizes.

There’s a common misconception that quantum computers will “halve” the security of symmetric keys, requiring 256-bit keys for 128 bits of security. That is not an accurate interpretation of the speedup offered by quantum algorithms, it’s not reflected in any compliance mandate, and risks diverting energy and attention from actually necessary post-quantum transition work. The misconception is usually based on a misunderstanding of the applicability of a different quantum algorithm, Grover’s.

AES-128 is safe against quantum computers. SHA-256 is safe against quantum computers. No symmetric key sizes have to change as part of the post-quantum transition. This is a near-consensus opinion amongst experts and standardization bodies and it needs to propagate to the rest of the IT community. The rest of this article backs up this claim both technically and with references to relevant authorities.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Filippo Valsorda

The NIST Elliptic Curves Seeds Bounty Has Been Claimed

AI 摘要A team from Anthropic claimed the author's three-year-old bounty by discovering that the NIST elliptic curve seeds were generated in 1997-98 using the drand48 random number generator seeded with UNIX timestamps, disproving the lore that they came from hashed English sentences. The findings rule out the NSA-backdoor conspiracy theories, since the seeds offered too little freedom to intentionally target weak curves, restoring confidence in NIST elliptic curve cryptography. The prize was donated to ISRG, the non-profit behind Let's Encrypt, tripling its value to $36,864.

(Post-Quantum) Cryptographic Right Answers

AI 摘要This article presents an updated edition of the 'Cryptographic Right Answers' guidance for developers, driven by the accelerated post-quantum transition timeline that now targets completion by 2029. It explains that while symmetric cryptography remains largely unchanged, nearly all asymmetric recommendations have shifted, offering concrete picks such as XAES-256-GCM or XChaCha20Poly1305 for encryption, Argon2id or scrypt for passwords, X25519+ML-KEM-768 for key exchange, HPKE with X-Wing for asymmetric encryption, and ML-DSA-44 for signatures. It also highlights that LLM-based code review is now a standard recommendation alongside using memory-safe languages.

Production ML-DSA Verification in 350 Lines of Python

AI 摘要The author presents a production-ready ML-DSA (post-quantum signature) verifier written in 350 lines of pure, dependency-free Python, available on PyPI with an API modeled after pyca/cryptography and support for all parameter sets. Performance is described as decent—around 230 ML-DSA-44 verifications per second, roughly 60x slower than Go—and the implementation is thoroughly tested with Wycheproof vectors, CCTV vectors, and mutation testing. The project originated as a way to validate the author's Go implementation by writing an independent one, and since verification involves no secrets, Python's lack of constant-time guarantees is not a concern.

Opaque, Interoperable Passkey Records (and a Go API)

AI 摘要The article argues that passkeys are the key solution to phishing but that server-side adoption suffers from non-interoperable database schemas, so the author proposes a c2sp.org/passkey-record format—borrowing PHC string syntax and WebAuthn's authenticator data encoding—that lets applications store passkeys as opaque strings, much like password hashes. Building on this, the author drafts a stateless Go crypto/passkey API covering registration and login flows, where the application only stores per-user passkey records and caches login challenges while the library handles verification. The author notes the format naturally avoids credential-ID collision attacks, invites feedback on the format and API (possibly a proposal for Go 1.28), and closes with personal and sponsor notes.

Vulnerability Reports Are Not Special Anymore

AI 摘要The author, a former lead of the Go Security team, explains that vulnerability reports have traditionally been treated as special—deserving responsiveness and attribution—because researchers provided scarce insight and the confidentiality needed to fix flaws before attackers could exploit them. Now that LLMs can find vulnerabilities as well as most researchers, and attackers can do the same, that insight is no longer precious and confidentiality matters little, making triage of noisy reports the real bottleneck. The era of vulnerability reports being special may therefore be over, shifting the job's focus to triage, rapid remediation, and prevention, though the author and commenters note some highly severe or trusted reports may still warrant special treatment.