Compact Dilithium Implementations on Cortex-M3 and Cortex-M4
Constant-time, stack-optimized Dilithium implementations for Cortex-M3 and Cortex-M4 microcontrollers, with faster NTT, plus first Cortex-M3 NewHope and Kyber.
Schemes: Dilithium, Dilithium3, NewHope, Kyber
Findings (quotes checked against the source text)
-
NTT and inverse NTT were sped up by 20% over prior Cortex-M4 records, yielding 7%, 15%, and 9% speedups for Dilithium3 keygen, signing, and verification.
we speed up the key operations $\text{NTT}$ and $\text{NTT}^{-1}$ by 20% which together with other optimizations results in speedups of 7%, 15%, and 9% for Dilithium3 key generation, signing, and verification respectively.
-
The work presents the first constant-time Dilithium implementation on Cortex-M3, benchmarked on Arduino Due.
We also present the first constant-time Dilithium implementation on the Cortex-M3 and use the Arduino Due for benchmarks.
-
Three signing strategies trade stack and flash memory against speed, since iterative Dilithium signing cannot optimize speed and stack together.
Due to the iterative nature of the Dilithium signing algorithm, there is no optimal way to achieve the best speed and lowest stack consumption at the same time.
-
The smallest-footprint Dilithium3 implementation uses less than 12kB of memory.
Our implementation of Dilithium3 with the smallest memory footprint uses less than 12kB.
Numbers (as extracted, not quote-checked)
- Dilithium3 key generation on Cortex-M3 (average): 2 562 kilocycles
- Dilithium3 signing on Cortex-M3 (average): 10 667 kilocycles
- Dilithium3 verification on Cortex-M3 (average): 2 321 kilocycles
- Dilithium3 minimum memory footprint: less than 12kB
For builders
Embedded or constrained signers can run Dilithium3 on Cortex-M class chips, but expect to choose between signing speed and RAM/flash footprint.
Limits
Only the ePrint abstract was available; results are microcontroller benchmarks, not blockchain-level or full-text details, and the paper's own claims are unverified here.
Topics: sig-lattice benchmarks implementation-sidechannel kem