Embedded Tech 2026 8 min read

Preparing Microcontrollers for the Quantum Computing Era: A Practical Guide to PQC

A
Anjanay Sehgal Embedded Architect · 5+ Years Experience
20th NOV 2026
11:45 PM
Technoscripts

Introduction

Microcontrollers have become integral building blocks of connected devices in industrial automation, automotive electronics, space infrastructure and more. These devices gather highly confidential information, interact with cloud platforms and facilitate essential processes. Conventional security mechanisms could fail to secure devices through their operational lifespan as cybersecurity threats continue to evolve. Embedded engineers need to get acquainted with an emerging technology: Post-Quantum Cryptography (PQC).

Post-Quantum Cryptography refers to cryptographic algorithms designed to resist attacks from both traditional computers and future quantum computers. Sufficiently powerful quantum computers will be capable of solving the math problems that underpin traditional public-key algorithms such as RSA and Elliptic Curve Cryptography (ECC) far more efficiently. This is a red flag for embedded products which are expected to work for ten, fifteen or even twenty years.

For embedded engineers, preparing for quantum-resistant security does not mean waiting for quantum computers to become commercially available. It means looking at how new cryptographic algorithms work, how they impact resource-constrained hardware, and how they will fit into existing firmware architectures.

Why Traditional Cryptography Needs an Upgrade

The majority of connected embedded devices use cryptographic techniques for secure communication, firmware authentication and data protection. Algorithms like RSA, ECC and Diffie-Hellman have played a key role in securing digital communication for the past few decades.

However, quantum computing presents a different computational paradigm. Public-key schemes widely used today, such as RSA and ECC, could be broken by Shor's algorithm, a quantum algorithm. This raises a real concern: many devices store information now that could still be valuable years later.

One of the most serious threats to look out for today is called "harvest now, decrypt later." Attackers can collect encrypted information today and decrypt it later, once quantum computers are powerful enough. Industrial controllers, medical devices, automotive systems and connected infrastructure can contain information that needs long-term security.

PQC solves this problem by using public-key algorithms based on hard mathematical problems for which there are no efficient classical or quantum algorithms currently known. They run on conventional devices, such as microcontrollers, and do not rely on a quantum computer to function.

Understanding the Main Post-Quantum Algorithms

The National Institute of Standards and Technology (NIST) has standardized multiple post-quantum cryptographic algorithms to accelerate the transition to quantum-resilient security. The FIPS 203 standard defines ML-KEM, formerly known as CRYSTALS-Kyber, a key encapsulation mechanism (KEM).

ML-KEM enables two parties to establish a shared secret key over an insecure communication channel. Embedded devices can use it to establish sessions with gateways, servers or other connected devices. Digital signatures, meanwhile, enable devices to verify whether data was generated by an entity holding the private signing key that matches a trusted public key.

ML-DSA, formerly known as CRYSTALS-Dilithium, is a digital signature algorithm standardized under FIPS 204 that verifies the authenticity and integrity of firmware, software packages and digital messages. It allows a device to use signature verification to confirm that a firmware image was produced by an authorized manufacturer.

SLH-DSA, standardized under FIPS 205, is a stateless hash-based digital signature algorithm. Because its security relies only on hash functions, it offers another means of protection for applications where hash-based security is preferred. Engineers assessing candidate implementations for a particular microcontroller should take into account the varied computing and memory requirements of these algorithms.

Why Microcontroller Resources Matter

IoT microcontrollers are very different from powerful desktop computers and cloud servers; they run within tightly constrained Flash, SRAM, processing and power budgets. Consequently, adding a new cryptographic algorithm can affect virtually the entire firmware architecture.

Post-quantum algorithms generally use much larger keys, signatures or intermediate data structures than many classical cryptographic alternatives. This increases Flash usage, SRAM usage, execution time and communication overhead.

Even an embedded device that only runs a firmware signature verification routine must allocate enough memory for the signature, public key, hashing operations and verification process. Larger cryptographic messages can also lead to longer transmission times on a low-bandwidth wireless interface.

