Enabling FrodoKEM on Embedded Devices
Reduces FrodoKEM stack use 2-3x on embedded Cortex-M4 via stack reduction and time-memory tradeoffs, down to 8 kB, enabling use on constrained devices.
Schemes: FrodoKEM, FrodoKEM-640, CRYSTALS-Kyber
Findings (quotes checked against the source text)
-
FrodoKEM stack consumption is reduced by a factor 2-3x versus the smallest known implementations with almost no performance impact.
Concretely, we reduce the stack consumption of FrodoKEM by a factor 2–3× compared to the smallest known implementations with almost no impact on performance.
-
Time-memory trade-offs reach 8 kB stack for all AES parameter sets and below 4 kB for FrodoKEM-640.
We also present various time-memory trade-offs going as low as 8 kB for all AES parameter sets, and below 4 kB for FrodoKEM-640.
-
A minor specification tweak reduces stack consumption to 8 kB for all SHAKE versions.
By introducing a minor tweak to the FrodoKEM specifications, we additionally reduce the stack consumption down to 8 kB for all the SHAKE versions.
-
Prior FrodoKEM-640 AES implementations on Cortex-M4 needed more than 80 kB stack, making some embedded systems infeasible.
For example, prior FrodoKEM-640 implementations (using AES) on Cortex-M4 require more than 80 kB of stack making it impossible to run on some embedded systems.
Numbers (as extracted, not quote-checked)
- FrodoKEM stack reduction vs smallest prior implementations: 2-3x
- Lowest stack for all AES parameter sets: 8 kB
- Stack for FrodoKEM-640 (lowest trade-off): below 4 kB
- Prior FrodoKEM-640 (AES) stack on Cortex-M4: more than 80 kB
- Stack for all SHAKE versions after spec tweak: 8 kB
For builders
If a PQ chain needs a conservative unstructured-lattice KEM on hardware wallets or smart cards, FrodoKEM's stack can be cut to single-digit kB, but expect larger keys and slower operations than Kyber.
Limits
Based on the ePrint abstract only; full text not reviewed. Results are for Cortex-M4 embedded targets, and the SHAKE tweak alters the FrodoKEM specification.
Topics: kem implementation-sidechannel benchmarks