Benchmarking NIST-Standardised ML-KEM and ML-DSA on ARM Cortex-M0+: Latency, Rejection-Sampling Variance, and Memory on the RP2040
Benchmarks finalised FIPS 203 ML-KEM and FIPS 204 ML-DSA (PQClean reference C) on RP2040 Cortex-M0+, covering latency, rejection-sampling tail variance, and stack/flash.
Schemes: ML-KEM, ML-DSA, ECDH P-256, ECDSA P-256, RSA-2048, mbedTLS
Findings (quotes checked against the source text)
-
ML-DSA signing time is driven by FIPS 204 rejection sampling and is affine in the iteration count, so the mean divided by expected iterations overstates per-iteration cost.
Signing time is not proportional to the iteration count
-
Peak stack usage was measured with stack painting, and the paper reports replication agreement within 32 bytes on ML-KEM-512.
Peak stack agrees to within 32 B
-
The paper treats its figures as upper bounds for reference C and says optimised implementations move them down, never up.
Figures are upper bounds on
-
The authors say they make no security or cryptanalysis claim about ML-KEM or ML-DSA; the object of study is the platform.
We make no claim about the security,
Numbers (as extracted, not quote-checked)
- ML-KEM-512 full handshake (keygen+encaps+decaps), RP2040 125 MHz, PQClean reference C: 35.7 ms
- ML-KEM-768 full handshake: 56.6 ms
- ML-KEM-1024 full handshake: 85.7 ms
- ML-DSA-44 mean signing time (n=100): 158.9 ms
- ML-DSA-44 signing p99 (n=10,000, campaign B, -Os): 584.2 ms
- ML-DSA-44 observed maximum signing time (n=10,000, campaign B): 1156.8 ms
- ECDH P-256 key agreement latency on same core (mbedTLS): 617.0 ms
- ML-KEM-512 handshake speedup over ECDH P-256 on same hardware: 17x
For builders
For PQ chain or wallet firmware on Cortex-M0+-class devices, budget ML-DSA signing from a 10,000-sample tail rather than n=100 maxima, and report build flags with every number.
Limits
PQClean reference C only, not optimised; RP2040 has single-cycle multiplier unlike many M0+ parts; energy is a datasheet-based estimate; n=100 tails are lower bounds; the RNG is uncertified; SLH-DSA and FN-DSA excluded. Some text was omitted in the input.
Topics: benchmarks kem sig-lattice implementation-sidechannel