Engineers need to consider a number of factors, including code size, stack usage, execution cycles, energy consumption and communication overhead. Testing should be performed on the target hardware, not just with desktop benchmarks.

STM32G5 and Its Role in Post-Quantum Security

The STM32G5 series from STMicroelectronics is an example of advanced microcontrollers with embedded security technologies.

This family of microcontrollers is based on the Arm Cortex-M33 core with TrustZone security, cryptographic functions and hardware acceleration. The family operates at frequencies of up to 280 MHz and is designed for control-oriented applications.

Its security architecture includes hardware-based protection mechanisms, secure boot and support for post-quantum cryptographic implementation. ST also offers the STM32Trust ecosystem and cryptographic software packages that help developers add security features to embedded applications.

Specialised Applications: Industrial automation, motor control, robotics, power electronics and connected devices. These systems require accurate real-time performance as well as long-term firmware protection.

Remember the difference between hardware support and algorithm availability. A microcontroller supporting PQC doesn't necessarily mean that every algorithm runs entirely in hardware. Software libraries, cryptographic accelerators and device-specific implementations together provide the functionality you need.

Implementing PQC in an Embedded Project

An embedded engineer can start experimenting with post-quantum security by creating a small firmware authentication project. The first step is to understand how the existing boot process works: how the microcontroller starts firmware, where the application image lives and how the device currently verifies authentic software. Then choose a post-quantum signature algorithm that suits your tool ecosystem. Next, pick a cryptographic library, create a test firmware image and generate the digital signature for it. The bootloader should verify the signature before launching the application. If verification fails, the firmware will not run.

Developers then need to analyse the performance and memory impact. Record Flash usage, peak SRAM consumption, verification time and energy requirements, and test with multiple firmware sizes to see how the implementation performs in realistic usage patterns.

Secure key storage is essential: the private signing keys should stay within the manufacturer's existing secure development and production infrastructure. Devices typically only need the public verification key, not the private signing key. The final test is to evaluate failure conditions, including tampered firmware, invalid signatures, interrupted updates and attempts to roll back to vulnerable software.

Challenges Embedded Engineers Should Expect

One of the hardest challenges is balancing the need to secure the system with the need to preserve its real-time performance. Industrial controllers such as programmable logic controllers (PLCs) often have very tight timing constraints, and crypto operations can eat into critical control loops.

Memory consumption is a concern, especially for low-cost microcontrollers with severely limited SRAM and Flash resources. Engineers may have to shrink buffers, eliminate unnecessary memory allocations, and run verification during carefully controlled boot stages.

Interoperability matters too. A device may need to talk to gateways, mobile applications and cloud services that each use different crypto libraries. Security protocols must support compatible algorithms, with properly managed key exchange processes.

Crypto agility is critical as well: products should be designed so their cryptography can be upgraded as standards, vulnerabilities or regulatory requirements change.

Skills Embedded Developers Should Learn

Embedded engineers who plan to work with PQC will benefit from strong C programming, low-level architecture and memory management skills, as well as a solid understanding of how digital security works.

Hashing, encryption, digital signatures, public key infrastructure and secure boot are all concepts that must be internalized. Familiarity with STM32CubeIDE, STM32CubeProgrammer, linker scripts, bootloaders and cryptographic libraries also makes implementation much easier.

It also helps to read the NIST specifications and semiconductor documentation. This helps you turn theoretical security requirements into working firmware.

Conclusion

Post-quantum cryptography is becoming a critical consideration for embedded products that require long-term security. Microcontrollers will continue to operate in environments where firmware authenticity, device identity and confidential communications are important.

Microcontroller manufacturers are integrating these advanced security features into platforms such as the STM32G5, and engineers need to get ahead by evaluating these technologies under real-world hardware constraints.

PQC is much more than an additional cryptographic library added to an existing project. It marks a shift towards embedded systems designed to adapt to the security requirements of the future.