HQC vs Classic McEliece: two code-based KEMs

HQC and Classic McEliece are both code-based key encapsulation mechanisms with very different key and ciphertext sizes and different standardization paths. This page sets out what the sources say about each.

On this page

How HQC and Classic McEliece differ as code-based KEMs

Both HQC and Classic McEliece are code-based key encapsulation mechanisms, so a vendor document, tender or audit request that names one or both is asking about a KEM built on error-correcting codes rather than lattices. The distinction that matters most for an engineering decision is their key and ciphertext sizes and their standardization status, and the two designs sit at opposite ends on both. Classic McEliece builds on Niederreiter's dual version of McEliece's system using binary Goppa codes, as described in IETF draft-josefsson-mceliece-05. HQC rests on Quasi-Cyclic Syndrome Decoding, as the HQC site describes it.

The question most often reaches security architects, platform engineers and vendor-risk reviewers who are scoping a post-quantum KEM for a protocol, a key management service or a product's cryptographic inventory. The size difference is large. For category 3, the sources list HQC-3 with a 4514-byte public key and 8978-byte ciphertext, while Classic-McEliece-460896 has a 524160-byte public key and 156-byte ciphertext, according to the liboqs Classic McEliece page. Anyone whose protocol or storage budget depends on message size should measure these values against their own handshake or payload limits before choosing either design.

On standing, NIST IR 8545 says HQC is the only one of the fourth-round KEMs that NIST will standardize. The NIST HQC announcement also records that HQC is not intended to replace ML-KEM, which remains the recommended choice for general encryption. Classic McEliece is listed on the NIST Round 4 page without a stated standardization decision, and draft-josefsson-mceliece-05 says ISO standardized it in June 2026. Confirm the current status of each design in the standard or guidance your procurement or compliance framework cites, since FIPS 207 for HQC had not been published even as an initial public draft as of the October 2026 draft-preussmattsson-tls-hqckem-03.

HQC and Classic McEliece side by side

This table sets the two code-based KEMs against each other on design basis, defining document, key and ciphertext sizes, secret key size, NIST and ISO status, and supporting platforms. Read each row as a sourced attribute, and use the size rows to see where the two designs differ most. The main takeaway is that Classic McEliece has very large public keys with very small ciphertexts, while HQC has moderate keys and larger ciphertexts, and the standing of the two designs also differs.

AttributeHQCClassic McEliece
Design basisQuasi-Cyclic Syndrome Decoding, per the HQC siteNiederreiter's dual version of McEliece's system using binary Goppa codes, per IETF draft-josefsson-mceliece-05
Defining documentHQC site (pqc-hqc.org); FIPS 207 not yet published as of the October 2026 IETF draftIETF draft-josefsson-mceliece-05; NIST Round 4 submission record
Public key size (category 1, 3, 5)2241, 4514 and 7237 bytes, per the HQC site261120 to 1357824 bytes across parameter sets, per liboqs
Ciphertext size (category 1, 3, 5)4433, 8978 and 14421 bytes, per the HQC site96 to 208 bytes across parameter sets, per liboqs
Secret key size32-byte decapsulation key seed, per the IETF draft6492 to 14120 bytes, per liboqs
NIST round 4 statusSelected on 11 March 2025 for standardization, per NISTListed as a merger of Classic McEliece and NTS-KEM, with no standardization decision stated on the NIST page
ISO statusThe sources listed on this page do not sayIETF draft-josefsson-mceliece-05 states ISO standardized it in June 2026; confirm with the ISO record
Supported inSoftware and draft specifications, including the tls-hqckem IETF draft; check your library versionSoftware libraries such as liboqs; check your library version and parameter set

What each KEM is and where practitioners meet it

HQC rests on Quasi-Cyclic Syndrome Decoding, a code-based problem that the HQC project describes as the basis of its key encapsulation mechanism. NIST selected HQC on 11 March 2025 as a code-based KEM to be standardized. NIST's own announcement states that HQC is not intended to replace ML-KEM, which remains the recommended choice for general encryption. The FIPS 207 draft for HQC had not been published, even as an Initial Public Draft, as of the 20 October 2026 version of draft-preussmattsson-tls-hqckem-03.

  • Design basis: Quasi-Cyclic Syndrome Decoding, as stated on the HQC site.
  • NIST status: Selected on 11 March 2025 for standardization.
  • Draft standard: FIPS 207 draft status is recorded in draft-preussmattsson-tls-hqckem-03, which records no published draft as of 20 October 2026.
  • Key and ciphertext sizes: Public keys of 2241, 4514 and 7237 bytes and ciphertexts of 4433, 8978 and 14421 bytes at categories 1, 3 and 5.
  • Decapsulation key: A 32-byte seed in the draft.

