Optimizing the Post Quantum Signature Scheme CROSS for Resource Constrained Devices
Optimizes the CROSS code-based signature for Cortex-M4 microcontrollers, cutting stack use 15-45x and adding DSP-based speedups, with a memory-versus-speed trade-off.
Schemes: CROSS
Findings (quotes checked against the source text)
-
Optimized CROSS implementations for Cortex-M4 fit all parameter sets within 24 kB of stack, a 15-45x reduction versus the reference implementation.
We show that all parameter sets fit within at maximum 24 kB of stack which corresponds to a reduction by a factor of 15 to 45 with respect to the reference implementation.
-
Total memory footprint including the signature is under 128 kB.
The memory footprint of our implementation, taking the size of the signature also into account, is less than 128 kB.
-
Memory optimizations alone do not significantly slow CROSS verification, and combined stack and speed optimizations give up to 1.7x speed-up.
Notably, we also show that our memory optimizations alone have no significant performance impact on the signature verification of CROSS while we even achieve a speed-up factor of up to 1.7 when taking the stack and speed optimizations into account.
-
The paper offers multiple stack reduction options allowing a fine-grained trade-off between memory footprint and performance.
We additionally outline different stack reduction options which allow for a fine grained trade-off between memory footprint and performance of the algorithm.
Numbers (as extracted, not quote-checked)
- CROSS stack size after optimization: at most 24 kB
- Stack reduction versus reference implementation: factor of 15 to 45
- Total memory footprint including signature: less than 128 kB
- Verification speed-up with stack and speed optimizations: up to 1.7x
For builders
If CROSS is a candidate for a constrained signer or verifier, the stack-reduced Cortex-M4 code shows its memory cost can be brought down substantially without hurting verification speed.
Limits
Targets only Cortex-M4 embedded hardware; the abstract does not report signature or key sizes, signing speed, or blockchain-relevant throughput, and the full text was not read.