# PQC on Smart Cards: ROM, RAM, and Cycle Budgets

**Source**: https://quantumsequrity.com/blog/pqc-smartcards-constraints
**Category**: Hardware & Embedded

---

[← Back to Blog](../../blog) Hardware & Embedded

# PQC on Smart Cards: ROM, RAM, and Cycle Budgets

12 min read

Smart cards are everywhere. Your bank card with the EMV chip, your passport with the NFC chip inside, your government identity card, your transit card, and the SIM card in your phone. Smart cards are essentially miniature secure computers, with carefully limited resources and very specific security requirements. They have to perform cryptographic operations on demand, defend against physical attacks, and run for years on whatever power the reader provides.

Now post-quantum cryptography arrives, and the smart card industry has to figure out how to fit ML-KEM, ML-DSA, or Falcon on a chip with 200 kilobytes of code space and 8 kilobytes of RAM. The constraints are tight, the security requirements are absolute, and the certification processes (Common Criteria, FIPS 140) are slow and expensive.

This article walks through what smart cards actually look like inside, what cryptographic operations they need to perform, and how PQC algorithms map onto their constraints. The picture is mixed: some PQC schemes fit, others do not, and the migration timeline is being shaped by certification cycles rather than technical readiness alone.

## What a Smart Card Is

A modern smart card chip is a small system-on-chip with:

- A 16-bit or 32-bit CPU (typically ARM SecurCore SC100/SC300 or proprietary equivalents)
- 100-500 kilobytes of ROM (mask ROM containing the operating system and applets)
- 100-500 kilobytes of EEPROM or flash (writable storage for keys, applets, data)
- 4-16 kilobytes of RAM (for working memory during operations)
- Hardware accelerators for AES, SHA-2, and (often) RSA/ECC arithmetic
- A true random number generator
- Tamper-detection circuitry
- An NFC or contact interface

The chip is designed for security first, performance second. CPU clock speeds are typically 30-50 MHz under contact and may drop to under 10 MHz under NFC, depending on the field strength.

The application stack on a Java Card is the most common platform. Java Card applets are written in a restricted subset of Java, compiled to a card-specific bytecode, and loaded into the card's flash. Native applets are also possible on some platforms.

## Why Smart Card Resources Are So Tight

Two reasons drive the resource constraints. First, smart card chips are small for security: less area means fewer attack surfaces, less complexity in the side-channel hardening, and lower power consumption (which matters when running off NFC field power). A larger chip with more RAM would be easier to attack via probing or fault injection.

Second, the unit cost matters. Smart cards ship in billions of units per year (every credit card, every SIM, every passport). At those volumes, even small per-unit cost differences add up. A chip with 64 KB of RAM might cost a few cents more per unit than a chip with 8 KB of RAM, which translates to millions of dollars in additional cost across a national rollout.

So smart card resources stay tight, and PQC has to fit within that.

## ML-KEM on Smart Cards

ML-KEM-512 (the smallest parameter set, NIST security level 1) has a stack memory requirement of about 3 KB on a Cortex-M4-class CPU. On a smart card with 8 KB of total RAM, allocating 3 KB to a single crypto operation leaves 5 KB for everything else (Java Card runtime, applet state, communication buffers). It is tight but feasible.

ML-KEM ciphertexts are 768 bytes and public keys are 800 bytes for the 512 parameter set. These fit in the standard EMV or PKI smart card object size limits with some room to spare. ML-KEM-768 has 1088-byte ciphertexts and 1184-byte public keys, which is bigger but still manageable.

The runtime on a 32 MHz smart card CPU is roughly 30-50 ms per ML-KEM-512 operation. That is acceptable for occasional operations like authenticating a session or unlocking a key, but slow for high-throughput workflows.

The major issue is ROM space. A complete ML-KEM-512 implementation including hash functions, NTT tables, and the various polynomial operations takes roughly 20-30 KB of ROM. On a smart card with 200 KB of ROM, this leaves about 170 KB for the operating system, the Java Card runtime, and other applets. Comfortable.

For background on the algorithm, see our [ML-KEM explained](../../blog/ml-kem-explained) article.

## ML-DSA on Smart Cards

ML-DSA-44 has a stack requirement of about 10 KB. On a typical smart card with 8 KB of RAM, this does not fit. Even with aggressive optimization, the working set of an ML-DSA-44 signing operation exceeds typical smart card RAM.

This means ML-DSA is mostly out of reach for current generation smart cards. The next generation (with 16-32 KB of RAM) can fit ML-DSA-44 with some squeezing.

