Key Encapsulation
HQC
Hamming Quasi-Cyclic Key Encapsulation
Mechanism
How it works
Parameter Sets
3 variants shipped
Each variant trades security category against key, ciphertext, or signature size. QNSI exposes all variants via the @heossihq/liboqs-native binding; tenant crypto-policy determines which are allowed.
| Variant | NIST Level | Public Key | Secret Key | Ciphertext | Note |
|---|---|---|---|---|---|
| HQC-128 / HQC-1 | L1 | 2,241 B | 2,321 B | 4,433 B | |
| HQC-192 / HQC-3 | L3 | 4,514 B | 4,602 B | 8,978 B | |
| HQC-256 / HQC-5 | L5 | 7,237 B | 7,333 B | 14,421 B |
NIST ACVP
Conformance evidence
QNSI runs the official NIST ACVP test vectors against every shipped algorithm. Live evidence + SHA-3-256 tamper digest at /verify/conformance.
Use Cases
When to use it
- Explicit code-based KEM diversity where a backup to ML-KEM is required
- Migration and interoperability evaluation ahead of the future HQC standard
Trade-offs
What you give up, what you get
- Not FIPS-final today - excluded from government finalized-only policy tiers
- Larger public keys and ciphertexts than ML-KEM
FAQ
HQC - frequently asked questions
Concise, source-of-truth answers to the questions buyers and engineers ask most about this algorithm.
What is HQC?
HQC (Hamming Quasi-Cyclic Key Encapsulation) is a code based post-quantum key encapsulation mechanism. It is designed to resist attacks from both classical and quantum computers, and QNSI ships 3 of its parameter sets. It is also known as HQC-128, HQC-192, HQC-256, HQC-1, HQC-3, HQC-5.
Is HQC NIST-standardized?
HQC has been selected by NIST for standardization; its FIPS standard (draft) is not yet finalized. QNSI ships it today and tracks the draft, so you can adopt it now and inherit the final standard once NIST publishes it.
What is HQC used for?
On QNSI, HQC is used for Explicit code-based KEM diversity where a backup to ML-KEM is required; Migration and interoperability evaluation ahead of the future HQC standard. It is available from the default crypto-policy tier upward via the liboqs provider.
References