← Back to section · Hardware & Chips
Embedded Systems and Smart Cards: Where PQC Is Hardest to Fit
Kilobytes of memory, slow CPUs, low-speed interfaces and firmware that never changes for a decade—the resource profile of embedded devices and smart cards is nothing like a server's, and PQC faces a different set of constraints there.
When people discuss the hardware impact of PQC, the default picture is a data-center server. The genuinely hard part is at the other end of the spectrum: industrial controllers, automotive units, smart meters, access cards and the secure chips inside bank cards. These devices run at tens to hundreds of megahertz, count RAM in kilobytes, may never update firmware in a decade, and often have no one maintaining them on site. Squeezing algorithms designed with servers in mind into bodies like these reverses the order of constraints entirely.
Memory and storage bind before compute does
An important body of work in recent years, from academia and the open-source community, has ported the standard algorithms to mainstream microcontrollers such as the Cortex-M4 and published evaluations (projects such as pqm4). The verdict is encouraging with conditions: ML-KEM runs on this class of platform at tens to hundreds of milliseconds per operation—ample for low-frequency events such as boot-time negotiation and periodic renegotiation—but its working set claims RAM and stack on the order of several to tens of kilobytes. On low-end chips with only tens of kilobytes of RAM in total, that can be most of the household budget. Intermediate polynomials of lattice arithmetic, NTT workspaces and sampling buffers all compete with the device’s other functions for memory.
Signatures are tighter still. ML-DSA’s intermediate state is larger than ML-KEM’s, demanding careful memory reuse and staged computation to fit small devices; key and certificate storage also gets pricier—public keys and chains of a few kilobytes are nothing to devices with megabytes of flash, but a real burden to secure elements whose EEPROM is counted in kilobytes. At this layer, algorithm selection is first a memory problem and only then a speed problem.
Beyond memory sits code size. A lattice implementation—NTT twiddle-factor tables, sampling logic, polynomial arithmetic libraries—runs from several to tens of kilobytes, and must share the chip’s flash or mask ROM with application logic. Firmware space in secure chips is always precious; every kilobyte the algorithm library gains is a kilobyte less for payment or identity applets. Worse, bulky constant tables such as twiddle factors occupy non-volatile space that could otherwise hold keys. Embedded ports therefore routinely apply a “slimming trio”: generate twiddle factors on the fly instead of storing them, tier code and constant tables across memory types, and recompute intermediates to trade time for space. Every trade re-balances the triangle of speed, memory and code size—a completely different optimization philosophy from the server world’s “space is plentiful, chase speed”.
Interface bandwidth: the smart card’s invisible wall
Smart cards face a wall that does not exist in the server world: the interface. Contact cards speak over the low-rate ISO 7816 interface by default, and contactless cards over NFC have limited air rates too. An ECDSA signature is a few dozen bytes and crosses instantly; an ML-DSA signature is about 3.3 KB, and SLH-DSA signatures run from roughly 8 KB to nearly 50 KB depending on the parameter set—over a low-speed interface, transfer alone takes seconds. Asking a user to hold a card on a reader for several seconds is a dual accident of experience and throughput in payment and access-control scenarios. Algorithms must therefore be tiered by device: servers and phones can go fully PQC, while the card side may long remain in a hybrid architecture—“the card does symmetric operations and classical signatures; PQC happens at the terminal or gateway”.
Energy and time: a double budget
Embedded devices keep another ledger servers do not: energy. Contactless smart cards have no battery; they harvest power from the reader’s RF field, with a budget of only milliwatts that fluctuates with distance and orientation—a computation that runs too long can brown out mid-operation, so transactions must be designed to be interruptible and rollback-safe. Under such a budget, the metric for an algorithm is not “operations per second” but “joules per operation, and how high the peak current is”. Powered embedded devices are constrained too: sensor nodes meant to run for years on a coin cell account for every wake-up’s energy, and each extra NTT round is a little less sleep. Porting PQC to these platforms changes the objective function entirely versus servers: peak memory, total energy and peak current can all outrank speed.
Security countermeasures also cost more on small devices. What servers take for granted—constant-time code, masking, randomized execution order—spends precious cycles and entropy budgets on embedded targets. Fault-injection protection (against laser and voltage glitching) is a required course for payment and ID chips, and PQC algorithms, with more steps and larger intermediate states, present a wider attack surface than classical algorithms, so protection must be designed in from the algorithm layer. None of these costs appear in algorithm papers’ performance tables, yet they decide whether a product passes certification and reaches production.
Certification and lifecycle: the slow variables set the tempo
Embedded and card-class devices have two more slow variables. One is certification: payment cards, identity documents and automotive chips all undergo industry certification with cycles measured in years, and an algorithm change usually means re-submission—vendor and issuer motion naturally lags standard publication. The other is non-updatability: a large share of deployed devices have no secure remote firmware-update channel, so an algorithm burned in at manufacture accompanies the device for life. Industrial equipment and infrastructure serve for a long time—a meter installed today may still be spinning in 2040.
Transition strategy: tier, hybridize, offload
The realistic migration path is therefore tiered. Layers with ample compute and update capability—cloud, gateways, phones, PCs—migrate first. Constrained terminals buy time with hybrid modes (classical and PQC in parallel, secure if either holds). Cards and chips that simply cannot fit PQC delegate quantum-resistant negotiation to their gateway or terminal, while the card keeps doing what it is good at: symmetric operations and root-of-identity work. Meanwhile, newly procured devices should have “memory and storage headroom, securely updatable firmware, algorithm agility” written into tender requirements—today’s procurement checklist decides how hard migration will be in ten years. The embedded world’s PQC story will not be a single flag day, but a long-tail engineering effort unfolding device generation by generation.
Tags: Embedded systemsSmart cardsResource constraints