ML-KEM vs Classic McEliece: key and ciphertext sizes

ML-KEM is the lattice-based key encapsulation standard from NIST, with small keys and ciphertexts. Classic McEliece is a code-based KEM with very large public keys and very small ciphertexts, and its standing and maintenance differ.

On this page

Which key encapsulation mechanism fits a system with ML-KEM and Classic McEliece in the same review

When a vendor document, tender or audit request names both ML-KEM and Classic McEliece, the two are not interchangeable choices for the same job. ML-KEM is the lattice-based key encapsulation mechanism standardized by NIST as FIPS 203, published as a final standard on 13 August 2024 with the parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Classic McEliece is a code-based KEM built on binary Goppa codes, and it is distinguished by very large public keys alongside small ciphertexts. The distinction that matters most in a review is this trade-off in size, together with the different standing the two algorithms hold: ML-KEM is the NIST-standardized default, while Classic McEliece is a Round 4 submission that NIST has not standardized.

The size difference is large and should be checked against the exact parameter set named in a document. The liboqs documentation lists Classic-McEliece-460896 (level 3) with a 524160-byte public key and 156-byte ciphertext, while ML-KEM-768, also at level 3, has a 1184-byte encapsulation key and 1088-byte ciphertext. The practical effect is that Classic McEliece moves a few hundred bytes on the wire but a public key of roughly half a megabyte, which matters for certificates, handshake sizing and storage. Confirm which parameter set and which component (public key, ciphertext or secret key) each figure in the document refers to, because the answer changes by level and by implementation.

Where each is typically met also differs, and the reviewer should confirm this with the vendor rather than assume it. ML-KEM appears in TLS hybrid groups such as X25519MLKEM768 defined in RFC 10024, and in OpenSSH as mlkem768x25519-sha256, which became the default in OpenSSH 10.0. Classic McEliece is named in draft-josefsson-mceliece-05 (June 2026), which states that ISO standardized it that month. Ask the vendor which algorithm, parameter set and standardization basis the product uses, and whether the document's claim rests on a standard, a draft or a submission. The sources on this page do not state how any product configures Classic McEliece in practice.

ML-KEM and Classic McEliece side by side: sizes, standing and documents

This table compares ML-KEM-768 with Classic-McEliece-460896, the two level 3 parameter sets, across design family, defining document, standing, sizes and maintenance. Read the size rows together: ML-KEM-768 has a small public key and ciphertext, while Classic McEliece has a very large public key and a much smaller ciphertext. Check each row against the document or upstream project named in it before you rely on it for a specific version.

AttributeML-KEM-768Classic-McEliece-460896
Design familyLattice-based key encapsulation mechanismCode-based key encapsulation mechanism using binary Goppa codes
Defining document and dateNIST FIPS 203, published as a final standard on 13 August 2024IETF draft-josefsson-mceliece-05 (June 2026), which says ISO standardized Classic McEliece in June 2026
StandingFinal NIST standard, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024NIST Round 4 submission (a merger of Classic McEliece and NTS-KEM) with no NIST standardization decision stated on the cited page
Public key or encapsulation key size1184 bytes (encapsulation key)524160 bytes (public key), per the liboqs documentation
Ciphertext size1088 bytes156 bytes, per the liboqs documentation
Shared secret size32 bytes32 bytes
Maintenance statusNot stated in the sources listed on this pageNo active maintenance upstream, with an Open Quantum Safe support tier of 3

What ML-KEM and Classic McEliece are, and where practitioners meet each

