HQC-128 vs HQC-256: which HQC parameter set fits your design
If you have met HQC-128 or HQC-256 in a vendor document, tender or audit request, you are looking at two parameter sets of the HQC key encapsulation mechanism. The liboqs sources name them HQC-1 and HQC-5, with claimed NIST levels 1 and 5, so the main practical distinction between them is size and security level. A third set, HQC-3, sits between them and is named with claimed NIST level 3. Engineers and reviewers usually meet this choice in two places: when a vendor states which HQC set its product supports, and when a tender or internal security review asks which set a system will use. Where a document uses the names HQC-128 and HQC-256 instead of HQC-1 and HQC-5, confirm with the vendor which naming convention and which specification version the product implements before comparing sizes.
The liboqs page lists HQC-1 with a 2241-byte public key, a 2321-byte secret key and a 4433-byte ciphertext. HQC-5 is listed with a 7237-byte public key, a 7333-byte secret key and a 14421-byte ciphertext, and HQC-3 with a 4514-byte public key, a 4602-byte secret key and an 8978-byte ciphertext. All three sets are listed as IND-CCA2 with a 32-byte shared secret. Because the ciphertext and key sizes differ roughly in step with the security level, the practical check is whether your protocol message, certificate or storage field can carry the larger values. For example, an illustrative handshake that has a fixed message budget would need to be checked against the HQC-5 ciphertext size before a level 5 choice is made.
HQC-1, HQC-3 and HQC-5 side by side: key, secret key and ciphertext sizes
This table lists each HQC parameter set with its claimed NIST level and the sizes that the liboqs HQC page gives for public keys, secret keys and ciphertexts, along with the shared secret size and security property. The figures come from the liboqs page, which is based on specification version 2025-08-22 and is OQS support tier 2, so confirm them against the version your product ships. The main takeaway is that every set has the same 32-byte shared secret, so the choice between sets comes down to the claimed level and the size of the keys and ciphertexts.
| Attribute | HQC-1 | HQC-3 | HQC-5 |
|---|---|---|---|
| Claimed NIST level | Level 1 | Level 3 | Level 5 |
| Public key size | 2241 bytes | 4514 bytes | 7237 bytes |
| Secret key size | 2321 bytes | 4602 bytes | 7333 bytes |
| Ciphertext size | 4433 bytes | 8978 bytes | 14421 bytes |
| Shared secret size | 32 bytes | 32 bytes | 32 bytes |
| Security property | IND-CCA2 | IND-CCA2 | IND-CCA2 |
| Specification version | 2025-08-22 | 2025-08-22 | 2025-08-22 |
| OQS support tier | Tier 2 | Tier 2 | Tier 2 |
What each HQC parameter set is and where it is supported
HQC-1 is the smallest of the three HQC parameter sets listed on the liboqs page. The liboqs page gives it a claimed NIST level of 1, the lowest of the NIST security categories that apply to these sets, and it uses the common name HQC-128 in some other documents. The page lists a 2241-byte public key, a 2321-byte secret key and a 4433-byte ciphertext for this set. Those are the figures to compare against your protocol or storage limits, because they set how much data each key exchange carries.
- Claimed level: NIST level 1, as the liboqs page states it.
- Public key: 2241 bytes, the value the liboqs page lists.
- Secret key: 2321 bytes, which is relevant where keys are stored on disk or in a hardware module.
- Ciphertext: 4433 bytes, the figure that matters most for handshake size and packet fragmentation.
- Shared secret: 32 bytes, with IND-CCA2 security as the liboqs page lists for all HQC sets.
HQC-1 is the set you will see when a design is trying to keep key exchange messages as small as possible within the HQC family. Confirm the parameter set name in your library build, because some builds and documents label the same set differently. Confirm the specification version (the liboqs entry is based on specification version 2025-08-22) against any vendor document that names HQC-128.
HQC-3 sits between the other two sets. The liboqs page gives it a claimed NIST level of 3 and lists a 4514-byte public key, a 4602-byte secret key and an 8978-byte ciphertext. Compared with HQC-1, every size roughly doubles, so the choice between these two sets is mainly a trade of message size against the higher claimed level. Use these figures when you estimate bandwidth for a handshake or the storage needed for stored ciphertexts.
- Claimed level: NIST level 3, as the liboqs page states it.
- Public key: 4514 bytes.
- Secret key: 4602 bytes, which affects key storage on constrained devices.
- Ciphertext: 8978 bytes, a figure that can exceed the initial packet size of some network paths.
- Shared secret: 32 bytes, with IND-CCA2 security as the liboqs page lists for all HQC sets.
The liboqs page is the source for these sizes in this section, and the sources listed here do not give a naming convention for this set in every document. If a vendor or standard refers to this set by a different name, match the name to the parameter set and the NIST level before you compare sizes. Confirm the figures in the library version you deploy, because a change in a specification version can change the sizes that an implementation exposes.
HQC-5 is the largest of the three sets and carries the highest claimed NIST level on the liboqs page, level 5. The common name HQC-256 is used in some documents for this set. The liboqs page lists a 7237-byte public key, a 7333-byte secret key and a 14421-byte ciphertext for it. Because the ciphertext is the largest of the three, HQC-5 is the set most likely to affect handshake sizing and network path limits, and the figures should be checked before a design commits to it.
- Claimed level: NIST level 5, as the liboqs page states it.
- Public key: 7237 bytes, the largest public key of the three sets.
- Secret key: 7333 bytes, which increases the storage footprint of each long-lived key.
- Ciphertext: 14421 bytes, the largest ciphertext on the page, which may need fragmentation in some transports.
- Shared secret: 32 bytes, with IND-CCA2 security as the liboqs page lists for all HQC sets.
NIST IR 8545 says that the only key-establishment algorithm that will be standardized is HQC, and that NIST will develop a standard based on it to augment its key-establishment portfolio. NIST's project page says HQC was selected for ongoing standardization and that the process is underway, without naming a published standard text. The sources listed on this page do not say which of the three sets a future standard will include, so confirm that point against the standard itself when it is published, and check that the set you choose is the one your procurement or compliance requirements name.
How HQC-1 and HQC-5 differ in size and claimed level
HQC-1 and HQC-5 are two parameter sets of the same HQC key encapsulation mechanism, and they differ mainly in the size of the keys and ciphertext they produce. The cards below set out what the listed sizes mean for systems that carry these values, and what the claimed security levels do and do not tell you.
Public key size differs
The liboqs page lists a 2241-byte public key for HQC-1 and a 7237-byte public key for HQC-5. A public key is stored and transmitted by the party that receives an encapsulated secret, so the larger value affects certificate or key storage and any handshake or protocol message that carries it. Check the public key length your protocol and storage layer expect before choosing HQC-5.
- Public key bytes
- 2241 vs 7237
Secret key size differs
The liboqs page lists a 2321-byte secret key for HQC-1 and a 7333-byte secret key for HQC-5. The secret key stays on the party that decapsulates, so the difference matters for key storage in hardware modules, key vaults and backup procedures. Confirm that your storage and key-handling components accept the larger value before deployment.
- Secret key bytes
- 2321 vs 7333
Ciphertext size and bandwidth
The liboqs page lists a 4433-byte ciphertext for HQC-1 and a 14421-byte ciphertext for HQC-5. A larger ciphertext increases the message size that a protocol must carry and the bandwidth it consumes, and it can push a handshake past packet or buffer limits designed for smaller values. Budget the ciphertext length against your network path and message framing limits.
- Ciphertext bytes
- 4433 vs 14421
Claimed NIST levels 1 and 5
The liboqs page names HQC-1 with claimed NIST level 1 and HQC-5 with claimed NIST level 5. These are the claims the algorithm entry makes, and they are not a certification or an independent validation of either set. Read the level as a claim to be confirmed against the specification version you run and against your own requirements.
liboqs HQC pageShared secret length is the same
The liboqs page lists IND-CCA2 security and a 32-byte shared secret for all three HQC sets, including HQC-1 and HQC-5. Downstream key derivation that expects a 32-byte shared secret therefore does not change when the parameter set changes. The size differences above sit in the keys and ciphertext, not in the shared secret.
Confirm the version before sizing
The liboqs HQC entry is based on specification version 2025-08-22 and is listed at OQS support tier 2. Sizes and claims can change between specification versions, so confirm the values against the version your library, product or vendor implements before you size storage, buffers or bandwidth. Ask your vendor which HQC version and parameter set their product uses.
Where HQC parameter sets appear in libraries and vendor documents
The names you will see for HQC depend on where you look. The liboqs project, the Open Quantum Safe library that many teams use for testing and prototyping, names the three HQC parameter sets HQC-1, HQC-3 and HQC-5. These map to claimed NIST security levels 1, 3 and 5, so the numeric suffix in liboqs tracks the security level rather than a bit count. In everyday engineering conversations and in some vendor material, the same sets are called HQC-128 and HQC-256, and HQC-192 is used for the middle set. If a document says HQC-128, check whether it means liboqs HQC-1 at level 1 or a different labeling convention before comparing sizes or settings. Treat the two naming styles as labels for the same parameter sets only after the vendor or library confirms the mapping for the version you run.
The liboqs HQC entry is based on specification version 2025-08-22 and is listed at OQS support tier 2. Those two labels matter for a deployment decision. The specification version tells you which revision of the HQC design the implementation follows, so a library built against a different revision may not match your partner's build. The support tier indicates the maturity and level of project backing that the OQS project gives the algorithm, which affects how much testing and maintenance you can expect from upstream. Record both labels in your inventory alongside the library version, because a mismatch in either can change key and ciphertext handling between two systems that both claim HQC support.
The sources listed on this page do not say which protocols, TLS stacks, SSH implementations, VPN products or other commercial products support HQC, and they do not name any vendor that has shipped HQC. Do not assume product support from a library listing or from the existence of a parameter set name. Ask each vendor for its HQC implementation, the specification version it follows, the parameter set names it uses and the version in which HQC appeared. Confirm compatibility between your endpoints for the exact versions you run, because two products that both say HQC may not interoperate unless their versions and parameter choices match.
How to choose between HQC-128 and HQC-256 for your design
This sequence walks through the checks that connect the HQC parameter set to the requirement it must meet, the size budget it must fit, the library version behind it, and the vendor's interoperability position, ending with a record in your inventory. The sequence confirms the choice is supported by your sources. It does not recommend either set.
Identify the requirement that names the set
Start with the contract, policy, or internal standard that governs the system and find any clause that names a parameter set, a NIST security level, or a category. Record the exact wording and who issued it, whether that is a customer, a regulator, or your own security function. Done means you have a written requirement you can point to, or a written note that none exists. Where the requirement names only a security level, note that the liboqs entry lists HQC-1, HQC-3 and HQC-5 with claimed NIST levels 1, 3 and 5, so the mapping between the set names you will see in a product and the level in the requirement needs to be confirmed in writing rather than assumed.
Check the message and bandwidth budget
Compare the ciphertext and key sizes listed for each set against the budget your protocol or message format allows. The liboqs page lists HQC-1 with a 2241-byte public key and a 4433-byte ciphertext, HQC-3 with a 4514-byte public key and an 8978-byte ciphertext, and HQC-5 with a 7237-byte public key and a 14421-byte ciphertext. Check these figures against the handshake, storage, and bandwidth limits you actually run, and record which set fits and which does not. Done means you have a written comparison of each candidate against your own size limits, with any limit that rules a set out noted.
Confirm the library version and specification date
Find which library and version your product uses to implement HQC, and the specification it is built from. The liboqs HQC entry is based on specification version 2025-08-22 and carries OQS support tier 2, so confirm whether your product's version matches that specification and what support tier it ships with. Check whether the product exposes HQC-1, HQC-3 and HQC-5 under those names or under other names, and record the exact version string. Done means you can state the library, the version, the specification date, and the set names the build exposes.
Ask the vendor about interoperability
Request the vendor's written position on interoperability for the HQC set and version you intend to use, including whether it interoperates with other implementations and with other parameter sets. Ask which HQC set the vendor's own products default to and whether the default can be changed. The sources supplied for this page do not state any interoperability result, so the vendor's documentation is the source to check. Done means you hold a written answer, or a dated record that the vendor's documentation does not address the point.
Track the status of the HQC standard
Confirm where the HQC standard stands before you commit. NIST IR 8545 states that the only key-establishment algorithm that will be standardized is HQC, and NIST's project page says HQC was selected for ongoing standardization with no published standard text named on that page. Record that the standard is in development rather than final, and note that any parameter set chosen now may need to be re-checked against the final text. Done means you have dated notes on the standard's status and a reminder to re-check it.
Record the chosen set in your inventory
Enter the chosen set, the security level you matched it to, the library and version, the specification date, the vendor's interoperability position, and the requirement that drove the choice into your cryptographic inventory. Include the size figures you checked. This step closes the sequence: the record shows what was checked and what was not, so an auditor or reviewer can trace the choice later. These are checks that support your decision, not a recommendation of either set.
Common mix-ups between HQC names, ML-KEM sets and specification versions
HQC parameter sets go by several names, and they are easy to confuse with ML-KEM sets and with the version of a specification. The four points below separate those names so that the set you choose, and the document you cite, match what you actually deploy.
HQC-128 and HQC-256 are not separate algorithms
The liboqs page names the HQC parameter sets HQC-1, HQC-3 and HQC-5, with claimed NIST levels 1, 3 and 5. Names such as HQC-128 and HQC-256 appear in some vendor material as shorthand for these sets, so the same algorithm family can be described under different labels. Before you compare sizes or select a set, confirm which label your library, configuration file and vendor documentation use for each set, and map them to the sizes listed on the liboqs page.
liboqs HQC pageHQC is not ML-KEM
NIST FIPS 203 defines ML-KEM with three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Those names describe a different algorithm from HQC, and the numeric suffixes do not correspond to each other. A set number taken from one family must not be read as the equivalent set in the other. Check the algorithm name and the standard that defines it every time you record a choice in a design document or inventory.
FIPS 203 finalA claimed NIST level is not a certification
The liboqs page describes HQC-1, HQC-3 and HQC-5 with claimed NIST levels, which is the designer's or implementer's stated category and not a validation result. A claimed level does not show that a product is compliant or that an independent body has assessed it. If an assessment, procurement or audit asks for assurance, request the validation records and module details from the vendor, and state the level as claimed unless a record confirms it.
Specification version 2025-08-22 is not a NIST standard
The liboqs HQC entry is based on specification version 2025-08-22 and is listed at OQS support tier 2. That version identifies the document the implementation follows. It is not a published NIST standard text. NIST's project page says HQC was selected for ongoing standardization, and the process is underway. Record the version string exactly as the implementation reports it, and check the NIST project page for later publication before you cite a standard number.
NIST PQC project pageQuestions readers search about HQC-128 and HQC-256
Are HQC-128 and HQC-256 the same thing?
No. They are different parameter sets of the HQC key encapsulation mechanism, and the names are not interchangeable with the sets the liboqs project publishes. The liboqs page names the sets HQC-1, HQC-3 and HQC-5, with claimed NIST levels 1, 3 and 5. The HQC-128 and HQC-256 labels follow a bit-strength naming convention rather than the liboqs names, so confirm in your vendor's documentation which set each label refers to. The two sets differ in key size, ciphertext size and claimed security level, as the size figures below show. Verify the mapping against the specification version your product ships.
Which HQC set is newer or the larger one?
The sources do not state a release date for each HQC set separately. All three sets in the liboqs entry are based on specification version 2025-08-22, so they share one specification. The larger set is the one with the higher claimed NIST level. On the liboqs page, HQC-1 has a 2241-byte public key and a 4433-byte ciphertext. HQC-3 has a 4514-byte public key and an 8978-byte ciphertext. HQC-5 has a 7237-byte public key and a 14421-byte ciphertext. Set size therefore grows with the claimed level. Confirm the sizes for your product's version with the vendor, since libraries can differ.
Does a rule or customer require HQC-128 or HQC-256?
The sources listed on this page do not name a rule or contract that requires a specific HQC set. NIST IR 8545 (March 2025) says NIST will develop a standard based on HQC to augment its key-establishment portfolio, and NIST's project page says HQC was selected for ongoing standardization with no published standard text named. For a requirement that names a set, check the wording of the contract, tender or regulation that applies to you. Ask the customer or regulator directly which parameter set they expect, and whether the requirement names a level or a bit strength.
Do we need both HQC-128 and HQC-256?
The sources do not state that an organization must deploy more than one HQC set. Each set is a separate choice of security level and size, and the choice depends on the level your requirements and risk assessment call for, and on what the systems on each side of a connection support. A single set may be enough for a given service, while a mixed environment may need more than one. Some libraries and protocols negotiate a set at connection time, so check whether your product lets you pin one set or must support several. Confirm the supported sets with your vendor before planning a mixed deployment.
Which HQC set does our product use, and which version?
Ask the vendor for the exact set and specification version their product implements, and for the library build it ships. Request the parameter set names as the product's own documentation uses them, since the sources listed here name the sets HQC-1, HQC-3 and HQC-5 and the labels can differ. Ask whether the product supports more than one set and how a set is selected. The liboqs entry cites specification version 2025-08-22 and lists OQS support tier 2, so ask whether the vendor's build tracks that version. Get the answers in writing and keep them with your inventory records.
Are the HQC sizes the same on every platform?
The size figures in this section come from the liboqs entry, so they describe that library's implementation. The sources listed on this page do not say whether other implementations produce the same key and ciphertext sizes. Do not assume two implementations are interchangeable because they name the same set. Before you rely on a size in a network design, buffer allocation or certificate-chain budget, test with the build you plan to deploy, and confirm the sizes against the specification version it implements.
Does the shared secret length change between HQC sets?
The liboqs page lists a 32-byte shared secret and IND-CCA2 security for all three HQC sets. So on that source, the shared secret length does not differ between the sets, and only the key and ciphertext sizes change. The page does not describe any other difference in shared secret handling. Confirm this against the implementation you deploy, since the sources listed on this page cover only the liboqs entry.
How DeployOpen helps teams choose and deploy post-quantum parameter sets
DeployOpen works through HQC-128 vs HQC-256 in three stages: scoping which parameter set fits the system, building and testing it inside the client's own infrastructure, and handing over documentation the client's teams can review. The sizes and security levels used in the work come from the liboqs and NIST sources listed on this page, and each engagement is confirmed against the specification version the client intends to run.
How we scope
- The written scope states which HQC parameter set or sets the engagement covers and which systems they will run in.
- Scope records the key, public key and ciphertext sizes each candidate set implies for the client's protocols and storage.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
How we build
- Parameter sets are deployed inside the client's own cloud accounts, data centers or air-gapped networks, not on DeployOpen systems.
- Testing checks that the chosen set works with the client's libraries and that message sizes fit existing protocol limits.
- Configuration is confirmed against the specification version the client runs, since the liboqs entry is based on a specific version.
How we hand over
- Handover includes documentation of the chosen parameter set, its security category, and the reasoning behind the selection.
- Evidence covers configuration settings, test results and the size figures the design relies on, so reviewers can check each one.
- Documentation records which sources each figure came from, so auditors can trace the choice back to published material.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
- Retainers can cover the review of future HQC standard text, since NIST has said it will standardize HQC and the text is not yet published.
- Clients should confirm with their own compliance team whether a future FIPS or NIST document changes the chosen set.

