RACE: A Rapid ARM Cryptographic Engine for Code-Based Classic McEliece PQC Scheme
Presents RACE, an ARMv8 NEON-optimized implementation of Classic McEliece KEM that speeds up keygen, encapsulation and decapsulation versus the reference vec code while keeping constant-time behavior.
Schemes: Classic McEliece, McEliece8192128
Findings (quotes checked against the source text)
-
RACE speeds up Classic McEliece McEliece8192128 key generation by 1.33x, 1.90x and 2.04x on Kunpeng 920, Apple M1 and Apple M2 Pro respectively versus the official vec implementation.
For the McEliece8192128 parameter set, key generation is accelerated by 1.33$\times$, 1.90$\times$, and 2.04$\times$, encapsulation by 1.33$\times$, 1.23$\times$, and 1.26$\times$, and decapsulation by 1.27$\times$, 1.68$\times$, and 1.66$\times$, respectively.
-
Optimizations target ARMv8 NEON SIMD, including LUP-decomposition-based in-place key generation and dual-lane butterfly fusion for FFT in decapsulation.
In the key generation phase, we introduce an implicit data layout and in-place transformation strategy based on LUP decomposition, coupled with NEON SIMD vectorization.
-
The authors claim decapsulation speedups against open-source libraries reach several hundred times, while keeping constant-time guarantees.
RACE also outperforms open-source libraries, particularly in decapsulation, where speedups reach several hundred times.
Numbers (as extracted, not quote-checked)
- McEliece8192128 keygen speedup vs vec (Kunpeng 920, M1, M2 Pro): 1.33x, 1.90x, 2.04x
- McEliece8192128 encapsulation speedup vs vec (Kunpeng 920, M1, M2 Pro): 1.33x, 1.23x, 1.26x
- McEliece8192128 decapsulation speedup vs vec (Kunpeng 920, M1, M2 Pro): 1.27x, 1.68x, 1.66x
For builders
If a PQ chain uses Classic McEliece as a KEM for mobile or edge nodes, ARMv8 NEON implementation techniques like these are a usable reference for reducing keygen and decap cost.
Limits
Based on the ePrint abstract only (full text not read); benchmarks cover three ARMv8 platforms and one parameter set; Classic McEliece's large public keys remain a deployment issue; not relevant to signatures.
Topics: kem implementation-sidechannel benchmarks