ML-KEM is the key-encapsulation mechanism specified in FIPS 203, which NIST published as a final standard on 13 August 2024. It lets two parties establish a shared secret key over a public channel and comes in three parameter sets: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST's post-quantum standards also include FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), released in the same month.

  • Parameter sets: The three sets differ in the size of the encapsulation key and ciphertext, which the TLS working group draft lists as 800 and 768 bytes for ML-KEM-512, 1184 and 1088 bytes for ML-KEM-768, and 1568 and 1568 bytes for ML-KEM-1024. All three produce a 32-byte shared secret.
  • TLS drafts: The TLS working group draft draft-ietf-tls-mlkem-11 (17 September 2026) defines ML-KEM for use in TLS.
  • Hybrid groups: RFC 10024, a Proposed Standard dated August 2026, defines TLS 1.3 hybrid groups that combine ML-KEM with a classical exchange, including X25519MLKEM768 and SecP384r1MLKEM1024.
  • SSH: OpenSSH supports mlkem768x25519-sha256 from version 9.9 and made it the default in version 10.0 (April 2025).
  • Guidance: NIST SP 800-227, published as final on 18 September 2025, gives recommendations for implementing and using KEMs securely.

Check which parameter set and which hybrid group your TLS or SSH stack negotiates, and confirm the exact versions your libraries and servers ship.

Six size and standing differences that change what a system must carry

ML-KEM and Classic McEliece differ sharply in how many bytes a system must store, send and handle during a key exchange. They also differ in NIST standardization status, upstream maintenance and ISO standing, which affects what can be sourced, supported and cited.

Public key size and handshake bandwidth

The public key is the item most likely to enlarge a handshake message. At level 3, the liboqs documentation lists a 524160-byte public key for Classic-McEliece-460896, while ML-KEM-768 has a 1184-byte encapsulation key. Systems that carry the key in handshake messages, certificates or configuration should measure the effect on message size and fragmentation before choosing a design. Confirm the exact sizes for the parameter set you deploy.

Level 3 public key
524160 bytes
liboqs Classic McEliece page

Ciphertext size at each level

Ciphertext is the message the encapsulating side sends back, so its size affects the response in a key exchange. The sources list Classic-McEliece-460896 at 156 bytes and ML-KEM-768 at 1088 bytes, so the code-based design sends a smaller ciphertext at the same level. Teams should not read this as an overall advantage, because the smaller ciphertext comes alongside a much larger public key. Check both sizes together against the message budget of the protocol in use.

TLS ML-KEM draft

Level-for-level size gap

Comparing the two algorithms at the same security level exposes the size trade. The liboqs documentation lists Classic McEliece public keys from 261120 bytes at level 1 to 1357824 bytes at level 5, while ML-KEM encapsulation keys in the TLS draft run from 800 bytes at ML-KEM-512 to 1568 bytes at ML-KEM-1024. Build a table that compares both sizes for each level you need, rather than relying on a single headline figure.

TLS ML-KEM draft

NIST standardization status

ML-KEM is a final NIST standard in FIPS 203, published on 13 August 2024. Classic McEliece is a Round 4 submission, and NIST IR 8545 says HQC is the only fourth-round key-establishment algorithm NIST will standardize. Procurement and compliance teams should confirm which standing their requirements accept, because a Round 4 submission carries no standardization decision in the sources.

NIST FIPS 203

Upstream maintenance status

The liboqs documentation lists the Classic McEliece upstream as having no active maintenance, with an Open Quantum Safe support tier of 3. Systems that depend on a library for updates, fixes or interoperability testing should check whether the upstream project is still maintained before committing. ML-KEM support in libraries and protocol stacks should be verified separately for each version in use.

liboqs Classic McEliece page

ISO standing in the IETF draft

The IETF draft draft-josefsson-mceliece-05 states in its foreword that ISO standardized Classic McEliece in June 2026. Teams that need an ISO reference for procurement or audit should take that statement from the draft and confirm it against the ISO publication itself. The sources reviewed here do not describe an ISO standard for ML-KEM in the same way, so do not assume parity between the two.

Classic McEliece IETF draft

Where ML-KEM and Classic McEliece show up in protocols, libraries and vendor documents

