Key encapsulation

McEliece-6688128f

Code-based KEM on binary Goppa codes: very large public keys, tiny ciphertexts

unverified Root API only Post-quantum
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About McEliece-6688128f

McEliece-6688128f is one of 10 Classic McEliece variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,044,992-byte public key, a 13,932-byte secret key, a 208-byte ciphertext and a 32-byte shared secret. It is designed to resist attacks by large quantum computers. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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–2025
  1. McEliece publishes the code-based cryptosystem

  2. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  3. Classic McEliece submitted to NIST PQC

  4. 26 candidates advance to round 2

    NIST Post-Quantum Cryptography standardisation
  5. Round 3 finalists and alternates announced

    NIST Post-Quantum Cryptography standardisation
  6. Advances to round 4

  7. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published

    NIST Post-Quantum Cryptography standardisation
  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. KeyGen picks a random irreducible Goppa polynomial and support, and publishes a systematic-form parity-check matrix.
  2. Encaps chooses a random error vector of weight t and computes its syndrome under the public matrix.
  3. The shared key is a hash of the error vector and the ciphertext.
  4. 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

Static, long-lived key pairs where keys are distributed onceArchival and high-assurance confidentiality with a conservative assumptionVPN or file encryption setups that can tolerate megabyte-scale public keys

Sizes

FieldBytesMeaning
pk1,044,992Public key
sk13,932Secret key
ct208Ciphertext
ss32Shared secret
seed0Seed
coins0Encapsulation randomness

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
pk, sk = root.call("kem_keygen", "mceliece-6688128f", None, outs=2)
ct, ss = root.call("kem_encaps", "mceliece-6688128f", None, pk, outs=2)
assert ss == root.call("kem_decaps", "mceliece-6688128f", None, sk, ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is McEliece-6688128f?

McEliece-6688128f is a KEM in the Classic McEliece family. 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.

What are the McEliece-6688128f sizes?

In NextSSL, McEliece-6688128f uses: public key 1,044,992 bytes, ciphertext 208 bytes, shared secret 32 bytes.

Is McEliece-6688128f post-quantum?

Yes. McEliece-6688128f is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed McEliece-6688128f and when?

McEliece-6688128f belongs to the Classic McEliece family, first published in 1978 by Daniel J. Bernstein, Tung Chou, Tanja Lange, et al. (after Robert J. McEliece, 1978). Its origin: NIST PQC Round 4 candidate.

Is McEliece-6688128f safe to use?

McEliece-6688128f is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other Classic McEliece variants are there?

NextSSL also registers mceliece-348864, mceliece-348864f, mceliece-460896, mceliece-460896f, mceliece-6688128, mceliece-6960119 and more in the Classic McEliece family.