← Back to section · Education & Knowledge Base
Coding Theory Textbooks: Which Course to Take Before Code-Based Cryptography Makes Sense
Behind McEliece and HQC stand seventy years of error-correcting code theory. This article arranges the readings into a classic monograph, modern textbooks, and a fast lane, explaining what each covers, where each gets hard, and how far a cryptography reader needs to go.
Why the code-based route starts with somebody else’s course
Of the five post-quantum families, code-based cryptography is the one where beginners stall most easily. Lattice cryptography stalls people on mathematical language; the code-based route stalls them on prerequisites: syndrome decoding, information-set decoding, Goppa codes, the minimum distance of a binary linear code — all basic vocabulary of error-correcting code theory that cryptography textbooks usually assume the reader already has. McEliece’s security, moreover, rests on the hardness of decoding a general linear code, and without the decoding problem its security argument cannot be followed. So before reading code-based cryptography, patching a stretch of coding theory by the map is an order of business that cannot be routed around.
The classic layer: MacWilliams and Sloane’s monograph
The Theory of Error-Correcting Codes by Florence MacWilliams and Neil Sloane is the field’s foundational monograph and, decades on, still the standard reference on researchers’ desks. It systematically covers linear codes, cyclic codes, bounds on codes, dual codes and weight distributions, and the classical treatment of Goppa codes is here too. Its correct use is the same as Micciancio–Goldreich on the lattice side: consult it as a dictionary, do not read it as a textbook. The volume is huge and its style leans algebraic; reading it end to end is a serious over-investment for a cryptography reader. But nearly any classical result cited in a code-based paper can be found here with its source and precise statement. Keeping a copy at hand (or a searchable electronic one) beats wandering through web fragments by a wide margin.
The main line: modern coding theory textbooks
The layer actually suited to systematic study is the modern textbooks. Fundamentals of Error-Correcting Codes by Huffman and Pless is a common undergraduate-to-graduate bridge text, covering linear codes, Hamming codes, cyclic codes, BCH codes, and Reed–Solomon codes, with a complete exercise apparatus and a gentle difficulty curve. Roth’s Introduction to Coding Theory leans more algebraic and algorithmic, treating decoding algorithms in finer detail, which suits readers who want to understand exactly where the decoding problem’s hardness sits. The shared reading rule for both is to read only the first half: the structure of linear codes, parity-check matrices and syndromes, minimum distance and error-correction capability, and the classical code families, stopping once you can carry out syndrome decoding on a small code by hand. The second half — modern iterative decoding, LDPC and polar codes — belongs to channel-coding engineering and has little to do with code-based cryptography; skip it boldly.
The fast lane: cryptography-oriented notes and paper sections
Readers short on time have a third road: go straight to coding material written for cryptography readers. The submission documents and algorithm papers of McEliece and HQC usually contain a self-contained section of coding background that compresses exactly the coding knowledge the constructions use; several university post-quantum courses also devote a lecture to code-based cryptography, teaching syndrome decoding and information-set decoding before the construction itself. The fast lane’s strength is its targeting; its weakness is that it gives conclusions without the thread — you will know information-set decoding is the main attack but be unable to say where its complexity estimate comes from. The sensible use is to take the fast lane first to build a sense of the problems, then return to the main-line textbooks to firm up syndromes, bounds, and decoding algorithms, and finally bookmark the classic monograph as a long-term dictionary.
The mathematics prerequisite: which algebra coding theory actually eats
Before patching coding theory, be clear about its mathematical appetite, so the prerequisite course does not balloon. The subject’s trunk stands on finite fields and linear algebra: codewords are vectors in a vector space over a finite field, generator and parity-check matrices are linear maps, and a syndrome is the value of a linear functional. So the real prerequisites are only two: the construction and arithmetic of finite fields (especially the binary field and its extensions), and the linear algebra fundamentals of vector spaces, linear maps, rank, and null spaces. Both appear in undergraduate abstract algebra and linear algebra, and together take two to three weeks to patch. Combinatorics is needed only at a basic level — binomial coefficients and probability lower bounds appear in complexity estimates for information-set decoding, and following the order-of-magnitude derivation suffices. Conversely, channel models, proofs of Shannon’s theorem, and density-evolution analysis of modern graph-based codes — core communication theory — are essentially unused by code-based cryptography and may be skimmed in the main-line textbooks without worry. Drawing the prerequisite boundary clearly keeps this patch-up course from swelling into a second degree.
A special reading note on Goppa codes: the key to classic McEliece
One chapter in the main-line textbooks deserves singling out for cryptography readers: Goppa codes. Classic McEliece’s private key is, in essence, a binary Goppa code plus a scrambling; its decoding ability comes from the Goppa code’s efficient decoding algorithm, and its concealment from hiding that structure inside a seemingly random parity-check matrix. Most modern textbooks give Goppa codes a section or even just a few pages — do not skip it for being short; slow down instead: digest the Goppa polynomial, the code’s definition, and the lower bound on its minimum distance, then return to McEliece’s original construction and the whole chain connects at once. If your textbook’s section is too brief, look the topic up in the classic monograph of MacWilliams and Sloane and read the corresponding chapter there — one of that dictionary’s most valuable uses. After finishing, hold on to one distinction: HQC does not use Goppa codes but quasi-cyclic codes with Reed–Muller and Reed–Solomon-type constructions; the Goppa stop serves the classic McEliece branch, and the two branches’ coding foundations should not be conflated.
How far is far enough
Here is an explicit stopping standard for self-learners. Conceptually: explain the relationship between a linear code, its generator matrix, and its parity-check matrix; explain why a syndrome can locate an error pattern; and state the respective standing of the general decoding problem and information-set decoding. Construction-wise: restate McEliece’s key generation, encryption, and decryption in full, and point out why its public keys are large and what HQC’s quasi-cyclic codes bought in exchange. Meet those two bars and the textbook stage of coding theory is over — the remaining details of security estimation belong to what you patch on demand while reading specific papers, not to stockpiling during the textbook stage.
Tags: coding theoryerror-correcting codesMcEliecetextbooks