Most of the deployed protocol work so far involves ML-KEM. The TLS working group draft draft-ietf-tls-mlkem-11, dated 17 September 2026, defines the ML-KEM parameter sets for use in TLS, and RFC 10024, a Proposed Standard dated August 2026, defines the TLS 1.3 hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. If your environment negotiates these groups, confirm which ones your TLS stack and its version actually support and which ones it enables by default, since the sources listed here describe the groups but do not show how any given product configures them. OpenSSH is a concrete example: mlkem768x25519-sha256 is available from version 9.9, and it became the default in OpenSSH 10.0. Check the KexAlgorithms setting on your servers and clients, because a host running an older release will not negotiate it.

Classic McEliece appears in a different kind of source. The liboqs documentation lists it as a set of KEM parameter sets, with public key sizes from about 261 KB to over 1.3 MB depending on the level, and notes that the upstream project has no active maintenance and an Open Quantum Safe support tier of 3. The IETF draft draft-josefsson-mceliece-05 describes the algorithm and states that ISO standardized it in June 2026. NIST's Round 4 page lists it as a submission, a merger of Classic McEliece and NTS-KEM, and does not state a standardization decision. NIST IR 8545 names HQC as the only fourth-round key-establishment algorithm it will standardize. These sources do not establish that Classic McEliece is supported in any TLS, SSH or IPsec product.

Whether Classic McEliece is in your protocols, libraries or vendor products is not established by the sources listed on this page. Ask each vendor for its documentation on supported KEM algorithms, the exact versions where they appear, and whether any build or default enables them. Check the release notes and configuration reference of the libraries you ship, and where a vendor cites liboqs, confirm the liboqs version and whether it was compiled with the Classic McEliece parameter sets. Record each answer with the product version, so an auditor can match the claim to a specific build.

How to work out which of the two applies to your system

This sequence establishes which of the two key encapsulation mechanisms, ML-KEM or Classic McEliece, your systems use or would need to use, and what the public key and ciphertext sizes mean at each point where they are used. It ends with a recorded decision that names its sources, so auditors and reviewers can follow it.

  1. Check contract and requirements for named algorithms

    Start with the requirements that bind your organization: internal security standards, customer or procurement contracts, and any federal contract language that names an algorithm. Record each named algorithm and its parameter set, and note whether the requirement is binding or advisory. Ask the owner of each requirement to confirm the wording in writing. This step is complete when every named algorithm is listed with its source document and date, or when you have recorded that no requirement names one.

  2. Inventory protocol and library versions in use

    List the protocols and libraries that perform key establishment in each system, including TLS stacks, SSH servers and clients, and any application cryptography libraries, along with their exact versions. Note where each component is deployed and who maintains it. The output is an inventory showing which components could offer either algorithm at all. Confirm the version-specific support in each component's release notes rather than assuming it.

  3. Confirm which KEM each vendor offers

    For each component in the inventory, read the vendor documentation to find which key encapsulation mechanisms it offers, which parameter sets it enables by default, and whether it supports a hybrid with a classical exchange. Ask the vendor to name the exact version that adds each option. Record any vendor statement that a component does or does not support Classic McEliece or ML-KEM, with the document title and date. This step is complete when each component has a written vendor answer or a documented gap.

  4. Measure public key and ciphertext impact per system

    Using the sizes in the liboqs and IETF references for the parameter sets you identified, estimate how the public key and ciphertext sizes affect each handshake or stored record. Classic McEliece public keys are much larger than ML-KEM encapsulation keys, so check whether the larger key fits your message size limits, memory budgets and storage. Test a handshake in a lab environment to confirm the real size on the wire, since protocol framing adds bytes. The output is a per-system table of measured sizes.

  5. Record the decision with its sources for reviewers

    Write down which algorithm and parameter set each system uses or plans to use, the reason for the choice, and the requirement, vendor document or measurement that supports it. Include the version of each component and the date of each source. Note any system where the choice is still open and who owns the decision. Give this record to your auditors and reviewers so they can trace each conclusion back to its source. This step is complete when every system in the inventory has a recorded decision or a named open item.

Common mix-ups between ML-KEM, Classic McEliece and the older names

