Skip to content

Post-quantum cryptography and hybrids ​

Public-key cryptography in use today (RSA, elliptic-curve Diffie-Hellman, ECDSA, EdDSA) rests on problems that a large enough quantum computer could solve. No such computer exists yet. Post-quantum algorithms rest on problems for which no efficient quantum attack is known, and they run on ordinary computers.

Why now ​

  • Recorded traffic. Data encrypted with classical key exchange can be recorded today and decrypted once such a computer exists ("harvest now, decrypt later"). Anything that must stay confidential for years is already exposed.
  • Signatures last. Firmware, documents and certificates signed today must still be trusted years from now, and the systems that check them take years to change.
  • Dates are set. NIST's transition guidance (NIST IR 8547) deprecates quantum-vulnerable public-key algorithms at the 112-bit security level after 2030 and disallows quantum-vulnerable public-key algorithms after 2035. Other governments publish their own dates; the migration guides point to them.

The NIST standards ​

NIST published three post-quantum standards in August 2024:

StandardAlgorithmWhat it doesParameter sets in Aegis
FIPS 203ML-KEMKey encapsulation: two parties establish a shared secretml-kem-512, ml-kem-768, ml-kem-1024
FIPS 204ML-DSADigital signatures, from latticesml-dsa-44, ml-dsa-65, ml-dsa-87
FIPS 205SLH-DSADigital signatures, from hash functions onlyTwelve sets, such as slh-dsa-sha2-128s and slh-dsa-shake-256s

The numbers name the security category: ml-kem-768 and ml-dsa-65 are the usual general-purpose choice; ml-kem-1024 and ml-dsa-87 the highest category, which the US CNSA 2.0 suite requires. SLH-DSA's security rests only on its hash function, which makes it a conservative choice for long-lived signatures, at the cost of much larger signatures.

Sizes change the engineering. From the standards:

AlgorithmPublic keySignature or ciphertext
ML-DSA-651,952 bytes3,309-byte signature
ML-DSA-872,592 bytes4,627-byte signature
SLH-DSA-SHA2-128s32 bytes7,856-byte signature
ML-KEM-7681,184 bytes1,088-byte ciphertext, 32-byte shared secret
ECDSA P-256 (classical, for comparison)33 or 65 bytes64 to 72-byte signature

Hybrids ​

A hybrid pairs a post-quantum algorithm with a classical one, so the result holds as long as either holds. It protects against a flaw found later in the newer algorithm, and it is what many protocols and regulators ask for during the transition. Some rules require hybrids (BSI, ANSSI), others end in pure post-quantum (CNSA 2.0); in Aegis that choice belongs to the policy pack, not to the product.

Aegis builds hybrids only from published constructions:

  • Key establishment for TLS 1.3: x25519-ml-kem-768 (X25519MLKEM768), p256-ml-kem-768 (SecP256r1MLKEM768) and p384-ml-kem-1024 (SecP384r1MLKEM1024), the hybrid groups the IETF standardised for TLS 1.3.
  • Signatures: composite ML-DSA, ML-DSA paired with RSA, ECDSA or EdDSA in one signature (16 sets, Aegis Core).
  • Combiners for key material from several sources (ETSI TS 103 744), and HPKE (RFC 9180).
  • Drafts that are not standards yet, such as X-Wing and composite ML-KEM, run only in a laboratory deployment and are labelled.

qblackbit also publishes named hybrid profiles, one per job and level, each with its specification and test vectors: see qblackbit hybrid profiles.

KEMs are not encryption ​

A KEM gives you a shared secret and a ciphertext, not encrypted data. To encrypt, you derive a key from the shared secret with a key-derivation function and use it with an authenticated cipher such as AES-256-GCM; or you use a format that does all of it, such as HPKE or CMS. Two points matter when you build it yourself:

  • The TLS hybrid groups lean on TLS. x25519-ml-kem-768 and its siblings concatenate the two shared secrets, and TLS binds them through its handshake transcript. The Aegis catalogue notes that they are meant for TLS-shaped protocols. Outside TLS, derive your key with HKDF over the shared secret with the ciphertext and the recipient's public key in the info, as HPKE's KEMs do, or use ML-KEM on its own (ml-kem-768, ml-kem-1024), which is a complete KEM.
  • Prefer a standard format. Aegis Core writes CMS AuthEnvelopedData to ML-KEM recipients (POST /v1/encoding/cms/encrypt) and self-describing envelopes (POST /v1/keys/{name}/encrypt) that record the algorithm and specification revision, so the data can move again later.

Where Aegis fits ​

Aegis gives you the keys and the operations, with the algorithm and revision recorded in every output, policy packs that say what is allowed, and an audit trail. Protocol settings that belong to other software (a web server's TLS groups, OpenSSH's key exchange) change in that software: the guides say which.

Next: Algorithms and policy packs.