← Back to section · Post-Quantum Migration

Legacy and Constrained-Device Compatibility: The Slowest Device Sets the Migration Boundary

Industrial terminals, smartcards, ageing gateways and embedded sensors cannot fit the size and compute of the new algorithms. Inventory the constrained fleet, tier the strategy, test on real firmware: a migration plan's feasibility is decided by the tail of the device list.

Published 22 November 2026 · 5 min read · PQ Frontier

Legacy and Constrained-Device Compatibility: The Slowest Device Sets the Migration Boundary
AI-generated site artwork
Video explainer · Compatibility Testing: Size, Performance, Interoperability

The migration boundary is set by the tail of the device list

Swapping algorithms on servers and in the cloud is a software problem, but every enterprise owns devices that are not: industrial terminals running firmware untouched for a decade, smartcards issued in the tens of thousands, ageing VPN gateways in the corner of the machine room, battery-powered sensors. Their common trait is resources locked by hardware: in RFC 7228 terminology, a typical constrained device has on the order of 10 KiB of RAM and 100 KiB of flash, while a single ML-KEM-768 public key is 1,184 bytes and key generation and decapsulation need working space and stack on the order of several KiB. However elegant the migration plan, if it cannot land on these devices it is an empty map. So the first step of constrained-environment compatibility work is to admit the boundary — and measure it precisely.

Inventory: find the tail first

The biggest risk with constrained devices is not knowing they exist. Combine three sources — the asset system, network traffic observation and on-site sampling — and register each device: model, firmware version, cryptographic capability (current algorithms and key sizes), interface form (network protocol, smartcard interface, serial), and upgrade channel (remote firmware update support, vendor still maintaining it). Flag two categories especially: devices with no upgrade channel — firmware fixed in ROM or vendor support ended; and holders of long-lived credentials — device certificates issued for ten years, root keys fused into chips. These can change neither their algorithms nor their trust roots.

Tiered handling: four strategies

After inventory, sort by capability and importance into four tiers, each with an explicit compatibility strategy:

  • Natively upgradeable: resources suffice, channel works. Bring into the normal migration cadence, but only after the full compatibility suite passes on real firmware of the same model (see below);
  • Gateway compensation: the device cannot change, but its traffic can transit a gateway. The gateway keeps classical protocols on the device side and adds post-quantum protection outside — note this protects the link only; the device’s local storage encryption and signature verification remain classical, a risk to be documented in writing;
  • Network isolation: devices that can neither change nor be compensated go into isolated segments with minimised exposure, reducing risk from “attackable” to “limited reachability”;
  • Replace at end of life: write them into procurement and retirement plans, schedule replacement backwards from remaining lifetime, and budget it as its own line in the migration plan.

What to test on real firmware

Constrained-device compatibility testing cannot substitute development boards for production firmware. Mandatory items:

  • Memory and stack: peak stack and heap usage of key generation, decapsulation and verification on the target firmware, compared against the device’s headroom; many embedded ports die of stack overflow rather than wrong results;
  • Interface frame sizes: a short smartcard APDU carries at most 255 bytes of payload, so post-quantum keys and signatures must be transferred in fragments — test the fragmentation protocol (chained APDUs) for completeness and interruption recovery; the same applies to serial links and LoRa-class radios, where the question is how long a large object takes to transfer in pieces and what happens when it breaks midway;
  • Latency and energy: one signature on a low-clock MCU can take hundreds of milliseconds, and for battery devices that converts into lifetime loss;
  • Randomness: entropy sources on ageing devices vary widely in quality, and key generation’s dependence on randomness does not shrink after the swap — entropy health checks belong on the mandatory list.

The upgrade channel itself must be tested

For the “natively upgradeable” tier there is one more frequently forgotten test object: the upgrade channel itself. Post-quantum firmware images are usually larger than classical versions — new algorithm implementations, larger key material and certificates all have to fit in flash. Mandatory checks: whether the device’s flash partitions hold the new image (dual-bank redundant update needs twice the space; a single-bank device that fails mid-update is bricked); whether signature verification of the update package works under the new algorithm (a chicken-and-egg point: old firmware trusts only classical signatures, so the first post-quantum firmware package must still be classically signed — post-quantum verification capability is installed by that very release); power-loss and interruption recovery — if power drops halfway through writing, the device must roll back to the old version or resume from the breakpoint, which is no remote possibility when a large image travels a slow link; and configuration migration after the update, including the coexistence period of old and new certificates. A device whose upgrade channel fails testing drops out of the “natively upgradeable” tier into “gateway compensation” or “replace at end of life” — its real capability is what the channel test measures, not what the chip datasheet claims.

Working with vendors

Half of the constrained-device problem lands on vendors, and how you communicate decides the efficiency. First, ask about concrete capability rather than positions: not “do you support post-quantum”, but “on this model at this firmware version, what is the peak stack usage of ML-KEM-768 decapsulation, and do you have measurements” — a vendor who can produce numbers has actually done the porting work. Second, write compatibility requirements into new procurement specifications: crypto agility (algorithms replaceable by firmware update), headroom in key-material storage, and interruption recovery in the update channel, as acceptance clauses rather than wish lists; the stock fleet cannot change, but the incoming fleet must not buy the same trouble back. Third, obtain written confirmation early for devices under discontinued maintenance; the letter is the basis for placing a device in the “replace at end of life” tier and the evidence for requesting replacement budget from management. Vendor communication output joins the disposition list too: one row per model, recording the vendor’s answer and its date, so the same question is not asked in different projects with different answers.

Conclusions land on the list, not in a report

The deliverable of this subfield is not a test report but a continuously maintained device disposition list: one row per device (class), with tier, strategy, verification status and replacement deadline complete. The overall migration schedule is, in essence, set by the slowest tier on that list — knowing it three years early is worth far more than finishing the server migration three years early.

Tags: Constrained DevicesEmbeddedSmartcardsFirmware