Dan Boneh and Victor Shoup’s A Graduate Course in Applied Cryptography is free, 1,130 pages long and one of the best guides to how cryptographers decide what to trust. This week’s lattice news shows what it teaches well, and exposes the one chapter it never wrote.
On Monday evening, at 6:01 p.m. New York time (EST), Anthropic announced a set of theoretical papers on lattice cryptography, the mathematics behind the post-quantum standards that governments and tech companies are now deploying. The same day, the newly formed Cryptography Incident Review Group (CIRG), whose 21 members include Stanford’s Dan Boneh, Chris Peikert, Vadim Lyubashevsky and Nadia Heninger, published an initial assessment. Its verdict: Anthropic’s quantum algorithm against module lattices is real mathematics, but at the parameters used in NIST’s ML-KEM and ML-DSA standards it needs “vastly more computation than the best previously known attacks,” at a scale the group calls “galactic.” (Our explainer on what the result means for ML-KEM and PQC migration covers the attack itself.)
For anyone trying to follow that argument rather than the headlines, the obvious free book to reach for is the one Boneh co-wrote with Victor Shoup. A Graduate Course in Applied Cryptography is posted as a free PDF by the authors. The latest version, 0.6, went up on 14 January 2023. This review is based on that version, read directly from the authors’ PDF, with close reading of the preface, the quantum sections of Chapters 4 and 16, the hash-based signatures chapter (14), the chosen-ciphertext and Fujisaki-Okamoto material in Chapter 12, the lattice attack in Chapter 3, and the key-exchange and TLS 1.3 sections of Chapter 21.
The short version: it is an outstanding book for learning how security claims are built and broken. It is a poor book for learning about lattices, because Chapter 17, “Post-quantum cryptography from lattices,” does not exist yet.
What the book argues
The preface states the thesis plainly. “While extremely useful, cryptography is also highly brittle,” the authors write. “No amount of unit testing will uncover a security vulnerability in a cryptosystem” (p. ii). Instead, security is argued through definitions and proofs, and “we often need to introduce certain plausible assumptions to push our security arguments through.”
That sentence is the key to the whole book, and to this week’s news. Almost every scheme in it is secure only relative to a stated assumption: that a block cipher behaves like a pseudorandom permutation, that discrete logarithms are hard in some group, that factoring is hard. Each chapter defines a precise security goal as an attack game, builds a construction, then proves that any attacker who wins the game could be turned into one who breaks the assumption. Readers are not told that a system is “secure.” They are told exactly what would have to fail for it to become insecure.
Read that way, Anthropic’s result is not a broken lock. It is new evidence about how much weight one assumption, the quantum hardness of certain structured lattice problems, can bear as parameters grow. CIRG’s most important point sits in a footnote: the speed-up applies as the degree n of each structured component grows, while ML-KEM and ML-DSA raise security by adding components (the rank k) and keep n fixed at 256. That is precisely the kind of distinction Boneh and Shoup train readers to look for: which assumption, in which form, at which parameters.
How it is built
The book has three parts. Part I covers symmetric cryptography: stream and block ciphers, message authentication, hashing and authenticated encryption. Part II covers public-key encryption and signatures, from RSA and Diffie-Hellman to elliptic curves, pairings and hash-based signatures. Part III covers protocols: login and identification, zero knowledge, authenticated key exchange, threshold cryptography and secure multi-party computation.
Two habits make it unusually useful for practitioners. The first is the case studies, which tie the theory to systems that failed or survived: WEP, RC4, SSH, PKCS #1 and TLS. The second is the authors’ promise to “end every chapter with a fun application that applies the ideas in the chapter in some unexpected way” (p. ii), such as the TESLA broadcast authentication scheme for satellite navigation signals at the end of Chapter 14.
The attack chapters are the ones a sceptical reader will value most this week. Section 16.4.2 explains how cheap devices that generate RSA keys before they have gathered enough randomness end up sharing prime factors, and recounts the 2012 experiments, including Heninger and colleagues’ “Mining your Ps and Qs”, that factored about 0.2% of several million web RSA keys by computing pairwise greatest common divisors. “The lesson is that cryptographic key generation must always be done with proper randomness,” the authors conclude (p. 698). It is a reminder that real systems usually fail in implementation long before the mathematics gives way.
What it says about quantum computers
The book covers the quantum threat in two places, and both are clear. Section 4.3.4 explains Grover’s algorithm, which turns a brute-force key search over |K| keys into roughly √|K| steps. That is why AES-128 would fall to a large enough quantum computer while AES-256 would not, at least to brute force. The authors add an honest caveat: “we have no guarantees that there is not a faster quantum algorithm for breaking the AES-256 block cipher” (p. 131).
Section 16.5 explains Shor’s algorithm as period-finding, and shows how it factors RSA moduli and computes discrete logarithms in any group in polynomial time. The authors judge that building a machine to run it “is mainly an engineering problem, although a very challenging one” (p. 706), and they draw the practical conclusion that still drives today’s migration: “for traffic that is encrypted today and needs to remain secret for more than thirty years, it is important to use a post-quantum cryptosystem” (p. 707). They also flag the cost, noting that post-quantum key exchange produces “considerably more traffic than Diffie-Hellman key exchange.”
There is an irony in how lattices appear in the finished chapters. Readers meet them only as weapons. In Section 3.7, a two-dimensional lattice and a closest-vector search are used to break a linear congruential random-number generator (pp. 70–72). In Section 16.5, Shor’s discrete-log algorithm is explained through a two-dimensional lattice of periods (p. 706). The idea of a lattice as a source of hardness, the basis of ML-KEM and ML-DSA, was meant to arrive in Chapter 17.
The chapter that isn’t there
The table of contents lists nine sections for Chapter 17: integer lattices, the SIS, LWE and ring-LWE problems, trapdoor sampling, lattice signatures, lattice encryption, fully homomorphic encryption and a “fun application” on factoring with lattices. Every one is listed at page 713. In the PDF, the exercises of Chapter 16 end on page 711 and the next page is the title page of Part III, numbered 714. The chapter has no text. Chapter 1, the introduction, is also absent.
The gap shows in the rest of the book. Section 12.6 lists “Regev’s lattice-based encryption scheme discussed in Chapter 17” (p. 494) among the systems that the Fujisaki-Okamoto transform can make secure against chosen-ciphertext attack. An exercise in Chapter 18 begins, “In Chapter 17 we saw an efficient weak PRF” (p. 751). The authors are open about the draft’s state; the preface says it “is mostly complete, although there are a few missing sections here and there” (p. iii). Across the PDF, “To be written” appears 16 times and “Citations to the literature to be added” 20 times. But the missing section is the one most readers now need.
The names that dominate this week’s coverage, ML-KEM, ML-DSA and SLH-DSA, do not appear either, and that is not a fault of the authors. NIST finalised those three standards on 13 August 2024, 19 months after version 0.6 was posted. The book correctly describes NIST as still “standardizing” post-quantum schemes (p. 706). It has simply not been updated since.
What it still gets right for the post-quantum moment
Even without Chapter 17, the book gives readers more of the post-quantum picture than its table of contents suggests.
Hash-based signatures, the conservative fallback
Chapter 14 is in effect the book’s post-quantum signature chapter. The authors build Lamport and Winternitz one-time signatures, HORS and full Merkle-tree signatures from nothing more than hash functions, and state the motivation directly: “The post-quantum security of hash-based signatures drives much of the interest in these schemes” (p. 583). This is the family behind SLH-DSA (FIPS 205), the NIST signature standard that relies on no lattice assumption at all, which makes it more relevant after this week, not less. CIRG’s statement explicitly calls for standardising “additional public-key cryptosystems based on diverse designs, even at some cost in efficiency.”
The chapter is also honest about that cost. The authors work out that a nonce-based Merkle signature supporting 240 signatures comes to “about 9.6 KB per signature,” that stateless versions are about four times longer, and that RSA signatures are 256 bytes “but are under threat from progress in quantum computing” (p. 603). Hash-based signatures, they write, “are not ideal for signing Web certificates where short signatures are needed to reduce network traffic” (p. 583). That is the trade-off migration teams face in choosing between a fast lattice scheme and a slower, bulkier but more conservative hash-based one.
The machinery ML-KEM is built on
Chapter 12’s treatment of the Fujisaki-Okamoto transform, a generic way to turn a weakly secure public-key scheme into one that resists chosen-ciphertext attacks, describes the same family of techniques that FIPS 203 uses to build ML-KEM from an underlying lattice encryption scheme. Chapter 21’s protocol AKE2 combines a fresh, “ephemeral” chosen-ciphertext-secure encryption key pair in every session with long-term signing keys to get forward secrecy (p. 867). In our reading, that is the shape of a KEM-based handshake, so a reader who works through it will understand where ML-KEM slots into TLS, even though the book never names it.
Agility and distrust
The TLS 1.3 case study in Section 21.10 is all Diffie-Hellman, with elliptic curves and finite-field groups. It predates the hybrid elliptic-curve-plus-ML-KEM key exchange that much web traffic now uses. But it explains why TLS negotiates algorithms rather than hard-coding them: “some countries and organizations may prefer to use different algorithms. Some may not trust the algorithms standardized by the US National Institute of Standards (NIST)” (p. 898). That reasoning underlies CIRG’s advice to build “agile systems so that individual schemes can be replaced quickly.” The same section calls TLS 1.3’s 0-RTT mode “a dangerous mechanism” because early data can be replayed (p. 902), a useful reminder that the risks that bite are usually in protocol design, not in exotic algorithms.
What it gets wrong, or leaves out
The main weakness is the one already described: on the subject now driving interest in cryptography, the book refers readers to a chapter that is not there. A reader who finishes it will understand why RSA and elliptic curves fall to Shor’s algorithm, but not what Learning With Errors is, why module lattices were chosen for efficiency, or why CIRG treats unstructured lattices as a safer foundation. Those are the questions behind this week’s debate.
Its advice also stops short of what migration teams now need. Its quantum discussion ends with a plea to use post-quantum schemes for long-lived secrets, but it offers nothing on hybrids, on choosing security levels (CIRG now recommends “the highest security level each application can support”), or on how to plan for a standard losing confidence. Those are engineering and policy questions as much as mathematical ones, and the book was written before they became urgent.
Finally, it is a graduate text. The proofs are rigorous and the notation is dense. The authors help by following every security theorem with a “proof idea” and saying beginners can skip the detailed proofs, but a reader without some comfort with probability and modular arithmetic will find it slow going after the first few chapters.
Who should read it
Security engineers, protocol designers and technical leads who must judge cryptographic claims, whether a vendor’s “quantum-safe” pitch or a lab’s headline result, will get more from Chapters 2, 9, 12, 14, 16 and 21 than from most commercial books. Students will find its exercises, some with hints, among its best features. Readers who want to understand lattices themselves should pair it with Chris Peikert’s free survey A Decade of Lattice Cryptography and the FIPS 203 standard. Peikert is also a CIRG member.
For a general reader who wants to know whether their bank is safe, the book is too much. The short answer, from both Anthropic and CIRG, is that the new attack poses no practical threat to today’s systems, and the CIRG statement is the better use of their time.
Verdict
A Graduate Course in Applied Cryptography remains one of the best free resources for learning how cryptographers reason: define the attack, state the assumption, prove the reduction, then go and look for the implementation that ignores all three. That way of thinking is the right one for reading this week’s news, which is about confidence in an assumption, not about a broken lock. But a book whose own preface calls cryptography “highly brittle” has left its lattice chapter blank for almost four years, while lattices moved from research topic into everyday web traffic and, this week, to the centre of a debate over AI-driven cryptanalysis. The most useful update its authors could make is a written Chapter 17.
Sources
- Dan Boneh and Victor Shoup, A Graduate Course in Applied Cryptography, version 0.6 (January 2023), PDF
- Cryptography Incident Review Group, Initial Assessment of Anthropic’s Findings on Lattice Cryptography (30 November 2026); member list
- Anthropic, announcement on X (30 November 2026) and lattice papers repository
- NIST, NIST Releases First 3 Finalized Post-Quantum Encryption Standards (13 August 2024); FIPS 203 (ML-KEM)
- Chris Peikert, A Decade of Lattice Cryptography (IACR ePrint 2015/939)
