Efficient Modular Multiplication Using Vector Instructions on Commodity Hardware
SLSimon LangowskiSrini Devadas
SLSimon Langowski
Srini Devadas
+2
This paper targets the latency of a single modular multiplication under a generic prime, rather than batches of independent operations, while preserving constant-time execution. Starting from a unified view of prior algorithmic optimizations in Residue Number System Montgomery modular multiplication, the authors derive a simplified, provably correct algorithm with fewer elementwise multiplications. They map it to AVX512 vector instructions in C++, obtaining roughly $4\times$ speedup, characterized as nearly maximal, for $1024+$-bit primes over optimized standard Montgomery library implementations, and on GPUs they overparallelize threads within a vector core to minimize latency, showing substantial speedups over a commercial library across a wide range of prime sizes.

IACR ePrint · June 6, 2025