Faster Kyber and Dilithium on the Cortex-M4
Speeds up Kyber and Dilithium on Cortex-M4 via faster signed Barrett reduction, a smaller prime modulus for Dilithium signing multiplications, and NTT optimizations.
Schemes: Dilithium, Kyber, ML-DSA, ML-KEM
Findings (quotes checked against the source text)
-
Switching Dilithium's cs1/cs2 multiplications to a smaller prime modulus, enabling Fermat number transform, speeds up relevant signing operations by 33.1%-37.6%.
Switching to a smaller modulus results in speed-up of 33.1%-37.6% for the relevant operations (sum of basemul and iNTT) in the signing procedure.
-
Dilithium NTT and inverse NTT are made faster by 5.2% and 5.7% respectively on Cortex-M4.
For Dilithium, our NTT and iNTT are faster by 5.2% and 5.7%.
-
Kyber matrix-vector product, the core arithmetic of Kyber, is 15.9%-17.8% faster through the optimizations.
For Kyber, the optimizations results in 15.9%-17.8% faster matrix-vector product which presents the core arithmetic operation in Kyber.
-
A faster signed Barrett reduction is presented for Kyber polynomial arithmetic.
We present a faster signed Barrett reduction for Kyber, propose to switch to a smaller prime modulus for the polynomial multiplications (c\mathbf{s}_1) and (c\mathbf{s}_2) in the signing procedure of Dilithium, and apply various known optimizations to the polynomial arithmetic in both schemes.
Numbers (as extracted, not quote-checked)
- Dilithium NTT speedup: 5.2%
- Dilithium iNTT speedup: 5.7%
- Dilithium signing basemul+iNTT speedup with smaller modulus: 33.1%-37.6%
- Kyber matrix-vector product speedup: 15.9%-17.8%
For builders
Cortex-M4 embedded PQ deployments can take Dilithium and Kyber NTT-level speedups, and note that a smaller modulus for signing multiplications is a notable optimization lever.
Limits
Based on the ePrint abstract only; full text not read. Results are for Cortex-M4 microcontrollers, not blockchain or server platforms, and the smaller-modulus change alters the scheme's parameters.
Topics: sig-lattice kem implementation-sidechannel benchmarks