Check the current FIPS 207 status on the NIST publications page before quoting a timeline in a review, and confirm the parameter set your library implements against the draft version you cite.

Differences that change what a team has to configure

HQC and Classic McEliece are both code-based KEMs, but they differ in the byte sizes a team must budget for and in where each stands in standardization. These four differences shape protocol configuration, storage, and the review path a design must pass.

Public key size budget

HQC public keys are 2241, 4514 and 7237 bytes at categories 1, 3 and 5, according to the HQC site. Classic McEliece public keys range from 261120 to 1357824 bytes, as listed by liboqs, so a Classic McEliece key can be hundreds of times larger than an HQC key. Teams sending public keys in handshake messages, certificates or key directories should check whether their protocol framing, buffers and message size limits accept the larger value for the parameter set they run.

HQC-3 public key
4514 bytes
HQC site

Ciphertext size on the wire

HQC ciphertexts run from 4433 to 14421 bytes across the three categories, per the HQC site. Classic McEliece ciphertexts are much shorter, from 96 to 208 bytes, per liboqs. The direction reverses here: the design that is heavy on keys is light on ciphertext, and the one that is light on keys is heavy on ciphertext. Check message size limits and the number of round trips in the handshake before choosing either.

Secret key storage and handling

The HQC decapsulation key is a 32-byte seed in the IETF draft, per draft-josefsson-mceliece-05 and the HQC materials. Classic McEliece secret keys range from 6492 to 14120 bytes in liboqs. Systems that store keys in hardware modules, key vaults or databases must allow for this gap in storage, backup and key rotation procedures. Confirm with the implementation you run whether the stored form is the seed or the expanded key.

HQC decapsulation seed
32 bytes

Standardization path and status

NIST IR 8545 says HQC is the only fourth-round candidate NIST will standardize, and NIST selected HQC on 11 March 2025. The NIST Round 4 page lists Classic McEliece as a merger of Classic McEliece and NTS-KEM without stating a standardization decision. The draft-josefsson-mceliece-05 says ISO standardized Classic McEliece in June 2026. Procurement and compliance reviewers should confirm which body and document a vendor cites, since a NIST standard and an ISO standard carry different review and acceptance paths.

NIST IR 8545

Where HQC and Classic McEliece show up in protocols and products

The first thing to know is that the sources in this topic place each of these two code-based KEMs in a different kind of document. HQC appears in an IETF Internet-Draft, draft-preussmattsson-tls-hqckem-03, which defines how HQC would be used as a key encapsulation mechanism in TLS. Classic McEliece appears in a different IETF Internet-Draft, draft-josefsson-mceliece-05, and as an algorithm in the Open Quantum Safe liboqs library. Neither draft is a published RFC, so the wording of either one can still change before it is finalized. The sources also state that FIPS 207 for HQC had not been published even as an Initial Public Draft as of the 20 October 2026 version of the TLS draft, so there is no finished federal standard for HQC to point to yet.

The sources do not list HQC or Classic McEliece in the hybrid key exchange groups defined for TLS 1.3 in RFC 10024, nor in the SSH key exchange methods that the OpenSSH project documents, which are built around ML-KEM and sntrup761. If your platform team is planning to enable either algorithm, do not assume it is available in the TLS or SSH configuration you already run. Check the release notes and supported-algorithm list of the exact TLS or SSH library version you deploy, and confirm whether any group or method name for HQC or Classic McEliece appears there. Repeat the check for the liboqs version you build against, because liboqs is a research and prototyping library and its algorithm list changes between releases.

Because the sources do not describe how a particular product or vendor build handles these algorithms, the practical step is an inventory check rather than a configuration change. List every component in your environment that terminates TLS or SSH and record the exact version of each. For each one, confirm from its own documentation whether HQC or Classic McEliece is offered as a selectable group or method, and whether it is enabled by default. Where a component offers neither, record that as a finding and plan your migration around ML-KEM or another supported group, as the sources describe for general encryption.

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