ML-KEM and Classic McEliece are both key encapsulation mechanisms, but they differ in standing, key sizes and what each source actually says about them. The cards below cover the points most often confused when reading vendor documents, liboqs listings and draft standards.

Classic McEliece is not HQC

Classic McEliece and HQC are both code-based KEMs, so they are often lumped together. They are separate designs with separate standing. NIST's Round 4 page lists Classic McEliece as a submission that merged with NTS-KEM, without a standardization decision, while NIST IR 8545 says HQC is the only fourth-round key-establishment algorithm NIST will standardize. Check which name a document means before comparing key or ciphertext sizes.

NIST IR 8545

Matching security levels across families

Classic-McEliece-460896 is listed at level 3 and ML-KEM-768 is also level 3, but the level label alone does not make the two sets interchangeable. Their public keys differ greatly, at 524160 bytes against 1184 bytes for the encapsulation key, and their ciphertexts are 156 bytes against 1088 bytes. Compare parameter sets by their listed sizes and by the category each source assigns, and confirm the mapping in the specification you deploy.

liboqs Classic McEliece page

A liboqs listing is not a certification

The liboqs documentation lists Classic McEliece parameter sets with their sizes and a support tier of 3, and it notes that the upstream has no active maintenance. That listing describes a library's supported algorithms and their sizes. It is not a validation, certificate or approval of any product that uses the library. Ask for the module, version and issuing body before treating a listing as evidence of conformance.

liboqs Classic McEliece page

A draft's ISO statement is not a standard number

Draft-josefsson-mceliece-05 states in its foreword that ISO standardized Classic McEliece in June 2026. That sentence is a claim inside an IETF draft. It does not give an ISO/IEC standard number or a published document reference. Before citing an ISO standard for Classic McEliece, look up the published standard itself and record its identifier, rather than relying on the draft's wording.

Draft-josefsson-mceliece-05

ML-KEM's final standard is FIPS 203

ML-KEM is specified in FIPS 203, published as a final NIST standard on 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Older names for lattice KEMs in code and configuration do not change this. When a document refers to ML-KEM, confirm it means the FIPS 203 parameter set, not a pre-standard submission, before comparing its sizes with Classic McEliece.

FIPS 203

Questions buyers and engineers ask about ML-KEM and Classic McEliece

Are ML-KEM and Classic McEliece the same algorithm?

No. ML-KEM is a lattice-based key encapsulation mechanism, while Classic McEliece is a code-based one built from Niederreiter's dual version of McEliece's system using binary Goppa codes. Both are KEMs, so they fill the same role in a key exchange: they establish a shared secret. ML-KEM is specified in NIST FIPS 203, published as a final standard on 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Classic McEliece is described in IETF draft-josefsson-mceliece-05, which uses a 32-byte session key. Because the two rely on different mathematical families, their keys and ciphertexts differ greatly in size, which is the main practical trade-off covered on this page.

Which of the two is newer?

ML-KEM is the newer of the two in terms of standardization status, and the one NIST has finalized. FIPS 203 was published on 13 August 2024. Classic McEliece is an older design: it was a Round 4 submission in NIST's post-quantum process, which lists it as a merger of Classic McEliece and NTS-KEM without stating a standardization decision. The draft draft-josefsson-mceliece-05 (June 2026) states that ISO standardized Classic McEliece in June 2026. Confirm the status you need against the ISO document itself and the NIST Round 4 page, since the dates for each track differ.

Which algorithm does a rule or customer ask for?

Start with the exact text in the rule, tender or customer requirement, because the sources do not state a general requirement for either algorithm. NIST's finalized standard for general key establishment is ML-KEM. NIST IR 8545 says HQC is the only fourth-round key-establishment algorithm NIST will standardize, and NIST's HQC announcement states HQC is not intended to replace ML-KEM, which remains the recommended choice for general encryption. Classic McEliece does not appear in that list. If a customer or regulator names a specific algorithm, ask whether it refers to the NIST standard, an ISO document or a particular library, and whether a parameter set is specified, since the security level changes the sizes involved.

