pqm4 is a benchmarking and implementation framework for post-quantum cryptography (PQC) on Arm Cortex-M4 microcontrollers. pqm4 provides optimized implementations of NIST-standardized algorithms and standardized benchmarks for cycle counts, stack usage, and code size. It also provides a test harness for validating implementations against known test vectors.
pqm4 originated from the PQCRYPTO project and has become the standard platform for evaluating PQC on constrained embedded hardware.
Classical public-key schemes such as RSA and elliptic curve cryptography will become insecure after sufficiently powerful quantum computers exist. Embedded devices are particularly exposed because they often remain deployed for 10 to 20 years, which is longer than the expected timeline for quantum threats to mature.
NIST has standardized the following core PQC primitives to replace classical schemes:
These algorithms demand more computation, memory, and code size than their classical counterparts, making evaluating them on real Cortex-M4 hardware non-trivial. In this Learning Path, you’ll focus on KEM implementations.
pqm4 is designed around four practical goals that make it useful for embedded PQC evaluation:
pqm4 includes schemes that are:
You’ve now learned what pqm4 is, why post-quantum cryptography matters for long-lived embedded devices, and how pqm4 helps evaluate PQC implementations on Arm Cortex-M4 microcontrollers. You also reviewed the main NIST-standardized algorithms and the types of schemes included in the pqm4 framework.
Next, you’ll set up the development environment needed to build and run pqm4 on your Cortex-M4 board or in QEMU.