Introduction
As the era of quantum computing approaches, traditional public-key cryptographic algorithms such as RSA and ECC face obsolescence due to their vulnerability to Shor's algorithm. In response, NIST has standardized several Post-Quantum Cryptography (PQC) algorithms. Among these, SPHINCS+ stands out as the only "hash-based" signature scheme selected. Unlike lattice-based alternatives, SPHINCS+ is stateless and relies on the security of well-understood hash functions, making it a robust and manageable choice for long-term security.
However, SPHINCS+ carries a significant "performance tax." On standard CPUs, it is approximately 150x slower for signing and 50x slower for verification compared to lattice-based schemes like Dilithium. This computational intensity poses a major hurdle for deployment in high-traffic environments such as TLS or DNSSEC. To address this, the authors present GRASP (GPU-based paRallel Accelerated SPHINCS+), a high-performance implementation designed to bridge the performance gap using the massive parallel processing power of modern GPUs.
The GRASP Approach
The GRASP framework introduces several novel optimization strategies tailored for the SPHINCS+ pipeline on NVIDIA GPUs using CUDA. The complexity of the SPHINCS+ structure, which involves a hypertree of multiple layers of Merkle trees, requires a sophisticated approach to parallelization.
Adaptable Parallelization Strategy
Rather than employing a static parallelization model, GRASP analyzes the hypertree and Forest of Random Subsets (FORS) structures to determine the optimal thread count. The implementation offers configurable modes: one optimized for maximum throughput (ideal for batch processing thousands of signatures) and another for minimum latency (prioritizing the speed of a single signature).
Kernel Fusion and Memory Optimization
A primary bottleneck in GPU computing is the "communication tax"—the overhead of moving data between global memory and the GPU cores. GRASP utilizes Kernel Fusion to consolidate multiple steps of the signature process (WOTS+, FORS, MSS) into a single, unified kernel. This keeps data in fast on-chip registers, drastically reducing memory latency.
Furthermore, the authors implemented instruction-level memory optimizations. By using specialized CUDA instructions (INT2 and INT4), the system can read 8 or 16 bytes of data simultaneously. This ensures "coalesced" memory access, allowing the GPU to fully saturate its wide memory bus.
Algorithmic Refinement
GRASP also improves the underlying mathematics of the hypertree computation. By integrating WOTS+ signature generation with the public key generation of leaf nodes, the authors eliminated redundant hash operations, reducing the total hash count by approximately 33%.
Performance Evaluation
The performance of GRASP was evaluated against the NIST PQC SPHINCS+ reference implementation (version 3.0) using SHA-256 variants across all security levels (1, 3, and 5) in both "fast" (-f) and "small" (-s) modes. Testing spanned multiple generations of NVIDIA hardware, including the RTX 4090, RTX 3090, and GTX 1080.
On the flagship RTX 4090, GRASP achieved remarkable results:
- Signing Throughput: 146,363 signatures per second at security level 1—a 1.37x improvement over previous state-of-the-art GPU implementations and over 3,600x faster than the NIST CPU reference.
- Verification Throughput: Nearly 1.5 million verifications per second, outperforming prior GPU work by up to 3.45x.
- Latency: Signature time was reduced to just 0.512 ms, representing a 9.4x reduction compared to previous GPU-based methods.
Discussion and Future Work
The success of GRASP highlights that the primary challenge in GPU-accelerated cryptography is often data movement rather than raw computation. By treating the signature process as a single pipeline and aligning data access with physical hardware architecture, GRASP achieves unprecedented performance.
While the current work focuses on the SHA-256 "simple" mode of SPHINCS+, future research could extend these optimizations to the "robust" mode, which uses additional masks for enhanced security. Additionally, integrating these GPU-accelerated signatures into real-world cloud and network architectures remains a key area for practical deployment.
Summary updated