This sequence establishes whether HQC or Classic McEliece is the code-based KEM your system needs, by tracing the requirement that names it, the places key establishment runs, the vendor's exact algorithm and version, the size limits your protocol and storage can accept, and the standardization status of what you will deploy. The output is a documented choice you can defend in a review.

  1. Check the requirement or contract naming the KEM

    Start with the document that asks for a specific key encapsulation mechanism, such as a customer contract, a tender, a internal security standard or a federal requirement. Note whether it names HQC, Classic McEliece, or only asks for a post-quantum KEM in general. If the requirement names neither, record that finding, since it changes which of the other steps decide the answer. The output is a written note quoting the requirement and its source.

  2. Inventory where key establishment runs

    List every place your systems perform key establishment: TLS endpoints, SSH servers and clients, VPN gateways, application-level encryption and any hardware or appliance that terminates encryption. For each item, record the owner, the protocol and the current key exchange group. The output is an inventory that shows which components could take either KEM, and which are fixed to a different algorithm by their vendor.

  3. Check vendor documentation for the exact algorithm and version

    For each component in the inventory, read the vendor's documentation to confirm which post-quantum KEM it supports and at which version. Do not assume a product name implies a specific algorithm, since parameter sets and parameter names differ across implementations. Confirm whether the version you run offers HQC, Classic McEliece, or neither, and note any default settings. The output is a table mapping each component to its supported KEMs and versions, with the documentation source cited.

  4. Check the size limits of your protocol and storage

    Compare the public key and ciphertext sizes each candidate produces against the limits of your protocol messages, certificate and key storage, hardware buffers and any packet-size constraints. The sizes for HQC and Classic McEliece differ substantially, and Classic McEliece public keys are much larger than HQC's, so one candidate may fit where the other does not. Use the sizes published by the relevant standard or implementation, and verify them against your version. The output is a comparison of fit for each component.

  5. Confirm standardization status for your deployment version

    Check the standardization status of the exact version you plan to deploy against the sources listed on this page, rather than relying on general statements. Confirm whether the relevant NIST or IETF document has been finalized, whether a draft is still open, and whether any standardization body has published a decision for the algorithm. Where the sources do not record a status for a point, say so and treat it as an open question for the reviewer. The output is a dated status note for each candidate, with its source.

Common mix-ups between the two code-based KEMs

HQC and Classic McEliece are both code-based key encapsulation mechanisms, so they are often discussed as one family. The four mix-ups below each contradict a specific source, and each one changes which design fits a deployment, which standard applies and what a reviewer can confirm.

Treating them as one design

HQC and Classic McEliece share a broad family name, but they are built differently. The Classic McEliece draft says it builds on Niederreiter's dual version of McEliece's system using binary Goppa codes. The HQC project says HQC rests on Quasi-Cyclic Syndrome Decoding. A reader who assumes one construction is the other will misread parameter tables, security arguments and review history. Check the design basis named in each source before comparing the two in a review or a vendor answer.

Classic McEliece draft

Small ciphertext does not mean small handshake

Classic McEliece ciphertexts run from 96 to 208 bytes, which looks attractive next to HQC. The same liboqs listing gives Classic McEliece public keys of 261120 to 1357824 bytes. In a handshake, the client sends its public key and the server returns a ciphertext, so the total bytes exchanged depend on both. For category 3, HQC-3 uses a 4514-byte public key and an 8978-byte ciphertext, while Classic-McEliece-460896 uses a 524160-byte public key and a 156-byte ciphertext. Compare the sum of both messages, and confirm the exact sizes for the parameter set you run.

liboqs Classic McEliece page

A draft is not a published standard

NIST selected HQC on 11 March 2025, and NIST IR 8545 says HQC is the only one of the fourth-round candidates NIST will standardize. That selection is not a published standard. The IETF draft draft-preussmattsson-tls-hqckem-03, dated 20 October 2026, reports that FIPS 207 for HQC had not been published even as an Initial Public Draft. A vendor that describes HQC as standardized, or as a FIPS, is making a claim the sources do not support. Ask for the document number and status, and treat a draft number as a working reference only.

NIST IR 8545

The ISO date is not a NIST decision

The IETF draft draft-josefsson-mceliece-05 says ISO standardized Classic McEliece in June 2026. The NIST Round 4 page lists Classic McEliece as a merger of Classic McEliece and NTS-KEM, and does not state a standardization decision for it. An ISO publication therefore does not mean NIST has chosen Classic McEliece for its own standards. Keep the two bodies separate when a procurement or compliance question asks which standard applies, and confirm the ISO reference number directly with the ISO catalogue.

NIST Round 4 submissions

Questions readers ask about HQC and Classic McEliece

Are HQC and Classic McEliece the same algorithm?