The signature size for ML-DSA-44 is 2420 bytes. This is workable but bigger than ECDSA's 64-71 bytes. Smart card communication interfaces (ISO 7816 contact, ISO 14443 NFC) have data rate limits that make sending 2420 bytes notably slower than sending 64 bytes. NFC at 424 kbps takes about 50 ms to transmit 2420 bytes; ECDSA's 64 bytes takes 1.5 ms. So PQC signatures change the user experience of contactless payment or identity verification, adding latency.

ML-DSA-65 (security level 3) has even larger requirements: 14 KB stack, 3309-byte signatures. This is hard to fit in current smart cards without more RAM.

For verification, the picture is similar to signing: 10 KB stack for ML-DSA-44 verify. Whether the smart card needs to verify at all depends on the protocol. For typical PKI workflows (the smart card signs, the verifier is somewhere else), the smart card never verifies, so the verify-side memory is not a card concern.

For more on signature scheme trade-offs, see our [ML-DSA versus SLH-DSA](../../blog/mldsa-vs-slhdsa) article.

## Falcon (FN-DSA) on Smart Cards

Falcon (FN-DSA, the NIST PQC signature scheme based on NTRU lattices and Gaussian sampling) has smaller signatures than ML-DSA. Falcon-512 signatures are about 666 bytes, much smaller than ML-DSA-44's 2420 bytes. Public keys are about 897 bytes.

The smaller signature size makes Falcon attractive for smart cards, where the communication latency matters. A 666-byte signature transmits in about 12 ms over NFC versus 50 ms for ML-DSA-44.

The catch is that Falcon's signing requires Gaussian sampling, which uses floating-point arithmetic. Smart card CPUs do not have FPUs. Floating-point emulation is slow and prone to side-channel issues if not carefully implemented. Recent research has produced integer-arithmetic Gaussian samplers that work on FPU-less platforms, but the implementations are complex and memory-hungry.

Falcon-512 verification is much simpler than signing and works fine on smart cards. So smart cards that need to verify Falcon signatures (issuer-issued certificates, for example) can do that. Smart cards that need to sign with Falcon are harder.

For these reasons, Falcon is being considered as the smart card signature scheme of choice for some applications, but only for verification. Signing is more likely to use ML-DSA on next-generation cards with more RAM.

## SLH-DSA on Smart Cards

SLH-DSA (FIPS 205, hash-based) has a stack requirement of about 7 KB, which fits in smart card RAM. The signature size, however, is 7856 bytes for SLH-DSA-128s, which is enormous. Transmitting that over NFC takes about 150 ms.

The bigger issue is signing time. SLH-DSA-128s signing on a 30 MHz smart card CPU takes minutes. For a card-present transaction at a payment terminal, where the user is waiting, this is unacceptable. SLH-DSA-128f (the fast variant) is faster but still tens of seconds, with much larger signatures (17,088 bytes).

So SLH-DSA is essentially not viable for smart card runtime signing. It is acceptable for card-side verification of pre-computed signatures (firmware updates issued by the card vendor, for example), but not for cards that need to sign on demand.

## Common Criteria and PQC

Smart cards used for high-security applications (banking, identity, government) are certified under Common Criteria, typically at evaluation assurance level 4+ (EAL4+) or higher. The certification process takes 18-30 months and costs millions of dollars. It includes vulnerability assessments, side-channel analysis, fault-injection testing, and review of the cryptographic implementations.

PQC certification is starting to be addressed by the smart card industry. The key challenge is that certification is per-product, not per-algorithm. Adding PQC to an existing certified product requires re-certification or supplementary certification, which is slow.

Several smart card vendors have announced PQC roadmaps. NXP, Infineon, Idemia, Thales, and others have published statements about adding PQC to their next generations of smart card chips. Production silicon with PQC support is expected in 2026-2028, with full Common Criteria certification following in 2027-2030.

For more on the broader certification landscape, see our [NIST FIPS guide](../../blog/nist-fips-guide).

## Side-Channel Hardening

Smart cards are physically accessible to attackers. An attacker can hold the card under a microscope, attach probes, or apply laser pulses to specific transistors. The threat model includes:

- **Differential power analysis**: measuring power consumption during many operations to recover keys.
- **Electromagnetic emanation analysis**: measuring EM emanations rather than direct power.
- **Fault injection**: voltage glitches, clock glitches, laser pulses to induce computation errors that leak information.
- **Optical probing**: imaging the chip to identify and probe specific transistors.

PQC implementations on smart cards must be hardened against all of these. The standard techniques are masking (split secret values into multiple shares), hiding (balanced power consumption regardless of data), and active fault detection (redundant computations with majority voting).

Masked ML-KEM implementations have been published in research literature. Masked ML-DSA is harder because rejection sampling complicates the masking strategy. Smart card vendors are actively working on this; expect commercial implementations to lag research by 2-3 years.

