Post-Quantum Key Exchange on ARMv8-A -- A New Hope for NEON made Simple
Constant-time, NEON-vectorized ARMv8-A implementations of NewHope and NewHope-Simple Ring-LWE key exchange, with three alternative modular reduction methods for the NTT.
Schemes: NewHope, NewHope-Simple
Findings (quotes checked against the source text)
-
Vectorized NEON NTT with 16-bit representation runs in 18,909 cycles on Cortex-A53, a 3.4x speedup over prior assembly and 8.3x over the C reference.
The NEON vectorized NTT uses a 16-bit unsigned integer representation and executes in only 18, 909 clock cycles on an ARM Cortex-A53 core.
-
Three alternative modular reduction methods avoid larger data types in the NTT and remove the need for Montgomery-domain conversion in pointwise multiplication.
In particular, we propose the use of three alternative modular reduction methods, which allow to better exploit NEON parallelism by avoiding larger data types during the Number Theoretic Transform (NTT) and remove the need to transform input coefficients into Montgomery domain during pointwise multiplications.
-
Total key exchange time was reduced by more than a factor of 3.5 for both NewHope protocols.
The total time spent on the key exchange was reduced by more than a factor of 3.5 for both protocols.
Numbers (as extracted, not quote-checked)
- NEON NTT cycle count on Cortex-A53: 18,909 clock cycles
- Speedup vs prior assembly-optimized ARM NEON NTT: 3.4x
- Speedup vs C reference implementation (NTT): 8.3x
- Total key exchange speedup: more than 3.5x for both protocols
For builders
Use these NEON NTT techniques (16-bit representation, Montgomery-free pointwise multiplication) as a reference if the chain's node software must run Ring-LWE KEM on ARM phones or tablets.
Limits
Covers only the KEM (key exchange) on ARMv8-A; no signatures, no blockchain integration, and the abstract gives no side-channel or security analysis beyond constant-time claims.
Topics: kem implementation-sidechannel benchmarks