← Back to section · Post-Quantum Migration
Interoperability Pitfalls in Replacement: Sizes, Middleboxes and Silent Fallback
Most incidents in post-quantum replacement are not algorithm failures but size failures: fields that no longer fit, middleboxes that do not recognise the handshake, and silent fallback to classical algorithms after a failed negotiation. This article walks the pitfalls layer by layer, with the test that exposes each one.
A saying circulates in replacement programmes: the algorithm is never wrong; the sizes are. Post-quantum primitives are far larger than classical ones — an ML-KEM-768 public key is more than thirty times an X25519 public key, and an ML-DSA signature is roughly fifty times an ECDSA signature. Those bytes must ultimately flow through protocol fields, database columns, hardware buffers and network middleboxes designed for classical sizes. Nearly every interoperability pitfall comes from some link in that chain still assuming the old sizes. This article walks them from the inside out; together they form the checklist compatibility testing should cover item by item.
Layer one: data structures and storage
The first things to break are fixed-length places: a VARCHAR(256) column for public keys, fixed-width binary fields for key material, key-slot specifications in HSMs and smart cards, length validation on certificate fields in logging and audit systems, and business code that treats a signature as a short string. A subtler class is fixed buffers and single-message assumptions inside protocol implementations — some TLS stacks once assumed a ClientHello fits in one record, and some embedded stacks compile their handshake buffers at classical sizes. The detection method is not reading documentation; it is running the real maximum parameter sets (ML-KEM-1024, ML-DSA-87, the large SLH-DSA sets) through the whole chain and letting every truncation, error and silent drop surface in the test environment rather than in production.
Layer two: networks and middleboxes
Once handshakes grow, they must traverse the layered middleboxes of enterprise networks: firewalls, intrusion detection, load balancers, TLS-inspection proxies, carrier NAT and DPI equipment. A substantial share of them tolerate “unfamiliar extensions”, “oversized first flights” and “ClientHello split across TCP segments” poorly, and the failure modes include connection resets, handshake timeouts and intermittent failures — the last being the hardest to chase, because the lab network is clean and only the production path has these boxes. The TLS ecosystem’s historical answer was GREASE, vaccinating extension mechanisms in advance; the migration-era equivalent is to baseline hybrid-handshake success rates on the real network path before launch, then monitor success rates segmented by client type and network origin after launch, checking middleboxes before checking yourself whenever a segment drops.
Enlarged certificate chains have a dedicated pitfall of their own: handshakes carried over QUIC and UDP are bound by anti-amplification limits — the server may only send a bounded amount of data before validating the client’s address, and a larger chain can force an extra round trip or stall the handshake outright. On the TCP side, what matters is the initial congestion window and reassembly behaviour for fragmented certificates. None of this is cryptography; it is transmission budgeting, and the total chain size must be counted when parameter sets are chosen.
Layer three: negotiation semantics and silent fallback
The most dangerous pitfall is not size but semantics. Three typical forms: first, silent fallback — after a hybrid negotiation fails, the implementation automatically reverts to classical-only and logs nothing, so an adversary can strip the post-quantum protection merely by interfering with the handshake while every dashboard stays green. Second, OR-semantics composite verification — a composite signature accepted when only the classical half verifies leaves a permanent back door for forgers: once the quantum era arrives, forging the classical half suffices. Third, version and parameter mismatch — both sides “support ML-KEM”, but one enables only the 512 set and the other only 1024; the negotiation intersection is empty and both fall back. The defence is to govern negotiation outcomes as first-class citizens: log the final algorithm combination of every negotiation and alert on abnormal distributions; give critical links a policy-level “post-quantum required” switch that disconnects rather than downgrades; and include adversarial test cases that deliberately sabotage the hybrid negotiation in the interoperability matrix.
Layer four: traps inside protocol fields and negotiation lists
A further class of traps hides inside protocol detail fields, invisible until parameters change. Signature-algorithm lists: the TLS signature_algorithms extension, SSH algorithm negotiation lists and IKE transform payloads each carry their own length and entry-count implementation limits; post-quantum algorithm identifiers are longer and parameter sets more numerous, so older implementations may truncate the tail of a list, leaving two sides with a common supported set that negotiation never finds. Certificate fields are similar: some validation libraries impose default caps on single-certificate size, chain depth and extension count, so an ML-DSA certificate sits one layer of defaults away from “parseable” versus “policy-accepted”. Message-bound protocols are tighter still: key and signature records carried in DNS are constrained by UDP message sizes and TCP fallback behaviour, a constraint set that still governs post-quantum DNSSEC signing; CoAP/DTLS on low-power networks is bounded by fragment-reassembly buffers. There is no shortcut to finding these traps: for each protocol, list every field that carries key material in the test matrix, drive the maximum parameter sets through each one, and register every implementation’s default caps in a catalogue — upgrading the cryptographic library does not raise these caps automatically; they are numbers to be changed, item by item, in configuration and code.
Layer five: performance incompatibility
The last class of trap throws no error and drops no packet; it just gets slower — slow enough that the business demands a rollback. ML-DSA verification is fast, but once the whole certificate chain grows, the extra transmission and parsing time in handshakes is amplified on mobile networks and cross-border links; SLH-DSA signature generation on low-end devices can run in seconds; and some HSMs and smart cards have signing throughput engineered for classical algorithms, so post-quantum parameter sets cannot reach the original signatures-per-second and issuance peaks queue up. Performance incompatibility is insidious because it passes functional testing and fails capacity testing. The countermeasure is to make performance baselines a hard acceptance criterion for replacement: record handshake-latency distributions and signing throughput under the classical configuration before switching, re-measure under the same traffic model after switching, and for parameter sets that blow the budget, either step down a tier or scale the carrying side first. Doing the arithmetic before switching is always cheaper than being forced into a rollback by the business afterwards.
Closing: the compatibility test checklist
Compress the three layers into a test list: end-to-end pass-through tests with maximum parameter sets; handshake success-rate baselines and segmented monitoring on the real network path, including every middlebox; round-trip and amplification-limit tests for large certificate chains over UDP/QUIC; adversarial cases — a sabotaged hybrid negotiation must disconnect or alert, never silently downgrade; item-by-item confirmation of composite and dual-signing verification semantics (AND or OR, written into policy and proven by test); and per-class sampling of long-tail clients (old devices, old SDKs, partner systems). Whether a replacement succeeds rarely depends on which algorithm you chose; it depends on whether this checklist was run to the end.
Tags: InteroperabilityCompatibility TestingTLS MiddleboxesSize Budgets