Do I need both ML-KEM and Classic McEliece?

The sources do not establish that any organization needs both. Choosing between them depends on requirements you must confirm: the standard your contract or regulator names, the key and ciphertext sizes your protocols and hardware can carry, and the maintenance status of the implementation you plan to use. Some protocols add a classical component alongside a post-quantum one. RFC 9794 describes a hybrid scheme as one with at least one post-quantum and at least one traditional component, designed so an attacker must break all components. Whether a hybrid design is needed for your situation is a decision to confirm with your standards and compliance owners, not one this page can make for you.

Which one has the larger public key?

Classic McEliece has the much larger public key. The liboqs documentation lists Classic-McEliece-460896 at level 3 with a 524160-byte public key and a 156-byte ciphertext. By comparison, ML-KEM-768 at the same level has a 1184-byte encapsulation key and an 1088-byte ciphertext, according to the TLS draft draft-ietf-tls-mlkem-11. The pattern reverses for the ciphertext, which is much smaller for Classic McEliece. Across the Classic McEliece parameter sets listed by liboqs, public keys range from 261120 bytes at level 1 to 1357824 bytes for Classic-McEliece-8192128. Check the exact parameter set and the library version your deployment uses, since these figures are documented per variant.

How do key and ciphertext sizes affect my protocols and hardware?

The size gap shapes where each algorithm fits. A public key of hundreds of kilobytes, as with Classic McEliece, will not fit in a typical handshake message without changes to the protocol or transport. ML-KEM keys and ciphertexts are measured in kilobytes, which the TLS working group draft records in exact byte counts for each parameter set. Check three things in your environment: the message size limits in each protocol you run, the memory and storage available on embedded or constrained devices, and the bandwidth and latency of the links that carry the exchange. The sizes are fixed by the algorithm and parameter set, so these checks are for your own systems, not an estimate the sources provide.

What should I ask a vendor about ML-KEM and Classic McEliece support?

Ask which algorithm, parameter set and library version the product uses, and whether the vendor has published the key and ciphertext sizes for that exact configuration. Ask whether the upstream implementation is actively maintained. The liboqs documentation lists the Classic McEliece upstream as having no active maintenance and an Open Quantum Safe support tier of 3, which matters for long-term support. Ask whether the product supports ML-KEM under the final NIST standard and which TLS or SSH groups it offers, such as X25519MLKEM768 defined in RFC 10024. Request written confirmation of each answer, and ask for the dates of any certifications or validations, naming the module and version, since the sources only report such facts as the issuing body states them.

How DeployOpen works on this

DeployOpen plans and tests ML-KEM and Classic McEliece key establishment inside the client's own infrastructure, with the key and ciphertext sizes measured against the systems that will carry them. Each engagement starts with a written scope and ends with documented, testable results the client's own teams can review.

How we scope

  • We agree a written, fixed scope covering which protocols, services and key exchange paths are in question.
  • We inventory where key establishment runs today, including TLS, SSH and any VPN or tunnel endpoints.
  • We record the size constraints each system has, such as handshake limits, packet sizes and storage for keys.

How we build

  • We configure test environments that run the parameter sets in scope, so key and ciphertext sizes can be observed directly.
  • We measure handshake size and behavior against the client's real network paths and middleboxes, not only in isolation.
  • We integrate and harden the chosen configuration in the client's infrastructure, with key handling kept under their control.

How we hand over

  • We document each configuration, the parameter set chosen, and the measured sizes, so reviewers can trace every decision.
  • We deliver test results and a retest record, showing which systems were checked and what changed after fixes.
  • We hand over runbooks and configuration files that the client's own platform and security teams can operate.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the initial work.
  • We can re-run size and handshake tests when a library, protocol draft or parameter set changes in the client's stack.
  • Confirm with each vendor or project which version and edition of the algorithm your stack supports before relying on these results.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.