Efficient and Compact High-order Masking Raccoon on Memory Constrained Devices
Optimizes high-order masked Raccoon lattice signatures on ARM Cortex-M4: faster NTT, one-shot SHAKE sampling, and memory savings for masking orders up to 32.
Schemes: Raccoon, Dilithium
Findings (quotes checked against the source text)
-
Provides the first efficient, compact high-order Raccoon implementation on ARM Cortex-M4, with masking up to 32 orders on constrained IoT devices.
This paper proposes the first efficient and compact implementation of high-order Raccoon on the ARM Cortex-M4, with a focus on optimizing its polynomial multiplication, sampling, and memory consumption.
-
Switching from incremental to one-shot SHAKE256 sampling removes a previously overlooked bottleneck, giving at least 1.80x speedup across Raccoon's sampling routines.
By transitioning to the one-shot approach, we achieve speedups of at least $1.80\times$ across all sampling routines in Raccoon.
-
The implementations outperform the Raccoon reference implementation by 1.85x to 2.25x.
The proposed implementations outperform the Raccoon reference implementation by $1.85\times$-$2.25\times$.
-
High-order masked Raccoon-192 outperforms masked Dilithium3 at masking orders 2, 4 and 8.
Notably, high-order masked Raccoon-192 outperforms masked Dilithium3 by $3.12\times, 8.07\times$, and $2.71\times$ at masking orders $d=2$, $4$, and $8$, respectively.
-
Second-order Raccoon shows strong resistance to DPA once micro-architectural transitional leakages are mitigated.
the leakage evaluations confirm that the second-order Raccoon implementation provides strong resistance to differential power analysis (DPA) once micro-architectural transitional leakages are mitigated.
Numbers (as extracted, not quote-checked)
- Raccoon high-order masking overhead: O(d log d)
- Sampling speedup (one-shot SHAKE256): at least 1.80x
- Speedup vs Raccoon reference implementation: 1.85x-2.25x
- Raccoon-192 vs masked Dilithium3 speedup at d=2, 4, 8: 3.12x, 8.07x, 2.71x
For builders
If a PQ chain uses Raccoon or needs masked lattice signing on embedded/hardware wallets, the one-shot SHAKE sampling and NTT layer-merging tricks are reusable.
Limits
Targets only Cortex-M4 and Raccoon, which did not advance past NIST round 1; results are microcontroller benchmarks, not blockchain-relevant throughput.