← Back to section · Research & Analysis
The Real Map of Hardware Acceleration: Who Actually Benefits from Vector Instructions
AVX2 and NEON accelerate the NTT and Keccak by entirely different margins, and SHA-2 instructions do nothing for SHAKE. This article maps where hardware acceleration pays off across PQC operations, and how it renders cross-platform rankings meaningless.
Benchmark tables often carry two rows for the same algorithm: one labeled “ref,” one labeled “avx2,” with a gap of several times between them. The distance between those two rows is the map of hardware acceleration. But acceleration never falls like even rain: it lands precisely on certain operation structures and does almost nothing for others. Without this map, platform dividends get misread as algorithmic merit.
The NTT and Keccak: two star pupils of vectorization
The NTT’s butterfly operations are the ideal vectorization target: the many butterflies within one layer are mutually independent, coefficients are laid out regularly, and AVX2’s 256-bit registers process several 16-bit coefficients in parallel, with NEON playing the same role on ARM. This is the main battlefield where lattice schemes open their gap over reference implementations on desktops and servers.
The Keccak-f[1600] permutation is another star pupil, but it feeds differently: composed of 24 rounds of bitwise operations and permutations, it is natively organized into 64-bit “lanes,” so even scalar implementations benefit from a 64-bit datapath. AVX2 versions instead amortize cost by processing several independent hash streams at once — during matrix expansion, for example, packing the sampling streams of several polynomials into vector registers. This explains a recurring observation: ML-KEM key generation often shows a higher acceleration ratio than a single polynomial operation, because it can batch many independent SHAKE streams into the vector unit.
Rejection sampling and serial stages: the blind spots
Where vectorization cannot help is equally clear. The core act of rejection sampling is “generate — compare — decide,” where each candidate’s fate determines how the next is handled; data-dependent control flow resists parallelization by nature. ML-DSA’s signing loop is worse still, with strictly serial dependence between rounds, and Amdahl’s law draws a hard boundary here: the larger the serial share, the lower the ceiling on overall speedup. This is why measured acceleration ratios for signing are systematically lower than for key generation and verification — not implementer laziness, but a genuinely smaller parallelizable fraction in the algorithm’s structure.
There is a further tension between vectorization and constant-time discipline. Certain vector techniques reintroduce the side-channel surface: vector gather loads indexed by secret-dependent values have timing that varies with the index distribution, and table-driven vector shuffles leave data-dependent cache footprints as well. Platform-optimized implementations must therefore not only be fast but audit the timing behavior of every vector path, at a verification cost above the scalar versions. This is also why the gap between an algorithm’s avx2 and ref figures cannot be attributed purely to “hardware dividends” — part of it is the deduction for the fastest formulations that had to be abandoned to stay constant-time.
A bait-and-switch that must be called out: SHA instructions serve SHA-2
Hardware-acceleration marketing hides a frequent trap. The x86 SHA instruction extensions (SHA-NI) accelerate the compression functions of SHA-1 and SHA-256 — members of the SHA-2 family. The internal hashing of ML-KEM and ML-DSA, however, is the Keccak-based SHAKE and SHA3, which share no structural lineage with SHA-2 whatsoever: SHA-NI cannot help them by a single cycle. SLH-DSA, by contrast, offers SHA2 parameter sets that genuinely draw the SHA-NI dividend — one reason its parameter sets show diverging performance profiles on x86. The ARM side is more nuanced: the ARMv8 cryptographic extensions likewise target SHA-2, and while some newer ARM extensions include SHA3-oriented instructions, their deployment is too limited to assume by default. Whenever you read “hardware-accelerated hashing,” ask first: which hash?
Acceleration beyond instructions: caches, memory, and dedicated hardware
Acceleration does not come from instruction sets alone. The cache hierarchy is another invisible dividing line: if the NTT’s twiddle-factor tables and polynomial workspaces can reside permanently in L1 or L2 cache, the latency gap between cache and main memory writes itself directly into the total cycle count; once the workspace spills into main memory, bandwidth and latency become the new bottleneck. This is especially pronounced for code-based decoding, which repeatedly sweeps over large matrices — a substantial part of why McEliece decapsulation’s profile forks across machines with different cache specifications comes from the memory hierarchy, not the arithmetic units.
One layer further out sits dedicated hardware: FPGA and ASIC implementations pipeline the NTT butterfly and the Keccak round function, reaching throughput and energy efficiency far beyond general-purpose processors — but their numbers live in an entirely different coordinate system from software benchmarks, counting gates, frequency, and throughput rate, and once an implementation is frozen in silicon, flexibility to change algorithm parameters disappears with it. Mixing hardware-implementation figures into a software benchmark ranking is yet another form of cross-dimensional comparison. Likewise, the massive parallelism of GPUs only matters for batch scenarios (server-side batch verification, for instance); in the latency profile of a single handshake it is essentially absent. The acceleration map must therefore be drawn in three layers — instructions, caches, dedicated hardware — and a missing layer misplaces where the dividend lands.
Rankings are a function of the platform
Combining the three patterns yields a methodological conclusion: relative PQC rankings are a function of platform and implementation, not an intrinsic property of the algorithms. On an AVX2 server, lattice schemes collect their full NTT dividend. On a microcontroller with no vector unit, rankings must be recomputed at scalar cost, and schemes with low hash counts rise relatively. On a SHA-NI platform, SLH-DSA’s SHA2 parameter sets look far better than elsewhere. Any cross-platform performance claim should declare three things at once: which instruction sets, which implementation tier (reference / optimized / platform-specific), and which stage of the algorithm the acceleration lands on. Rankings missing these footnotes mislead over a radius that grows with their circulation.
Summary
Hardware acceleration is distributed extremely unevenly across PQC: the NTT and Keccak are the main beneficiaries, rejection sampling and serial loops are the blind spots, and between the SHA-2 instructions and SHAKE lies an entire family’s worth of misunderstanding. Once the acceleration map is drawn clearly, many claims of the form “algorithm X is several times faster than Y” automatically sprout their qualifiers — on some platform, in some implementation, for some operation. Half the honesty of a performance profile lives in those qualifiers.
References
- The organization of AVX2/NEON optimized implementations in liboqs and PQClean (the convention of maintaining reference and platform-optimized code side by side)
- Intel SHA Extensions (SHA-NI) instruction scope: covering SHA-1/SHA-256, excluding Keccak
- The family distinction between FIPS 202 (the SHA-3 standard) and FIPS 180-4 (the SHA-2 standard)
Tags: AVX2NEONHardware AccelerationKeccak