No. Both are code-based key encapsulation mechanisms, but they rest on different code families and different hardness problems. The draft-josefsson-mceliece-05 document says Classic McEliece builds on Niederreiter's dual version of McEliece's system using binary Goppa codes. The HQC project site says HQC rests on Quasi-Cyclic Syndrome Decoding. Their key and ciphertext sizes also differ widely, so they should be treated as separate designs that each need their own review.

Which of HQC and Classic McEliece is newer?

HQC is the newer design. Classic McEliece descends from McEliece's 1978 system and entered the NIST process as a long-standing candidate. HQC was a later submission that NIST selected on 11 March 2025. The sources listed here do not give a submission date for either design, so confirm the dates in the NIST round documents if your procurement needs them.

Does a rule or customer require HQC or Classic McEliece?

The sources listed here do not show any rule or customer requirement that names either algorithm. NIST IR 8545 covers BIKE, Classic McEliece, HQC and SIKE in its fourth round and says HQC is the only one NIST will standardize. NIST SP 800-227 gives recommendations for implementing KEMs in general. Check any specific requirement in your contract, sector guidance or customer questionnaire, and ask the customer which algorithm and standard they mean.

Do we need both HQC and Classic McEliece?

The sources do not say that an organization needs both. NIST selected HQC for standardization and said it is not intended to replace ML-KEM, which remains the recommended choice for general encryption. Classic McEliece's standing differs: the NIST Round 4 page lists it as a merger of Classic McEliece and NTS-KEM without stating a standardization decision. An organization that needs a code-based option should decide which design its requirements call for, and confirm the choice against the standards it must meet.

How do the key and ciphertext sizes compare?

They differ by a wide margin. HQC public keys are 2241, 4514 and 7237 bytes at categories 1, 3 and 5, with ciphertexts of 4433, 8978 and 14421 bytes. Classic McEliece public keys range from 261120 to 1357824 bytes, with ciphertexts of 96 to 208 bytes, according to liboqs. At category 3, HQC-3 uses a 4514-byte public key and 8978-byte ciphertext, while Classic-McEliece-460896 uses a 524160-byte public key and 156-byte ciphertext. Check these figures against the parameter set you deploy, because the sizes depend on it.

What does the decapsulation key look like in each design?

The formats are very different. The HQC draft describes its decapsulation key as a 32-byte seed. Classic McEliece secret keys are 6492 to 14120 bytes in liboqs. Storage, key-handling and backup procedures should be planned for the size that applies to your parameter set, and you should confirm the key format in the implementation you use.

Are either of these in a standard yet, and which standards mention them?

Standardization is at different stages. NIST selected HQC on 11 March 2025, and the FIPS 207 draft for HQC had not been published, even as an Initial Public Draft, as of the 20 October 2026 draft-preussmattsson-tls-hqckem-03. draft-josefsson-mceliece-05 says ISO standardized Classic McEliece in June 2026. Read each named document directly before relying on it, and confirm whether the version you use is the one the standard covers.

What should we ask a vendor about HQC or Classic McEliece support?

Ask which exact design and parameter set the product implements, such as HQC-3 or Classic-McEliece-460896, and which draft or standard version it follows. Ask for the public key and ciphertext sizes the product uses, and how it stores the decapsulation key. Ask whether the implementation has been independently reviewed, and whether it will track a final FIPS or ISO text. Ask how it interoperates with peers that use ML-KEM, since that is the NIST-recommended general option.

How DeployOpen works on this

DeployOpen plans and implements post-quantum key establishment in the client's own infrastructure, so the choice between HQC and Classic McEliece is made against the client's real protocols, key sizes and review requirements. Work is scoped in writing first, then built, tested and documented for handover.

How we scope

  • Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.
  • The scope records which key exchange or KEM use cases are in and out, such as TLS, SSH or internal service encryption.
  • Ask the written scope to name the key and ciphertext sizes each candidate would add to your protocols and systems.

How we build

  • Candidate designs are deployed in a test environment that mirrors the client's protocol stack and library versions.
  • Key and ciphertext sizes are measured against the client's network, handshake and storage limits rather than assumed.
  • Configuration is checked for which parameter set and hybrid group is in use, since TLS groups and SSH methods differ by version.

How we hand over

  • Deliverables include a written record of the chosen design, the parameter set and the version each setting applies to.
  • Documentation notes the review status the client's own sources give for each design, and where to confirm it.
  • The client receives configuration, test results and runbooks so its own teams can operate and audit the setup.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover tracking of library and protocol version changes that affect the chosen KEM.
  • Retesting after upgrades confirms that the deployed design still matches the documented scope and configuration.

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.