Chapter 3: Hard problems at a glance
The four post-quantum families this book studies are organized around four kinds of hardness assumption. Lattice schemes rest on finding short vectors in a high-dimensional integer grid. Hash-based schemes rest on inverting or colliding a one-way function. Code-based schemes rest on decoding a random linear code. Isogeny schemes rest on finding walks between supersingular elliptic curves, and on the endomorphism-ring structure that those walks reveal.
Other post-quantum constructions exist: multivariate signatures, MPC-in-the-head signatures, rank-metric and other code-based variants, and additional lattice designs not treated in depth here. All four have a current FIPS standard, a selected future standard, or an active NIST candidate process, and they are the families the rest of the book treats in depth. They are not the only ones in an active process: NIST’s round-3 additional-signatures list also carries multivariate, MPC-in-the-head, and symmetric-primitive candidates. Chapter 3 states each of the four problems in the form the later chapters use as a security assumption.
A lattice you can draw
Section titled “A lattice you can draw”Consider the integer lattice with basis vectors and . The lattice is the set of all integer combinations with . Because and are linearly independent, every point of comes from exactly one pair , so two vectors generate and no single vector does. Chapter 7 develops what a basis means over , which Chapter 2 deliberately set aside in favour of bases over .
The two basis vectors and have Euclidean norms and , respectively. Neither is the shortest nonzero vector in . The combination lies in and has norm .
To prove that 5 is globally shortest, it is enough to rule out any lattice point with norm strictly less than 5. Such a point would lie among the finitely many integer points with . A point belongs to iff there exist integers with and , which forces the congruence . Checking each integer point with against that congruence (Exercise 1, and the appendix walks the residue check) returns the empty set, so , attained on the boundary by .
Finding the shortest vector of this two-dimensional lattice by hand is annoying but possible. ML-KEM-512 (National Institute of Standards and Technology, 2024) uses Module-LWE with module rank 2 over a degree-256 polynomial ring, giving a natural module dimension of . Concrete attacks on Module-LWE translate that structured noisy-linear-algebra problem into lattice-reduction instances, whose dimension depends on the chosen primal or dual attack model (Chapter 13 walks both). They do not translate it into the exact toy shortest vector problem (SVP) solved by hand above. The jump from dimension 2 to module-rank-2 over a 256-coefficient ring is the jump from “undergraduate exercise” to “security assumption”. The rest of Chapter 3 names the three other places where a similar jump happens.
What a hard problem is
Section titled “What a hard problem is”A computational or search problem asks the solver to produce an object: the shortest vector, a colliding pair, an error pattern, an isogeny. A decision problem asks for a yes-or-no answer. Both flavours appear among the four problems below, and the decision problems are not all of one kind: and decide between two promised numerical cases, while decisional LWE decides which of two distributions its samples came from. Many lattice KEMs (including ML-KEM) use a decisional Module-LWE assumption as their security assumption, while lattice signatures (including ML-DSA) involve SIS-style assumptions as well. In both cases the hardness reductions are routed through search variants of the same problems.
Cryptography cares about average-case hardness, not worst-case hardness. A randomly chosen key must be hard to break, not merely some specific adversarial key. Lattice cryptography is unusual because it has a worst-case to average-case reduction. Ajtai proved in 1996 that approximating the shortest vector problem within polynomial factors in the worst case reduces to solving the short integer solution (SIS) problem on average (Ajtai, 1996). This was the first worst-case to average-case reduction in cryptography. Regev introduced learning with errors in 2005 and extended the approach to it. The expanded journal version appeared in 2009 (Regev, 2009).
The other three families stand differently. Code-based cryptography has a worst-case hardness result for syndrome decoding: Berlekamp, McEliece, and van Tilborg proved in 1978 that the decision problem is NP-complete, which makes the corresponding search problem NP-hard (Berlekamp et al., 1978). But the connection to the average case is a working conjecture, not a theorem. Hash-based cryptography rests on properties of concrete hash-function-derived primitives, with no Ajtai/Regev-style worst-case lattice reduction underneath. Isogeny cryptography sits closer to the lattice picture than to the hash picture: the supersingular endomorphism-ring problem comes with a random self-reduction that turns its worst-case difficulty into average-case difficulty over the natural distribution of supersingular curves. What it does not do is reduce to a worst-case problem outside the isogeny world. The comparison at the end of the chapter sets the four positions side by side.
Shor’s algorithm breaks RSA and elliptic-curve discrete log because those problems reduce to quantum period-finding, which is in BQP (Chapter 1). None of the four problems below has a known quantum polynomial-time algorithm. The best quantum speedups known are Grover-style square-root speedups and their generalizations. They force parameters up but do not collapse security classes.
The four problems
Section titled “The four problems”Lattice problems: SVP, CVP, and LWE
Section titled “Lattice problems: SVP, CVP, and LWE”A lattice of dimension is the set of all integer combinations of linearly independent vectors in . Those vectors form a basis. Different bases can span the same lattice. Chapter 7 develops the full algebra; this chapter needs only the definition and three problems stated on top of it.
The shortest vector problem (SVP) takes as input a basis of a lattice . It asks for a nonzero vector minimizing the Euclidean norm . The closest vector problem (CVP) takes as input a basis and a target point . It asks for a vector minimizing .
Two relaxations of these exact problems matter for cryptography. The approximate search versions and ask for an output vector within a factor of optimal. The gap decision versions and take an additional threshold . Under the promise that one of the two cases holds, they ask the solver to decide whether the optimum is at most or strictly greater than . At suitable approximation factors these relaxations remain hard enough for cryptography. On the shortest-vector side that is Ajtai’s result (Ajtai, 1996). Chapter 7 spells out the gap parameters that matter. The worst-case-to-average-case reductions cited later in this chapter target approximation problems including and . Because is a search problem, not a decision problem, “the gap-decision form” would not describe them.
The learning with errors (LWE) problem has two standard forms, search and decisional. They are equivalent only under additional parameter conditions, which the next paragraph states. Search LWE takes as input a uniform matrix and the vector . Here is a uniformly random secret and has entries drawn from a narrow error distribution. The solver must recover (Regev, 2009). Decisional LWE gives the solver either the pair or the pair for a uniform , and the solver must decide which.
Regev’s paper proved two reductions, and their hypotheses differ. The worst-case-to-average-case reduction constrains both the modulus and the Gaussian noise rate. Under those conditions, solving search LWE on average is at least as hard as approximating and the shortest independent vectors problem in the worst case, under a quantum reduction. Separately, for prime polynomial in , a decisional-LWE oracle recovers the search secret, and that lemma holds for any fixed error distribution on rather than needing a noise-rate condition of its own (Regev, 2009). Chapter 8 develops both reductions and states the exact hypotheses each one needs.
The error distribution matters: too narrow and LWE is easy, too wide and the honest decrypter also fails. LWE over the ring (introduced in Chapter 2) gives a structured variant called Ring-LWE. ML-KEM uses a module generalization of Ring-LWE called Module-LWE, with module rank 2, 3, or 4 over the ring for the three security levels (National Institute of Standards and Technology, 2024). Chapter 9 develops Ring-LWE and Module-LWE. The worst-case-to-average-case lineage from and down to LWE/SIS is one reason lattice cryptography inspires unusual confidence. For standardized structured schemes such as ML-KEM and ML-DSA, that lineage is combined with module-lattice assumptions, concrete cryptanalysis based on the Block Korkine-Zolotarev (BKZ) lattice-reduction algorithm, scheme-construction reductions, and implementation-level requirements. The worst-case backing is one ingredient in the security story rather than its entirety.
Hash problems: preimage, second preimage, collision, multi-target
Section titled “Hash problems: preimage, second preimage, collision, multi-target”A cryptographic hash function maps arbitrary-length messages to -bit digests. A cryptographic hash is expected to satisfy three security properties (Boneh & Shoup, 2023).
For a well-designed -bit hash, treated to first approximation as a random oracle on its domain, the standard bounds read as follows. Preimage resistance says that for a target digest with unknown, finding any with takes roughly hash evaluations. Second-preimage resistance says that given a specific input and its digest , finding a different input with also takes roughly evaluations (long-message variants and structured-domain attacks can shave this). Collision resistance says that finding any pair with and takes roughly evaluations, by the birthday bound (Boneh & Shoup, 2023).
The multi-target setting changes these numbers. If the adversary is given target digests and only needs to invert any one of them, the expected cost drops from roughly to roughly for modest . Hash-based signature schemes are designed so that multi-target attacks do not become the dominant threat.
SLH-DSA, which is the FIPS 205 hash-based signature standard (National Institute of Standards and Technology, 2024b), is stateless: it does not maintain a counter that guarantees a one-time key is reached at most once. Instead, it derives the WOTS+ and FORS secret values from SK.seed through PRF, and passes a distinct 32-byte ADRS address into each address-dependent call: PRF, , H, and F. The two message-keyed functions, PRF_msg and H_msg, take no address. It then sizes the underlying hypertree and FORS construction so that the probability of harmful key reuse or collision over the approved signing limit of up to messages stays inside the security target. Chapter 17 walks that construction.
Code problems: syndrome decoding of a random linear code
Section titled “Code problems: syndrome decoding of a random linear code”A linear code of dimension is the kernel of a full-rank parity-check matrix (the full-rank assumption is what forces ). In symbols, . Chapter 2 developed the algebra of matrices over and ; this chapter needs only the parity-check viewpoint.
The syndrome decoding problem (SDP) takes three inputs: a parity-check matrix , a syndrome , and a target weight . The solver must find with Hamming weight and . The associated decision problem asks only whether such an exists. Berlekamp, McEliece, and van Tilborg proved in 1978 that this decision problem is NP-complete for arbitrary binary linear codes (Berlekamp et al., 1978). The search problem stated above, which must produce , is NP-hard.
NP-completeness is a worst-case statement: it says that some instances of syndrome decoding are hard, not that random instances are hard on average. Code-based cryptography rests on the stronger working assumption that random linear codes are hard to decode on average. Chapter 19 walks where that assumption enters the security argument.
Real code-based cryptosystems pin their proofs to specific variants of this decoding problem rather than to bare SDP. HQC uses quasi-cyclic structure and proves IND-CCA2 security (indistinguishability under adaptive chosen-ciphertext attack) against a decisional Quasi-Cyclic Syndrome Decoding (QCSD) assumption (Gaborit et al., 2025). Classic McEliece uses binary Goppa codes and states its assumption as one-wayness of decoding directly over the Goppa-derived public key. The literature also names an extra indistinguishability assumption, that a random binary Goppa code is hard to tell from a random linear code. That assumption motivates studying distinguishers as a minimum bar for structural attacks, but the submission declines to rely on it (Albrecht et al., 2022, sec. 3.1 of the guide for security reviewers).
The bounded-distance-decoding (BDD) problem takes a code of minimum distance and a received word , under the promise that , and asks for the unique closest codeword, or equivalently its error vector. The bound is what makes the answer unique; a promise that some low-weight error exists does not on its own. BDD is a related search problem that surfaces in the analysis, but it is not the primitive HQC’s proof targets. Chapter 19 develops these variants and Chapter 21 walks how HQC uses the QCSD form.
Isogeny problems: finding walks between supersingular curves
Section titled “Isogeny problems: finding walks between supersingular curves”An isogeny between two elliptic curves and over a field is a nonconstant rational map that sends the identity of to the identity of and respects the group law. An elliptic curve over is called supersingular when its -torsion subgroup is trivial over the algebraic closure. To state the isogeny problems, the reader needs only that supersingular curves form a finite set that is connected under isogenies.
The general supersingular isogeny path problem takes as input two supersingular elliptic curves and over that are known to lie in the same isogeny graph. It asks for an efficiently representable isogeny , or for a path between them in the graph. Some protocol-specific variants further prescribe the degree of or restrict it to be smooth (a product of small-prime isogenies). That sharpens the search space at the cost of introducing extra structure that the cryptanalyst can exploit. Couveignes gave the first cryptographic formulation of an isogeny problem in 1997 (Couveignes, 1997).
SIDH, the first efficient isogeny-based key exchange, was instantiated against a smooth-degree variant of this problem. To make the protocol non-interactive, SIDH published auxiliary torsion-point images that encoded the secret isogeny redundantly. Castryck and Decru used that redundancy together with Kani’s lemma on isogenies between products of elliptic curves to recover the secret in 2022, in heuristic polynomial classical time when the endomorphism ring of the starting curve is known, apart from the factorization of a few integers fixed by the system parameters (Castryck & Decru, 2023). The attack uniquely depends on the published torsion data.
SQIsign, the isogeny signature scheme currently in NIST’s additional-signatures standardization track, does not expose the artifact Castryck-Decru consumes: images of publicly fixed torsion bases under the secret isogeny. It is not true that SQIsign publishes no point images at all. Its signatures represent the response isogeny by interpolation data, the images of a few points under it, and also include compact hints used to regenerate torsion bases (The SQIsign Team, 2025). Those basis-generation hints are distinct from the simulator-side hint distributions the security proof reasons about. The specification says the two kinds are unrelated.
Its central hardness assumption is the supersingular endomorphism-ring problem: given a supersingular curve over , recover the maximal order . General arbitrary-isogeny finding, the OneEnd problem of recovering any single non-scalar endomorphism, and the endomorphism-ring problem are polynomial-time equivalent (Page & Wesolowski, 2024). SQIsign’s soundness rests on OneEnd rather than on the ring directly. Wesolowski’s earlier fixed- path equivalence is weaker in its hypotheses: expected polynomial-time reductions, under the generalized Riemann hypothesis (Wesolowski, 2022). The current analysis states those relations with hints, and assumes that two hint distributions are computationally indistinguishable rather than proving it (The SQIsign Team, 2025). Because the SQIsign transcript is not the SIDH transcript, the Castryck-Decru attack does not apply. Chapter 22 builds SIDH, and Chapter 23 builds SQIsign and walks the reduction.
How each problem falls
Section titled “How each problem falls”Lattice attacks. The dominant attack on LWE and on lattice problems generally is the BKZ family of lattice basis reduction algorithms. BKZ’s cost grows with the block size chosen by the attacker, which trades runtime against approximation quality. Quantum lattice sieves recover Grover-style speedups but stay in the same asymptotic class. Chapter 13 walks BKZ, its quantum variants, and the concrete security margin that the three ML-KEM parameter sets of FIPS 203 §8 (National Institute of Standards and Technology, 2024a) target.
Hash attacks. Preimage resistance of an -bit hash is attacked in evaluations classically and roughly queries under Grover search (Boneh & Shoup, 2023). Collision resistance is attacked in evaluations classically under the birthday bound. Quantum collision-finding algorithms (the Brassard-Hoyer-Tapp line) can push the query count to roughly (Brassard et al., 1998). Chapter 14 walks the hash-based signatures and Chapter 18 walks the cryptanalysis.
Code attacks. The dominant attack on random-code syndrome decoding is information-set decoding (ISD). All known classical and quantum variants are exponential in the code length, and the line of algorithmic improvements has sharpened the exponent constant without changing that bound. Chapter 20 walks ISD and its effect on Classic McEliece parameter choices. Chapter 21 covers HQC.
Isogeny attacks. A meet-in-the-middle walk on the isogeny graph solves the supersingular isogeny problem in time classically, and in space, which is the cost that makes it awkward rather than the time (Delfs & Galbraith, 2016). For the endomorphism-ring problem SQIsign rests on, the round-3 specification of September 2026 bases its estimates on a July 2026 classical algorithm that, under a heuristic assumption on the smoothness of certain random integers, runs in time and memory, priced through the time-memory tradeoff its memory forces, and keeps the quantum bound at under Grover search at low memory (The SQIsign Team, 2026; Wesolowski, 2026). The quantum gain is a square root, not a Shor-style collapse. Chapter 22 walks the precise exponents. The Castryck-Decru attack, heuristic polynomial time for SIDH with a known starting endomorphism ring, is specific to SIDH’s torsion-point leakage and does not generalize to SQIsign (Castryck & Decru, 2023).
Comparing the four families
Section titled “Comparing the four families”The four families differ along four deployment-relevant axes.
Assumption maturity. Hash and code are the oldest assumption families. Lattice has the strongest worst-case-to-average-case lineage in its unstructured form and now backs NIST’s main KEM and signature standards. Isogeny is the youngest and most specialized family in current standardization discussions. The supersingular endomorphism-ring problem has older mathematical roots. The relevant arithmetic geometry goes back to the 1990s (De Feo et al., 2020). But SQIsign’s specific construction dates from 2020, and the family has accumulated substantially less cryptanalytic history than hash, code, or lattice assumptions.
Artifact size. The artifact a deployment has to carry runs from 200 bytes to over a megabyte.
| Scheme and artifact | Family | Size |
|---|---|---|
| SQIsign NIST-I / III / V signature | Isogeny | 200 / 306 / 406 B (The SQIsign Team, 2026) |
| ML-DSA-44 / 65 / 87 signature | Lattice | 2,420 / 3,309 / 4,627 B (National Institute of Standards and Technology, 2024b) |
| SLH-DSA signature | Hash | 7,856 B to 49,856 B (National Institute of Standards and Technology, 2024c) |
| ML-KEM-512 / 768 / 1024 ciphertext | Lattice | 768 / 1,088 / 1,568 B (National Institute of Standards and Technology, 2024a) |
| HQC public key and ciphertext | Code | A few kB to low tens of kB (Gaborit et al., 2025) |
| Classic McEliece public key | Code | Hundreds of kB to over 1 MB (Albrecht et al., 2022) |
SQIsign has the smallest signatures among the schemes discussed here; those figures are the round-3 specification’s of September 2026, which raised the round-2 sizes after a new endomorphism-ring algorithm, and a later revision could move them again. The SLH-DSA range spans its parameter sets, and the Classic McEliece figure is reached at its highest parameter sets.
Kind of security evidence. The four families do not offer the same kind of guarantee, and the difference is in what connects a worst-case result to the average case a real key lives in.
| Family | Worst-case hardness result | Route to the average case |
|---|---|---|
| Lattice | Approximate worst-case lattice problems: SVP-type, , , depending on the reduction (Ajtai, 1996; Micciancio & Regev, 2007; Regev, 2009) | A reduction, to SIS (Ajtai, 1996; Micciancio & Regev, 2007) and to LWE (Regev, 2009) |
| Code | Syndrome decoding: the decision problem is NP-complete, the search problem NP-hard (Berlekamp et al., 1978) | A working conjecture, not a reduction |
| Hash | None | Studied properties of concrete primitives |
| Isogeny | None | A random self-reduction over supersingular curves |
Three qualifications the table cannot carry. The lattice reductions are statements about the unstructured forms. The module variants the standards actually use have structured-lattice analogues rather than the original results. The isogeny self-reduction stays inside the isogeny world: it turns worst-case difficulty into average-case difficulty over the natural distribution of supersingular curves, and does not reach a worst-case problem outside that setting. And the isogeny row is about SQIsign’s assumptions, which are the supersingular endomorphism-ring and isogeny problems, distinct from the SIDH/SIKE setting that Castryck-Decru broke.
Standardization status. Three of these schemes are finalized standards and three are not.
| Scheme | Family | Status |
|---|---|---|
| ML-KEM | Lattice | FIPS 203, August 2024 (National Institute of Standards and Technology, 2024a) |
| ML-DSA | Lattice | FIPS 204, August 2024 (National Institute of Standards and Technology, 2024b) |
| SLH-DSA | Hash | FIPS 205, August 2024 (National Institute of Standards and Technology, 2024c) |
| FN-DSA (Falcon) | Lattice | Selected, expected as FIPS 206 (Perlner, 2025) |
| HQC | Code | Selected March 2025 (National Institute of Standards and Technology, 2025); final standard expected in 2027, per NIST’s March 2025 announcement (National Institute of Standards and Technology, 2025b) |
| SQIsign | Isogeny | Additional Digital Signatures on-ramp, Round 3, May 2026 (National Institute of Standards and Technology, 2026) |
FN-DSA is another lattice-based signature, and this chapter treats it under the same lattice-assumption umbrella as ML-DSA rather than as a fifth family. HQC was selected as a second KEM, intended as a non-lattice backup to ML-KEM. NIST has communicated a draft standard roughly one year after selection. Neither HQC nor SQIsign is a finalized FIPS standard yet.
Where Chapter 3 ends and Chapter 4 picks up
Section titled “Where Chapter 3 ends and Chapter 4 picks up”This chapter named four hardness assumptions and stated each one precisely enough to be used as one. It built nothing on any of them. No key was generated, no ciphertext was formed, and every size in the tables above was quoted from a specification rather than derived.
Chapter 4 starts from the other end, and from the schemes that are already deployed. It codes RSA and ECDSA from scratch, two schemes whose hardness assumptions Shor’s algorithm does break, as the foil the post-quantum families are measured against. Parts II through IV then build those families in the order this chapter introduced them, and produce the real numbers.
Exercises
Section titled “Exercises”-
Find the shortest vector of the chapter’s 2D lattice. Take the basis matrix , whose columns are and , and work in three stages. A brute search over a coefficient box proves a minimum only over that box, so stages (b) and (c) are what close the argument.
(a) Brute search. For every pair with , compute the vector and its squared Euclidean norm. Verify that the minimum squared norm over the checked coefficient box is 25, achieved by and . Count how many pairs you had to check.
(b) Close the global-minimum gap. List every integer point with , and explain why none of them lies in . Hint: is in iff there exist integers with and . Eliminating from those two equations forces the congruence , and a single residue check rules out every short candidate.
(c) Check the boundary. The set contains twelve integer points. Confirm that the only two in are and , which gives .
-
Decode a toy Hamming syndrome. Take the standard parity-check matrix of the Hamming code, whose -th column is the 3-bit binary representation of the integer for . Given the syndrome , find the weight-1 error vector with . The hint is that the columns of are the binary representations of 1 through 7, so the syndrome directly names the error position. Then explain in one or two sentences why the same strategy does not work for a random linear code.
-
State the three lattice problems from memory. Without looking back at the chapter’s lattice-problem definitions, write the exact shortest vector problem, the exact closest vector problem, and the exact (not gap, not approximate) learning with errors problem in one sentence each. Include the inputs and the required output for every problem. Then, in one extra sentence per problem, write down the corresponding decision variant, , , and decisional LWE, naming what the solver decides between. Only the first two are gap problems; decisional LWE distinguishes distributions. Cross-check your LWE statement against Regev’s original paper (Regev, 2009).
-
Explain the post-SIDH lesson in two sentences. Using only the chapter’s isogeny-problem and cryptanalysis sections, explain (a) what the Castryck-Decru attack (Castryck & Decru, 2023) exploits in the SIDH key exchange, and (b) why the same attack does not apply to SQIsign. Be specific about which protocol artifact (auxiliary torsion-point images) Castryck-Decru consumes, and which assumption (the supersingular endomorphism-ring problem) SQIsign substitutes for the SIDH-style smooth-degree path-finding problem.
Worked solutions and editorial notes for these exercises are in Appendix D, Chapter 3. A separate track, for rebuilding rather than reading: the package exercises/ch03-hard-problems has every function the chapter teaches replaced by a stub. Run PQC_IMPL=exercises pytest tests/ch03 to grade your version against the suite that proves the reference one.
References
Section titled “References”Last updated: