Taming the Stack: Proof-Preserving Blockwise FrodoKEM on RISC-V Devices with Hardware Acceleration
Proposes blockwise secret-matrix generation for FrodoKEM enabling random tile access, proves IND-CCA2 preserved in ROM, and runs it on RISC-V with constant ~2-3 kB stack.
Schemes: FrodoKEM
Findings (quotes checked against the source text)
-
Blockwise secret generation enables efficient random access to arbitrary matrix tiles, removing the sequential-generation bottleneck that forced a stack-versus-recomputation trade-off.
To address this, we propose a blockwise secret generation mechanism that enables efficient random access to arbitrary matrix tiles.
-
The modification is proven indistinguishable from the standard specification in the Random Oracle Model, preserving IND-CCA2 security.
We formally prove that this modification is indistinguishable from the standard specification in the Random Oracle Model, thereby preserving IND-CCA2 security.
-
Tiled encapsulation and key generation on a 32-bit RISC-V core keep transient stack usage constant across all parameter sets.
we demonstrate tiled encapsulation and key generation strategies that maintain constant transient stack usage ($\approx$2--3 kB) across all parameter sets.
Numbers (as extracted, not quote-checked)
- Transient stack usage (constant across parameter sets): approx. 2-3 kB
For builders
If a PQ chain needs FrodoKEM on constrained nodes, tiled on-the-fly secret generation can cut stack use without weakening IND-CCA2 in the ROM.
Limits
Security result is in the Random Oracle Model; evaluated only on a 32-bit RISC-V core with custom extensions; not a blockchain or signature result.
Topics: kem implementation-sidechannel benchmarks