← Back to section · Post-Quantum Cryptography
Code-Based Cryptography and Classic McEliece: The 1978 Scheme That Never Fell
The McEliece system dates to 1978: binary Goppa codes, the general decoding problem, a security record spanning more than four decades, an enormous public key as the price — and two divergent standardization routes at NIST and ISO.
The oldest post-quantum candidate
The most senior scheme in post-quantum cryptography predates the term “post-quantum” itself. In 1978, working in the error-correcting-codes tradition of NASA deep-space communication, Robert J. McEliece proposed a public-key system built on a simple disguise: take a linear code with an efficient decoding algorithm, scramble it until it looks like a random general linear code, and let decryption be error correction while any attack must solve general decoding. RSA had appeared at almost the same moment — the two systems are near-contemporaries that chose opposite mathematical foundations.
Their fortunes diverged accordingly. Factoring, the root of RSA, falls to Shor’s algorithm on a large quantum computer. The general decoding problem for linear codes has no known quantum speedup. Over more than four decades, McEliece’s original parameters have had to grow as attacks improved, but the system itself has never been broken — the longest unbroken record among post-quantum candidates.
The construction: hide a good code
The system is built on binary Goppa codes. The public key is a scrambled generator matrix , where generates a Goppa code, is a random invertible matrix, and a random permutation. After scrambling, the public matrix is indistinguishable in structure from random, and the trapdoor — the decodable code — is hidden inside it. The private key is the scrambling data plus the Goppa decoder.
To encrypt, the sender encodes the message with the public matrix and deliberately adds random errors, where is the code’s correction radius. The receiver undoes the permutation, runs the algebraic Goppa decoder to remove exactly those errors, and unscrambles. An attacker faces the general decoding problem: recovering a message from an error-corrupted codeword of an apparently random code. Its standard form is syndrome decoding, and the best attacks remain information-set decoding (ISD) and forty years of refinements — still exponential in the parameters, so security is bought by sizing parameters until the attack cost clears the target level. Niederreiter’s 1986 dual formulation, phrased with parity-check matrices and syndromes, underlies most modern submissions.
The attack side: four decades of ISD
The attacker’s story is worth recording too. The basic idea of information-set decoding, due to Prange in 1962, has passed through a chain of refinements — Lee–Brickell, Stern, BJMM and their successors — each shaving a little off the exponent’s base; the defence’s reply has never changed: raise the parameters (code length, dimension, error count). Four decades of this tug-of-war have not altered the big picture, namely complexity that grows exponentially in the parameters — which is precisely the confidence behind writing “categories 1/3/5” into the parameter table. Quantum attackers gain little on this front either: Grover-style speedups offer ISD only a polynomial improvement, and the current parameters already budget for it.
The price: an enormous public key
Disguising a random matrix means publishing something close to a whole random matrix. Classic McEliece, the modernized submission to the NIST process with systematic-form and fixed-weight refinements, has these sizes:
| Parameter set | NIST category | Public key (bytes) | Ciphertext (bytes) |
|---|---|---|---|
| mceliece348864 | 1 | 261,120 | 128 |
| mceliece460896 | 3 | 524,160 | 188 |
| mceliece6688128 | 5 | 1,044,992 | 208 |
| mceliece8192128 | 5 | 1,357,824 | 208 |
Public keys run from about 261 KB to 1.3 MB — hundreds of times an ML-KEM key. In exchange, ciphertexts are a couple of hundred bytes, encryption and decryption are fast, and the security argument is conservative with an exceptionally long review history. The expensive operation is key generation — producing the scrambled matrix in systematic form and verifying it has the required properties — but it is performed once, offline, by the key owner. Day-to-day use is a matrix–vector product plus deliberate error injection for encryption, and a fast algebraic decode for decryption, both cheap enough for modest hardware. This asymmetry (painful setup, cheap operation, huge static key) is what shapes every realistic deployment discussion of the scheme. The fit is therefore specific: settings where a public key is distributed once and stays fixed — firmware and offline key distribution, long-term archival encryption — and a poor fit wherever keys must ride in every handshake, as in TLS.
The private key, by contrast, deserves a line of its own: against the public key’s bulk, the private key runs to only a few kilobytes to a dozen or so, and the specification supports expanding the entire private key from a short seed — distributing and backing up private keys is far less burdensome than the public key suggests. What the public-key size truly blocks is the protocol shape in which keys must be transmitted fresh in every interaction, not key custody itself.
Round four at NIST, and the ISO route
Classic McEliece was among the last KEM candidates standing in the fourth round of the NIST process. In March 2025, NIST’s status report IR 8545 gave the backup-KEM slot to HQC and did not select Classic McEliece — citing deployability, above all the public-key size, rather than any security concern. In parallel, Classic McEliece continues through the ISO/IEC international standardization track (the post-quantum work in ISO/IEC JTC 1/SC 27). The two routes do not contradict each other: NIST’s decision is about a general-purpose federal standard, not a verdict on the scheme.
Where the structural-attack boundary lies
The one other direction that historically demanded serious attention is structural attack: since the public key is a scrambled Goppa code, can the Goppa structure be recognized from the public matrix itself? Polynomial-time distinguishing ideas were proposed for high-rate binary Goppa codes, but they do not amount to a practical attack against the parameters Classic McEliece actually selected — the submission deliberately keeps code rates away from the sensitive region, a point on which the submission team and independent analyses agree. Writing “which parameters must not be chosen” into the specification is itself knowledge sedimented from four decades of attack and defence.
How to regard the “old-timer”
Classic McEliece is the control sample of post-quantum migration. Its value does not sit in a performance table; it sits in the fact that the strongest cryptanalysts have attacked it seriously for over four decades and it is still standing. Where a megabyte-scale public key is tolerable, it is a rational conservative choice. For general Internet deployment, lattices, hash-based signatures, and the newer compact code-based designs such as HQC are more realistic. Understanding McEliece means understanding both the glory and the burden of the code-based route.
References
- McEliece, R. J., A Public-Key Cryptosystem Based On Algebraic Coding Theory, NASA JPL DSN Progress Report 42-44, pp. 114–116, 1978 (bibliographic details listed on the Classic McEliece official website).
- Classic McEliece official website (specification, parameters, submission documents). https://classic.mceliece.org
- NIST, NIST IR 8545: Status Report on the Fourth Round of the NIST Post-Quantum Cryptography Standardization Process, 2025. https://csrc.nist.gov/pubs/ir/8545/final
- NIST, Post-Quantum Cryptography Standardization (project page). https://csrc.nist.gov/projects/post-quantum-cryptography
Tags: Classic McElieceCode-Based CryptographyGoppa CodesNIST