Classic McEliece
Code-based KEM on binary Goppa codes: very large public keys, tiny ciphertexts
Overview
Classic McEliece is a key encapsulation mechanism based on the McEliece cryptosystem from 1978, the oldest public-key scheme still standing against all known classical and quantum attacks. It trades very large public keys for very small ciphertexts and a long, stable security record.
The scheme hides a binary Goppa code, which has an efficient decoding algorithm, behind a public parity-check matrix that looks like a random linear code. Encapsulation adds a random error vector of fixed weight in Niederreiter form and sends the resulting syndrome. Only the key holder, who knows the Goppa polynomial and support, can decode the syndrome back to the error vector, from which the shared secret is hashed.
The security argument is unusually conservative: after more than four decades of cryptanalysis, the best attacks against McEliece with Goppa codes remain generic information-set decoding algorithms, and quantum computers give only a square-root style speed-up to their search component. The price is size. Public keys range from about 261 KB for mceliece-348864 to about 1.36 MB for mceliece-8192128, while ciphertexts are only about 96 to 210 bytes.
Five parameter sets are present: 348864 (category 1), 460896 (category 3), 6688128, 6960119 and 8192128 (category 5). Each has an f variant that uses a faster key-generation algorithm producing the same key format. Classic McEliece reached the fourth round of the NIST process, where NIST deferred its decision pending ongoing ISO standardisation. Implementations usually generate a key pair once and distribute the public key out of band, rather than per session.
History
1978–2025McEliece publishes the code-based cryptosystem
NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationClassic McEliece submitted to NIST PQC
26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationAdvances to round 4
FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisationHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen picks a random irreducible Goppa polynomial and support, and publishes a systematic-form parity-check matrix.
- Encaps chooses a random error vector of weight t and computes its syndrome under the public matrix.
- The shared key is a hash of the error vector and the ciphertext.
- Decaps uses the secret Goppa structure to decode the syndrome, with implicit rejection on failure.
Security notes
No practical attack is known and its security margin is widely regarded as conservative. The large public keys make it unsuitable for protocols that send fresh keys per session, and key generation is slow; constant-time decoding is required to avoid side-channel leakage.
Typical uses
Variants in NextSSL
10| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| McEliece-348864 mceliece-348864 |
unverified | pk 261120 · sk 6492 · ct 96 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-348864f mceliece-348864f |
unverified | pk 261120 · sk 6492 · ct 96 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-460896 mceliece-460896 |
unverified | pk 524160 · sk 13608 · ct 156 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-460896f mceliece-460896f |
unverified | pk 524160 · sk 13608 · ct 156 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-6688128 mceliece-6688128 |
unverified | pk 1044992 · sk 13932 · ct 208 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-6688128f mceliece-6688128f |
unverified | pk 1044992 · sk 13932 · ct 208 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-6960119 mceliece-6960119 |
unverified | pk 1047319 · sk 13948 · ct 194 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-6960119f mceliece-6960119f |
unverified | pk 1047319 · sk 13948 · ct 194 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-8192128 mceliece-8192128 |
unverified | pk 1357824 · sk 14120 · ct 208 · ss 32 · seed 0 · coins 0 | — | root |
| McEliece-8192128f mceliece-8192128f |
unverified | pk 1357824 · sk 14120 · ct 208 · ss 32 · seed 0 · coins 0 | — | root |
Frequently asked questions
Which Classic McEliece variants does NextSSL include?
NextSSL registers 10 Classic McEliece variants: mceliece-348864, mceliece-348864f, mceliece-460896, mceliece-460896f, mceliece-6688128, mceliece-6688128f, mceliece-6960119, mceliece-6960119f, mceliece-8192128, mceliece-8192128f.