First-Order Masked Kyber on ARM Cortex-M4
Presents a first-order masked Kyber768 implementation for ARM Cortex-M4, built on PQM4, as the first liberally licensed open-source masked Kyber for that platform.
Schemes: Kyber, Kyber768, PQM4
Findings (quotes checked against the source text)
-
The paper gives a first-order masked Kyber implementation for Cortex-M4 that is claimed to be the first liberally-licensed open-source masked Kyber for that platform.
Most notably, to our knowledge this is the first liberally-licensed open-source Cortex-M4 implementation of masked Kyber.
-
Masked Kyber768 decapsulation on Cortex-M4 costs about 2.98 million cycles, including internal RNG randomness generation.
Our masked Kyber768 decapsulation on the ARM Cortex-M4 requires only 2 978 441 cycles, including randomness generation from the internal RNG.
-
The implementation is practically checked for first-order leakage using the t-test methodology with 100,000 traces.
We then practically verify our implementation by using the t-test methodology with 100 000 traces.
-
The design builds on the PQM4 project's existing Kyber optimizations and adds ideas from recent works for better performance and security.
On the foundation of the commonly used PQM4 project, we make use of the previously presented optimizations for Kyber on a Cortex-M4 and further combine different ideas from various recent works to achieve a better performance and improve the security in comparison to the original implementations.
Numbers (as extracted, not quote-checked)
- Masked Kyber768 decapsulation cycles on ARM Cortex-M4 (first-order, incl. RNG): 2978441 cycles
- Number of traces in t-test leakage verification: 100000 traces
For builders
If a PQ chain needs KEM decapsulation on embedded or hardware wallets, this gives a reusable open-source masked Kyber reference for Cortex-M4 with measured cost.
Limits
Based on the abstract only; first-order security only, no higher-order masking, and results are specific to Cortex-M4 and Kyber768.
Topics: kem implementation-sidechannel benchmarks