← Back to section · Standards & Specifications
Same Sizes, Different Bytes: What Actually Changed in Parameters and Encodings at Finalization
Lining up the submission and final size tables produces a false sense of security: public key, ciphertext, and signature lengths are nearly identical item for item, yet domain separation changes every actual byte. What really stayed fixed, which encoding rules moved, and why 'length compatible' is not 'format compatible'.
The most dangerous sentence in version comparison is “the sizes all line up, so it should be compatible”. Place the submission and final parameter tables side by side and the illusion is understandable: ML-KEM’s three public-key sizes (800 / 1184 / 1568 bytes), ciphertext sizes, and private-key sizes are unmoved; ML-DSA’s three signature sizes (2420 / 3309 / 4627 bytes) carry over exactly; and the retained SLH-DSA parameter sets keep the public-key and signature sizes of the submission’s simple variant. If interoperability were judged by length alone, the verdict would be “seamless” — and the reality is the opposite.
Why sizes did not change: finalization left the mathematical shape alone
Sizes are determined by parameters: lattice dimensions, the modulus, the polynomial ring, hash output lengths, tree heights, and chain lengths. During finalization NIST held a clear line — it would not revisit parameter shapes that had survived three rounds of cryptanalysis. Domain separation, contexts, and checks all act on how parameters are used, and none of them changes the length of any artifact. An ML-KEM-768 encapsulation key is 1184 bytes in both versions because it still encodes the same dimension of polynomials plus a 32-byte seed; an SLH-DSA-SHA2-128s signature is still on the order of 7856 bytes because the WOTS+ chains and FORS trees are the same size.
A welcome consequence: bandwidth and storage assessments made for the submissions remain valid after migration. The headroom protocol designers reserved for post-quantum sizes — for instance, estimates of TLS handshake growth — does not need to be redone.
Pinning the three size tables side by side gives the discussion below its anchor: ML-KEM’s three ciphertext sizes are 768, 1088, and 1568 bytes, with private (decapsulation) keys of 1632, 2400, and 3168 bytes; ML-DSA’s three public keys are 1312, 1952, and 2592 bytes, with signatures of 2420, 3309, and 4627 bytes. Not one of these figures was quietly enlarged or shrunk between submission and final. So if your system already reworked a protocol in the submission era because some field could not hold a 1568-byte ciphertext, the finals hold no new size surprises for you — the surprises are all in the byte content.
Why the bytes all changed: domain separation alters content
Lengths are fixed, but content differs from the first byte onward. Collecting the reasons from the previous articles:
- Key generation: ML-KEM and ML-DSA both hash parameter dimensions into the seed expansion, so the same seed expands into entirely different material across versions — every byte of public and private keys differs.
- Signed input: ML-DSA and SLH-DSA prefix the signed message with a domain separator and context, changing signature values wholesale; a verifier assembling the message representation under the other version’s rules will fail verification, necessarily.
- Explicit randomness: the internal algorithms’ explicit randomness inputs change how “same seed reproduces same signature/ciphertext” testing works, without changing artifact lengths.
One further, often overlooked corollary: because artifact lengths are unchanged, length-based sanity checks (such as protocols that use a length field as a rough validation) are completely insensitive to version misalignment. The misalignment never surfaces at the transport layer; it detonates only at the final cryptographic verification, in the least informative way possible — which is why version metadata must be read and compared before any length check runs.
The conclusion is unforgiving: there is no “partial compatibility” across versions. Use the wrong version at either end and the failure is total — and the error surfaces (verification failure, a handshake failing after decapsulation yields the wrong shared secret) never say “wrong version”; they present as ordinary cryptographic failures.
What actually changed at the encoding layer: validation rules and private-key form
The encoding layouts — which byte holds what — are essentially untouched. What changed is the validation rules. The finals turned checks the submissions left to implementer discretion into mandatory requirements: public-key coefficients must be less than the modulus, ciphertexts must pass re-encoding consistency checks, and signature and key lengths must match the parameter set exactly. These checks change no byte of any conformant artifact; they change how an implementation responds to malformed input — accept or reject. Such differences are invisible in normal operation and surface only in adversarial interoperability testing and validation.
One more encoding-layer topic worth recording is the storage form of private keys. The finals’ internal algorithms write private keys in expanded form, while also making clear that keys can be deterministically regenerated from a seed — giving standards footing to the “store only a 32/64-byte seed and expand on use” approach. Discussion of seed-form private keys in certificate and key formats (for example, their representation in PKCS#8) continues in venues such as the IETF. For inventory systems, which form is used must be recorded in the version metadata, because it affects backup, import/export, and cross-library migration at every step.
A concrete comparison scenario: same name, different object, inside a certificate chain
Put the above into one concrete scenario: an X.509 certificate chain. Suppose a CA issued a batch of test certificates with Dilithium2 during the experimental era, then switched to ML-DSA-44 for production issuance after finalization. By size, the two batches are nearly indistinguishable: public keys are 1312 bytes in both, signatures 2420 bytes in both, and certificate file sizes differ only at noise level. Yet a verifier that reaches for the wrong version’s algorithm entry will fail verification — necessarily — and the failure will say only “invalid signature”. The messier case is the intermediate state: if a system cross-wires Dilithium’s algorithm identifier with an ML-DSA implementation (a configuration error class that genuinely occurred during the migration period), the chain breaks silently at some level, and suspicion during debugging falls first on the certificates rather than on versions. This scenario distills the whole article: lengths are for capacity planning, not for judging compatibility; compatibility is decided solely by “which version of the text”.
Summary
The size table is the most misleading artifact in version comparison: it proves the parameter shapes did not change, not that the artifacts are compatible. Every real compatibility issue hides in byte content and validation rules. The right migration question is not “do the lengths match?” but “which version of the text generated our artifacts?” The next article closes this subcategory by looking at the versions still on the road: FN-DSA, HQC, and the signature on-ramp.
Tags: Parameter SetsEncodingsML-KEMML-DSA