Nibbling MAYO: Optimized Implementations for AVX2 and Cortex-M4
Presents faster MAYO signature implementations on AVX2 and Cortex-M4 by switching from bitsliced to nibble-sliced key representation and using Method of Four Russians on M4.
Schemes: MAYO
Findings (quotes checked against the source text)
-
Switching MAYO from bitsliced to nibble-sliced key representation makes it faster, and the Method of the Four Russians gives up to 21% faster signing on Cortex-M4.
In this work, we present high-speed implementations of MAYO using the AVX2 and Armv7E-M instruction sets targeting recent x86 platforms and the Arm Cortex-M4.
-
On AVX2, nibble-sliced representation with shuffle instructions yields up to 3.2x fewer cycles for signing, with similar speedups for key generation and verification.
For AVX2, the change in representation allows us to implement the arithmetic much faster using shuffle instructions. Signing takes up to 3.2x fewer cycles and key generation and verification enjoy similar speedups.
-
The authors conclude MAYO is competitive with lattice-based signatures on x86 CPUs and 2-6x slower than lattice schemes on Cortex-M4.
This shows that MAYO is competitive with lattice-based signature schemes on x86 CPUs, and a factor of 2-6 slower than lattice-based signature schemes on Cortex-M4 (which can still be considered competitive).
Numbers (as extracted, not quote-checked)
- MAYO signing speedup on Cortex-M4 from M4R vs bitsliced: up to 21% faster
- MAYO signing cycle reduction on AVX2: up to 3.2x fewer cycles
For builders
If MAYO is a candidate for a PQ chain, use nibble-sliced AVX2 code paths for signing speed, since the paper shows large gains from representation choice alone.
Limits
Abstract-only input; implementation benchmarks on specific x86 and Cortex-M4 targets, no security analysis or signature-size details given in the provided text.