DPCrypto: Acceleration of Post-quantum Cryptographic Algorithms using Dot-Product Instruction on GPUs
Uses NVIDIA DP4A dot-product instructions to speed up matrix multiplication and polynomial convolution, yielding GPU implementations of FrodoKEM and Saber KEMs.
Schemes: FrodoKEM, Saber, DP4A, DP2A
Findings (quotes checked against the source text)
-
Dot-product instructions DP2A and DP4A can accelerate matrix multiplication and polynomial convolution used in lattice-based KEMs.
In this paper, we show that the dot-product instruction can also be used to accelerate matrix-multiplication and polynomial convolution operations, which are commonly found in post-quantum lattice-based cryptographic schemes.
-
The optimized FrodoKEM GPU implementation reaches 4.37x the key exchange throughput of the prior state-of-the-art on V100.
The proposed FrodoKEM implementation achieves 4.37x higher throughput in terms of key exchange operations per second than the state-of-the-art implementation on V100 GPU.
-
First GPU implementation of Saber, with key exchange throughput reported on RTX3080, V100, and T4.
This paper also presents the first implementation of Saber on GPU platforms, achieving 124,418, 120,463, and 31,658 key exchange operations per second on RTX3080, V100, and T4 GPUs, respectively.
-
Matrix multiplication and polynomial convolution dominate lattice-scheme runtime, so the techniques may transfer to similar algorithms.
Since matrix-multiplication and polynomial convolution operations are the most time-consuming operations in lattice-based cryptographic schemes, our proposed techniques are likely to benefit other similar algorithms.
Numbers (as extracted, not quote-checked)
- FrodoKEM key exchange throughput speedup vs prior state of the art on V100: 4.37x
- Saber key exchange ops/s on RTX3080: 124,418
- Saber key exchange ops/s on V100: 120,463
- Saber key exchange ops/s on T4: 31,658
For builders
If a PQ chain runs validators or servers on GPUs, KEM batching via DP4A-style integer kernels is a throughput option, though KEMs matter less for on-chain signatures.
Limits
Based on the ePrint abstract only; full text was not available, and the work covers KEMs on GPUs, not signatures or chain design.
Topics: kem implementation-sidechannel benchmarks