What HQC key and ciphertext sizes are in bytes
If you are sizing a buffer or message for HQC key encapsulation, start with the public key and ciphertext lengths for your parameter set. According to the HQC project overview table, dated 4 December 2026, HQC-1 has a public key of 2,241 bytes and a ciphertext of 4,433 bytes, while HQC-5 has a public key of 7,237 bytes and a ciphertext of 14,421 bytes. The secret key is 32 bytes and the shared secret is 32 bytes for all listed sets, including HQC-3, which has a public key of 4,514 bytes and a ciphertext of 8,978 bytes.
This table is used by engineers who allocate memory for key and ciphertext fields, and who estimate the bandwidth a handshake or key exchange message will add. It is also used by reviewers checking the figures in the IETF draft draft-preussmattsson-tls-hqckem-03, which maps HQC-KEM-128, HQC-KEM-192 and HQC-KEM-256 to HQC-1, HQC-3 and HQC-5 and gives matching public key and ciphertext lengths in its Table 1. Compare those values against the project table before you rely on either one.
Confirm the sizes against the version you actually deploy. The IETF draft states that FIPS 207 had not been published at the time of writing, and that its parameter set names and sizes must be verified and updated once FIPS 207 is published. It also says the decapsulation key format must be updated if FIPS 207 specifies a different format. Check the HQC project overview for the current parameter table, and check your library's documentation for the exact lengths it implements before you fix any buffer size in code.
HQC public key, secret key and ciphertext sizes by parameter set
This table lists the public key, secret key, ciphertext and shared secret lengths for each HQC parameter set, with the TLS name the IETF draft maps it to. Read each row as one parameter set, and check the HQC project overview and the draft when you size buffers, because the draft says its figures must be verified once FIPS 207 is published. The main takeaway is that the ciphertext and public key grow with each security level, while the secret key and shared secret stay at 32 bytes.
| Parameter set | TLS name (IETF draft) | Public key (bytes) | Secret key (bytes) | Ciphertext (bytes) | Shared secret (bytes) |
|---|---|---|---|---|---|
| HQC-1 | HQC-KEM-128 (category 1) | 2,241 | 32 | 4,433 | 32 |
| HQC-3 | HQC-KEM-192 (category 3) | 4,514 | 32 | 8,978 | 32 |
| HQC-5 | HQC-KEM-256 (category 5) | 7,237 | 32 | 14,421 | 32 |
How to read the HQC size columns and security categories
Each row in the HQC table describes one parameter set, and the columns give the byte lengths that an implementation has to allocate or transmit. The public key column (ek) is the encapsulation key a peer sends to the party that will encapsulate a shared secret. The secret key column (dk) is the decapsulation key the holder keeps private. The ciphertext column is the encapsulated message that travels back, and the shared secret column is the symmetric key both sides derive. For the secret key, the IETF draft states that the HQC decapsulation key is a 32-byte seed (Section 3.10), so the 32 bytes in the table are the seed itself rather than an expanded key. The shared secret is also 32 bytes (Section 2). Engineers sizing buffers should size the public key and ciphertext fields from the table, and should confirm the secret key format against the final specification before storing it in a fixed-width field.
The IETF draft draft-preussmattsson-tls-hqckem-03 maps HQC-KEM-128, HQC-KEM-192 and HQC-KEM-256 to HQC-1, HQC-3 and HQC-5, and assigns them security categories 1, 3 and 5. Those category numbers are the way the draft tells a reader how the three variants compare, so a team choosing among them for a TLS deployment should record the category alongside the byte lengths. Table 1 in Section 3.1 of the draft gives the same public key and ciphertext figures as the HQC project overview, which means the two sources agree for these fields. Teams should still check the names and sizes in the draft, because the draft states that FIPS 207 had not been published at the time of writing, not even as an Initial Public Draft, and that its parameter set names and sizes must be verified and updated once FIPS 207 is published.
Where the HQC ciphertext and public key sizes stop fitting
HQC public keys and ciphertexts are several thousand bytes long, and the largest parameter set runs past 14,000 bytes for the ciphertext alone. The places below are where those lengths meet a fixed buffer, a handshake message, a constrained device or a protocol field, so check each one against the parameter set you deploy.
Public key and ciphertext in TLS messages
In the IETF draft for HQC in TLS, the key share carries the HQC public key and the ciphertext returned in the server's response. Per Table 1 of the draft, HQC-KEM-128 uses a 2241-byte public key and a 4433-byte ciphertext, while HQC-KEM-256 uses a 7237-byte public key and a 14421-byte ciphertext. Confirm which parameter set a handshake negotiates and add these lengths to the message sizes you have measured.
- HQC-KEM-256 ciphertext
- 14,421 bytes
Buffers sized to ciphertext length
Code that allocates a fixed receive or encapsulation buffer sized for a smaller scheme will fail when HQC ciphertext arrives. The lengths differ by parameter set, so a buffer fixed at one size cannot serve all three. Size each buffer from the ciphertext length of the parameter set in use, and test decapsulation at the largest length you may receive.
HQC project overviewStoring the 32-byte decapsulation seed
The HQC decapsulation key is a 32-byte seed, far smaller than the public key or ciphertext. That makes it the one HQC value that is easy to store on a constrained device, but the draft notes the decapsulation key format must be updated if FIPS 207 specifies a different format. Keep the seed in protected storage and record which format version your build uses.
- Decapsulation seed
- 32 bytes
Constrained devices and large public keys
A device with little RAM or flash must hold the public key and the ciphertext during a single exchange, and the largest HQC set puts a 7237-byte public key on it. The sources do not give device memory thresholds, so the limit has to come from your own hardware. Measure the working memory your stack needs with the chosen parameter set before committing a device design.
Parameter names pending FIPS 207
The IETF draft states that FIPS 207 had not been published when it was written, not even as an Initial Public Draft, and that its parameter set names and sizes must be verified once FIPS 207 is published. Until then, treat the sizes in the table as draft values. Ask your vendor which HQC version and parameter names their implementation follows before you fix any buffer length.
HQC-1, HQC-3 and HQC-5 figures and where each is named
HQC-1 is the smallest of the three HQC parameter sets listed on the HQC project overview. The overview table gives its public key as 2,241 bytes, its secret key as 32 bytes, its ciphertext as 4,433 bytes and its shared secret as 32 bytes. The IETF draft draft-preussmattsson-tls-hqckem-03 names this set HQC-KEM-128 and gives it security category 1, and its Table 1 gives the same public key and ciphertext lengths.
- Public key: 2,241 bytes, as listed on the HQC project overview as of 4 December 2026.
- Secret key: 32 bytes. Section 3.10 of the draft says the decapsulation key is a 32-byte seed.
- Ciphertext: 4,433 bytes, matching Table 1 in Section 3.1 of the draft.
- Shared secret: 32 bytes, as defined in Section 2 of the draft.
- Draft mapping: HQC-KEM-128 with security category 1.
Before sizing a buffer, confirm the parameter set names and lengths against the draft version you deploy, since the draft says they must be updated once FIPS 207 is published.
HQC-3 is the middle parameter set. The HQC project overview gives its public key as 4,514 bytes, its secret key as 32 bytes, its ciphertext as 8,978 bytes and its shared secret as 32 bytes. The IETF draft maps this set to HQC-KEM-192 and assigns it security category 3, with the same public key and ciphertext lengths in its Table 1.
- Public key: 4,514 bytes, as listed on the HQC project overview as of 4 December 2026.
- Secret key: 32 bytes, consistent with the 32-byte seed described in Section 3.10 of the draft.
- Ciphertext: 8,978 bytes, matching Table 1 in Section 3.1 of the draft.
- Shared secret: 32 bytes, as defined in Section 2 of the draft.
- Draft mapping: HQC-KEM-192 with security category 3.
Because the ciphertext is roughly double the size of the HQC-1 ciphertext, check that your protocol framing and record sizes accept it before you choose this set.
HQC-5 is the largest of the three parameter sets. The HQC project overview gives its public key as 7,237 bytes, its secret key as 32 bytes, its ciphertext as 14,421 bytes and its shared secret as 32 bytes. The IETF draft maps it to HQC-KEM-256 with security category 5, and its Table 1 lists the same public key and ciphertext lengths.
- Public key: 7,237 bytes, as listed on the HQC project overview as of 4 December 2026.
- Secret key: 32 bytes, consistent with the 32-byte seed described in Section 3.10 of the draft.
- Ciphertext: 14,421 bytes, matching Table 1 in Section 3.1 of the draft.
- Shared secret: 32 bytes, as defined in Section 2 of the draft.
- Draft mapping: HQC-KEM-256 with security category 5.
The ciphertext alone exceeds the packet sizes many links carry in one piece, so test fragmentation behavior on your own network path before committing to this set.
The names HQC-1, HQC-3 and HQC-5 come from the HQC project overview, while HQC-KEM-128, HQC-KEM-192 and HQC-KEM-256 come from the IETF draft. The draft is based on an HQC specification it dates 12 October 2026. The sizes in the overview and the draft match, but the draft is the document that maps the sets into TLS terms.
- HQC project overview: Lists the parameter set names and the byte lengths for each set as of 4 December 2026.
- IETF draft-preussmattsson-tls-hqckem-03: Dated 20 October 2026, maps HQC-KEM-128, HQC-KEM-192 and HQC-KEM-256 to HQC-1, HQC-3 and HQC-5.
- Security categories: The draft assigns categories 1, 3 and 5 to the three sets.
- NIST context: HQC is one of the algorithms selected from NIST's Post-Quantum Cryptography Standardization Project, per the HQC project overview.
- FIPS 207 status: The draft says FIPS 207 had not been published at the time of writing, not even as an Initial Public Draft.
When you cite a size, name the document and its date, because the draft says its parameter names and sizes must be verified once FIPS 207 is published.
Why HQC parameter set names and sizes may still change
The HQC figures on this page come from the project overview and from the IETF draft draft-preussmattsson-tls-hqckem-03, and that draft states that FIPS 207 had not been published at the time of writing, not even as an Initial Public Draft. Until NIST publishes FIPS 207, the parameter set names and sizes shown here should be treated as provisional rather than final. The draft itself says that its parameter set names and sizes must be verified and updated once FIPS 207 is published, so the values in the tables are a current reference, not a settled standard. Engineers who size buffers, key storage or bandwidth budgets from these numbers should record the date they were taken and plan to recheck them.
The draft also warns that the decapsulation key format must be updated if FIPS 207 specifies a different format. The draft describes the HQC decapsulation key as a 32-byte seed, and the 32-byte secret key length in the table depends on that description holding. If FIPS 207 defines the key differently, the secret key length and any code that stores or parses it will need to change. Teams that have already written key handling, serialization or storage logic around these lengths should isolate that logic so it can be updated without a wider rewrite.
When FIPS 207 is published, check it directly against the sizes and set names in this table, and do not assume the figures carry over. Confirm the parameter set names, the public key, secret key and ciphertext lengths, and the shared secret length for each variant, and compare them with the values listed for HQC-1, HQC-3 and HQC-5 here. Also confirm which HQC specification version your implementation follows, since the draft is based on a specification it dates 2026-10-12. Any difference should be reflected in the table and in your own configuration before the sizes are used for capacity planning.
How to use these HQC figures in a design or review
This sequence takes the HQC sizes on this page from a named parameter set to a checked buffer plan and a documented specification version. Each step ends with an output you can file with the design or review record, so the sizes in your code trace back to a source you can name.
Confirm the parameter set and TLS name
Identify which HQC parameter set your design uses, HQC-1, HQC-3 or HQC-5, and the TLS name the draft maps it to: HQC-KEM-128, HQC-KEM-192 or HQC-KEM-256. The IETF draft pairs these as HQC-1 with category 1, HQC-3 with category 3 and HQC-5 with category 5. Record the pair in your design document. The step is complete when every size you use can be traced to one named set, and no table row is used for a set you have not chosen.
Check figures against the HQC project overview
Compare the public key, secret key, ciphertext and shared secret lengths in your design against the HQC project overview at pqc-hqc.org. The overview table lists values as of 4 December 2026. Note the date of your check beside the values. The step is complete when each figure either matches the overview or has a documented reason for differing, such as a later revision of the project.
Cross-check figures against the referenced IETF draft
Verify the same figures against the IETF draft you reference, draft-preussmattsson-tls-hqckem-03 dated 20 October 2026. Its Table 1 in Section 3.1 gives the same public key and ciphertext lengths as the overview for each set. Record the exact draft version in your record, because later versions may change values. The step is complete when the draft version and its matching figures are recorded beside the overview check from the previous step.
Size buffers from ciphertext and public key lengths
Allocate buffers for the public key and ciphertext using the lengths confirmed in the previous steps, and add the 32-byte shared secret as its own buffer. The sizes differ widely across sets, so a buffer sized for one set will fail for a larger one. Test with the largest set you may use. The step is complete when your buffer constants are tied to the parameter set name and the length check passes for the chosen set in your test environment.
Confirm the decapsulation key format
Check how the decapsulation key is stored. The IETF draft says it is a 32-byte seed, and that its format must be updated if FIPS 207 specifies a different format. FIPS 207 had not been published at the time of writing, not even as an Initial Public Draft. Confirm the current status of FIPS 207 and the draft's format section before you finalize storage. The step is complete when the stored key length and format match the current draft, and the FIPS 207 status is recorded with its check date.
Ask the implementer for the specification version
Ask the vendor or implementer which HQC specification version their library or product was built against, and whether that version matches the draft and overview you checked. The draft is based on an HQC specification dated 12 October 2026. Ask for the version string or release notes, not a general assurance of compatibility. The step is complete when the implementer's written answer names a specification version, and that version is recorded beside your figures. Confirm interoperability for the exact versions you run.
What the HQC size figures do not tell you
The figures in this table are lengths in bytes for each named HQC parameter set: the public key, the secret key and the ciphertext, with the shared secret length alongside. They do not give handshake totals, so they will not tell you how many bytes a TLS handshake adds once HQC is in use. Adding the public key and ciphertext sizes to the rest of a handshake message is an arithmetic step you need to do against your own message layout, and the sources on this page do not cover it. They also say nothing about speed, cycle counts or memory use. Those belong on the performance reference pages, and you should not read latency or throughput into a length table.
The sources also do not show how a given implementation encodes its keys. The IETF draft these figures come from, draft-preussmattsson-tls-hqckem-03, is based on an HQC specification it dates 2026-10-12, and it states that FIPS 207 had not been published at the time of writing, not even as an Initial Public Draft. The draft says its parameter set names and sizes must be verified and updated once FIPS 207 is published, and that the decapsulation key format must be updated if FIPS 207 specifies a different format. Before you size buffers against these numbers, confirm the specification version and the key format your library implements, and check the library's own documentation for the encoding it uses.
The sources listed on this page do not give comparison figures against RSA or elliptic curves. If you need to set HQC sizes beside classical key sizes, take the classical figures from the classical key size tables in this section, and check that both sets of figures use the same units and the same definition of each field before you compare them.
Common questions about HQC key and ciphertext sizes
How big is the HQC-1 public key in bytes?
The HQC project overview table, as of 4 December 2026, lists the HQC-1 public key (ek) at 2,241 bytes. The IETF draft draft-preussmattsson-tls-hqckem-03 gives the same figure for HQC-KEM-128, which it maps to HQC-1. Engineers sizing a buffer for the public key should allocate at least 2,241 bytes for this set. The public key is the value a client or peer sends to the party that will encapsulate a shared secret, so it is the largest value a handshake message carries for HQC-1 in the sources, next to the ciphertext. Confirm the figure against the version of the HQC specification your library implements before fixing buffer sizes in code, because the sources list the values for the specification they cite and a later revision could change them.
How big is the ciphertext for each HQC parameter set?
The same project table and the IETF draft agree on the ciphertext sizes. HQC-1 (HQC-KEM-128) has a ciphertext of 4,433 bytes, HQC-3 (HQC-KEM-192) has 8,978 bytes and HQC-5 (HQC-KEM-256) has 14,421 bytes. The ciphertext grows with each step up in security category, so the set you choose sets the bandwidth cost of every key encapsulation. The sources give these as fixed lengths for each set. The ciphertext is the message the encapsulating side sends back, so in a TLS-style exchange it adds to the server's handshake flight. Teams checking packet limits or middlebox behavior should compare these lengths with their path MTU and with any size limits their intermediaries enforce, and should measure the resulting handshake on their own network.
Does the HQC secret key length change between parameter sets?
No. The sources list the secret key (dk) as 32 bytes for HQC-1, HQC-3 and HQC-5 alike. The IETF draft explains why: its Section 3.10 says the HQC decapsulation key is a 32-byte seed, so the full decapsulation material is derived from that seed at use time rather than stored at full size. This is a different pattern from the public key and ciphertext, which grow with the set. For storage planning, a private key stored as a seed is small and fixed. The draft also says the decapsulation key format must be updated if FIPS 207 specifies a different format, so treat the 32-byte seed as the current draft's value and confirm it when the standard is published. Check the key storage and key-handling code in any HSM or key vault you use, since some products store the expanded key rather than the seed.
Which HQC parameter set maps to security category 3?
HQC-3 maps to security category 3. The IETF draft draft-preussmattsson-tls-hqckem-03 assigns HQC-KEM-192 to HQC-3 and gives it security category 3, alongside HQC-KEM-128 mapped to HQC-1 with category 1 and HQC-KEM-256 mapped to HQC-5 with category 5. The HQC-3 set has a public key of 4,514 bytes, a secret key of 32 bytes and a ciphertext of 8,978 bytes. When a policy names a security category rather than an HQC set, use this mapping to pick the set, and confirm that the policy's category definition matches the one the draft uses. Security categories are defined by the standards bodies, so a policy document that uses them should cite its source, and the sources on this page do not say how any particular policy applies the mapping.
Has NIST published FIPS 207 for HQC?
As of the date of the IETF draft's writing, FIPS 207 had not been published, not even as an Initial Public Draft, according to draft-preussmattsson-tls-hqckem-03 (dated 20 October 2026). That draft states that its parameter set names and sizes must be verified and updated once FIPS 207 is published. The HQC project page says HQC was selected from NIST's Post-Quantum Cryptography Standardization Project, but the sources on this page do not say whether or when the standard will be finalized. Check the NIST CSRC publication listing for the current status before you rely on the HQC sizes in a formal document, and plan to revisit the sizes when FIPS 207 appears, because the parameter names and encodings are described in the draft as subject to change.
How do HQC sizes compare with ML-KEM sizes?
The sources on this page list the HQC sizes but do not provide ML-KEM sizes in a table that can be compared line by line, so a direct numeric comparison is outside what they cover. What they do establish is the structure: NIST published FIPS 203 (ML-KEM) as a final standard on 13 August 2024, defining ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and HQC is a separate selected algorithm whose standard, FIPS 207, is not yet published. For sizing, look up the ML-KEM set that corresponds to the security level you need in the ML-KEM sizes page of this reference, and compare the public key and ciphertext columns for each set. Do not assume that HQC and ML-KEM sizes match at the same security category, because the sources here give no such equivalence.
Where HQC public keys and ciphertexts travel in a TLS exchange
The flow starts with the client placing an HQC public key in its key share, which the IETF draft draft-preussmattsson-tls-hqckem-03 maps to HQC-KEM-128, HQC-KEM-192 or HQC-KEM-256. The server reads that public key, encapsulates, and returns an HQC ciphertext in its key share. Both sides then hold the 32-byte shared secret. Check the byte lengths against the parameter set you negotiate: the public key and ciphertext sizes change with the set, while the shared secret stays at 32 bytes. The draft says these names and sizes must be re-verified once FIPS 207 is published.
Client public key and server ciphertext each produce the same 32-byte shared secret.
How DeployOpen works on this
DeployOpen helps teams turn the HQC size figures into buffer, bandwidth and configuration decisions for their own systems. We scope the work against the parameter sets the team actually intends to run, then build, test and document the changes in the team's own infrastructure. Each engagement is fixed-scope, with the sizes checked against the current source before anything is handed over.
How we scope
- We confirm which HQC parameter sets the team plans to evaluate, mapped to the security categories used in the sources.
- We list every component that sends or stores HQC public keys, secret keys and ciphertexts, including buffers and fixed-length fields.
- We agree in writing which sources the sizes will be checked against, since the IETF draft says FIPS 207 is not yet published.
How we build
- We size buffers and message limits in the team's own code and configuration using the byte lengths for each chosen parameter set.
- We test the HQC paths in a staging environment with the exact library versions the team runs, rather than relying on published figures alone.
- We check that any parameter set naming or key format change in the draft or FIPS 207 is reflected in the team's configuration before release.
How we hand over
- We deliver a sizing document listing each parameter set, its public key, secret key and ciphertext lengths, and the source each figure came from.
- We document every buffer, field and configuration change, with the version of the source it was checked against and the date of the check.
- We provide a retest of the sizing and configuration checks so the team can confirm the handover matches its own environment.
How we support
- Ongoing support is available as a retainer for teams that need the sizes rechecked as HQC and FIPS 207 move forward.
- We can repeat the sizing review when a library, protocol draft or standard changes the byte lengths or key format.
- Continuous testing of HQC paths can be added to a retainer so size regressions are caught before they reach production.