## NFC Power Constraints

NFC-powered cards run on the field power from the reader. Field power is limited (a few hundred milliwatts at most), and as the card draws power, the field weakens. If the card draws too much power, the field collapses and the operation fails.

Lattice-based PQC operations are somewhat more power-hungry than ECC, mostly because of the polynomial arithmetic. On a 30 MHz smart card running ML-KEM-512 encapsulate, the power consumption peaks at perhaps 20-30 mW, sustained for the duration of the operation (tens of milliseconds). A weak NFC reader might struggle to maintain field strength under this load.

In practice, this means PQC-enabled NFC cards need to be designed with power management in mind. Operations that draw significant power may need to pause briefly to let the field recover, or the card may need to opt out of certain crypto operations under low-field conditions.

## What Migration Looks Like

For smart cards, PQC migration is a multi-step process spanning years.

**Phase 1 (2025-2027)**: Card-side PQC verification. New cards can verify PQC signatures (firmware updates, issuer certificates) but still sign with ECC. Card-issuer infrastructure begins issuing PQC-signed objects.

**Phase 2 (2027-2030)**: Card-side PQC signing. Next-generation cards with more RAM (16-32 KB) sign with ML-DSA-44 or Falcon-512. The signing key on the card is post-quantum from the start.

**Phase 3 (2030+)**: Hybrid PQC plus ECC. Cards do both ECC and PQC signatures during transition. Reader infrastructure supports both. Eventually ECC is phased out.

This is a long timeline, driven by certification cycles, fielded card lifetimes (often 3-5 years), and the slow pace of the issuer infrastructure (banks, governments, telcos).

For the broader migration timeline context, see our [harvest now decrypt later](../../blog/harvest-now-decrypt-later) article.

## What This Means for QNSQY Users

QNSQY does not run on smart cards. It runs on x86-64 computers with Linux or Windows. But the algorithms it uses (ML-KEM and ML-DSA, with X25519 and Ed25519 in its hybrid modes) are the same algorithms that smart cards will eventually adopt.

QNSQY files are decrypted with QNSQY, so a smart card cannot decrypt them on its own. Data that a smart-card-equipped device must decrypt needs a format and a key store that the device supports.

For background on hybrid encryption, see our [hybrid encryption](../../blog/hybrid-encryption) explainer.

## FAQ

**Will my bank card support PQC soon?**
Maybe, depending on the bank and country. Several payment networks are working on PQC-enabled card products. The first wave of certified PQC payment cards is expected in 2027-2029. Existing cards (which have lifetimes of 3-5 years) will not be retroactively upgraded.

**Can my SIM card do PQC?**
Most current SIM cards cannot. Next-generation eSIM and embedded UICC products will probably add PQC over the coming years. The cellular industry (3GPP) has discussed PQC roadmaps, with expected deployment in 5G and 6G systems.

**What about my passport's NFC chip?**
e-Passports use ECC and RSA today. Migration to PQC will happen alongside the wider government-issued identity migration, which is slow. Expect new e-passport specifications including PQC over the coming years, with deployment following.

**Can I use a smart card with QNSQY?**
No. QNSQY does not integrate with PIV or PKCS#11 smart cards: its private keys are stored in passphrase-protected files readable only by their owner.

**Why are smart cards lagging on PQC?**
Tight resources (RAM, ROM, power), slow certification cycles, large fielded inventory, and conservative engineering culture. Smart cards prioritize security through stability; rushed deployments are unacceptable.

## Sources

1. NIST FIPS 203 (ML-KEM): https://csrc.nist.gov/pubs/fips/203/final
2. NIST FIPS 204 (ML-DSA): https://csrc.nist.gov/pubs/fips/204/final
3. NIST FIPS 205 (SLH-DSA): https://csrc.nist.gov/pubs/fips/205/final
4. NIST Cryptographic Module Validation Program: https://csrc.nist.gov/projects/cryptographic-module-validation-program
5. ARM SecurCore Documentation: https://developer.arm.com/Processors
6. ISO/IEC 7816 (Integrated circuit cards): https://www.iso.org/standard/77180.html

## Related Articles

- [What is Post-Quantum Cryptography](../../blog/what-is-post-quantum-cryptography)
- [ML-KEM Explained](../../blog/ml-kem-explained)
- [ML-DSA vs SLH-DSA](../../blog/mldsa-vs-slhdsa)
- [NIST FIPS Guide](../../blog/nist-fips-guide)
- [Hybrid Encryption](../../blog/hybrid-encryption)

---

### Protect Your Data Before Q-Day Arrives

QNSQY's NIST-standardized post-quantum encryption protects files against both current and quantum-era threats.

[Try QNSQY](../../pricing)
