Optimized NEON Implementation of MAYO on Apple M1
Presents an optimised ARM NEON implementation of MAYO Round 3 (a post-quantum multivariate signature) for Apple M1, benchmarked against upstream NEON code with constant-time testing.
Schemes: MAYO, MAYO-1, MAYO-2, AES
Findings (quotes checked against the source text)
-
Compact-key signing is 1.99–2.12 times faster than upstream on all four parameter sets, and verification 2.11–2.62 times, as medians over seven function alignments.
As medians over seven function alignments, compact-key signing is 1.99–2.12 times faster than upstream on all four sets, and verification 2.11–2.62 times.
-
A transposed constant-time echelon form needs 55–70% fewer cycles than the upstream one.
A transposed constant-time echelon form needs 55–70% fewer cycles than the upstream one.
-
Verification shows a key-fixed timing effect on public data, present in upstream code as well, and the signature test does not separate it from a secret-dependent one.
Verification, which holds no secret, shows a key-fixed timing effect on public data, upstream as well; the signature test does not separate it from a secret one.
-
Linear-algebra constant-time tests are indistinguishable from their null runs, but at only 25% power for a twofold dispersion.
A constant-time campaign with matched null runs finds the linear-algebra tests indistinguishable from their nulls, at 25% power for a twofold dispersion.
Numbers (as extracted, not quote-checked)
- Speedup of compact-key signing vs upstream NEON: 1.99–2.12x
- Speedup of verification vs upstream NEON: 2.11–2.62x
- Cycle reduction for transposed constant-time echelon form: 55–70% fewer cycles
- Eight-way interleaved AES public-matrix expansion cost: 0.18 cycles per byte (vs 0.43)
For builders
If you deploy MAYO on ARM, use the constant-time echelon form and interleaved AES for matrix expansion, and treat the verification-side timing leak on public data as a known issue to address.
Limits
All measurements on a single Apple M1 Pro; the constant-time test has only 25% power for a twofold effect; it is a 2026 ePrint abstract-only summary, not the full text.