← Back to section · Digital Security

The Size Engineering of Post-Quantum Keys: When Keys Grow by Two Orders of Magnitude

The actual byte counts of FIPS 203/204/205, a comparison with classical keys, and the knock-on effects of large keys on storage, certificate chains, protocol fields, and HSM firmware.

Published 22 November 2026 · 5 min read · PQ Frontier

The Size Engineering of Post-Quantum Keys: When Keys Grow by Two Orders of Magnitude
AI-generated site artwork
Video explainer · Key Management: The Full Lifecycle

Discussion of the post-quantum migration tends to focus on algorithm security, but the first wall that practising engineers hit is size. Classical asymmetric keys are measured in tens of bytes; post-quantum keys and signatures are measured in kilobytes, and SLH-DSA signatures in tens of kilobytes. These numbers are not abstract parameter tables — item by item, they turn into storage budgets, protocol fields, handshake latency, and firmware change tickets.

Putting the numbers on the table

Using the parameters of the published NIST standards: ML-KEM-512 has an 800-byte encapsulation key and a 768-byte ciphertext; ML-KEM-768 has a 1,184-byte public key and a 1,088-byte ciphertext; ML-KEM-1024 has a 1,568-byte public key and a 1,568-byte ciphertext. For comparison, an X25519 public key is 32 bytes, and an RSA-2048 public key and signature are about 256 bytes each. On the signature side: ML-DSA-44 has a 1,312-byte public key and a 2,420-byte signature; ML-DSA-65 a 1,952-byte public key and a 3,309-byte signature; ML-DSA-87 a 2,592-byte public key and a 4,627-byte signature. Hash-based SLH-DSA shows the opposite profile: public keys of only 32–64 bytes, but signatures between 7,856 and 49,856 bytes depending on the parameter set.

From a key-management perspective the private side matters too: the full encoding of an ML-KEM decapsulation key at the ML-KEM-768 parameter set is 2,400 bytes, and ML-DSA signing-key encodings also run to several kilobytes. A single key object in an HSM, a single record in a backup, a single export during a key ceremony is one to two orders of magnitude larger than it used to be.

Another dimension that is easily overlooked is the time taken to generate and import keys. Generating large key objects consumes more randomness and more big-integer and lattice arithmetic, and in bulk provisioning the difference multiplies: generating and injecting keys for a hundred thousand IoT devices, for example, turns a few dozen extra milliseconds per device into hours of additional provisioning delay. Import is similar — pushing several kilobytes of private-key material into an HSM over a network interface means the bandwidth, fragmentation protocol, and timeout settings of the import channel all need re-evaluation. None of these details appears in the algorithm standards, but every one of them shows up in the project schedule.

Where the knock-on effects land

First, certificates and chains. An X.509 certificate carrying an ML-DSA public key and signature grows by several kilobytes; a three-level chain of root, intermediate, and leaf easily adds more than ten kilobytes in total. TLS handshakes need extra TCP segments, and QUIC initial-packet limits, certificate-in-DNS schemes, and OCSP response sizes all get pushed towards their ceilings. Second, protocol fields: many existing protocols were designed assuming public keys and signatures are small objects, so field lengths, database column widths, log formats, and even QR-code capacity (used for sharded offline key backups) may not suffice. Third, constrained devices: the key slots of smart cards, secure elements, and embedded security chips were sized for classical keys and cannot hold multi-kilobyte private keys; if their firmware verification moves to SLH-DSA, the verification code and buffers must first be shown to accommodate signatures approaching 50 kilobytes. Fourth, the performance ledger: key generation, encapsulation, and decapsulation costs sit in a different class from classical algorithms, so KMS throughput planning must be re-benchmarked against the new algorithms rather than reusing the old capacity model.

The transition period: two key systems in parallel

Migration is not an overnight switch. For a substantial transition period, an organization runs classical and post-quantum key systems side by side: hybrid key exchange carries both sets of public keys and ciphertext material, dual-signature schemes make one piece of data carry two signatures, and the key store holds both kinds of object for the same business function. The key register therefore doubles in size, the rotation calendar has to schedule both systems, and HSM storage and throughput budgets must be planned for the pair running in parallel. The compatibility matrix is trickier still: which peers accept only classical algorithms, which already support post-quantum, which go hybrid — and every interoperability failure during migration may fall back to a purely classical mode, so whether fallback is recorded, and whether it is permitted at all, needs an explicit policy. The transition may last years, so size engineering is not a one-off capacity purchase but continuous capacity management for the whole period: every quarter, the question “does the existing boundary still hold everything?” has to be answered again.

What key management can do about it

Size engineering does not mean waiting for a smaller post-quantum algorithm — standardisation has converged, and these are the parameters. Key management can do four things. First, record size in the key register: for each key class, note the algorithm, parameter set, and typical object size, so capacity planning has a basis. Second, tier the storage: active keys in online HSMs, the archive layer on media and formats suited to large objects, and backup bandwidth and retention periods recomputed for the new volumes. Third, plan for the hybrid period: hybrid key exchange (for example X25519 combined with ML-KEM-768) carries both sets of material, so ciphertext and public-key fields must be sized for the sum. Fourth, build the compatibility inventory early: work through every field and protocol with a length limit — this is part of the inventory effort, and the sooner the list is complete, the more credible the migration schedule becomes.

It is worth stressing that bigger does not mean less secure, and size is not the deciding factor in selection: the ML-KEM and ML-DSA parameter sets correspond to NIST’s security categories, so selection should first fix the parameter set by security level and use case, and only then do the size adaptation. Reversing that order — lowering the security level to accommodate an old device that cannot hold large keys — is the worst bargain in migration engineering.

Tags: Post-QuantumML-KEMML-DSAKey Sizes