Batched LSH on ARMv8 NEON and Its Application to K-SPHINCS+
Reimplements LSH optimizations in AArch64 NEON assembly, finds only message-parallel batching beats C, and builds a 4-message-batched K-SPHINCS+ that signs 2.5–3.2× faster.
Schemes: SPHINCS+, K-SPHINCS+, LSH, FIPS 205, WOTS+, FORS, SHAKE256, SHA-256
Findings (quotes checked against the source text)
-
Single-message NEON LSH implementations do not beat the KISA portable C code; only batching several messages across NEON lanes wins.
No single-message NEON implementation beats the KISA portable C code compiled with clang -O3 (0.75–0.90×).
-
For LSH-256, hashing two or four independent messages across NEON lanes gives about 2.0× the throughput of sequential C.
Only message-parallel batching wins: for LSH-256, hashing two or four independent messages across NEON lanes reaches 1.53–1.66× and about 2.0× the throughput of sequential C.
-
Batched K-SPHINCS+ produces byte-identical signatures across reference C, single-message NEON, and four-message NEON hash backends.
All six parameter sets pass the framework’s tests, and all three hash backends (reference C, single-message NEON, four-message NEON) produce byte-identical signatures.
-
Batched K-SPHINCS+ signs faster than both reference-C-LSH K-SPHINCS+ and, at 128-bit, the SHA-256/SHAKE256 SPHINCS+ references on the same machine.
On the same machine, batched K-SPHINCS+ signs 2.5–2.6× faster than K-SPHINCS+ with reference C LSH and, for the 128-bit parameter sets, 2.9–3.2× faster than the SHA-256/SHAKE256 SPHINCS+ reference implementations.
-
Hash calls dominate hash-based signature schemes, so hash implementation choice largely sets their performance.
Since these schemes are dominated by hash calls, hash optimization largely determines performance.
Numbers (as extracted, not quote-checked)
- Test vectors used to validate every variant: 2,063 public known-answer test vectors
- Single-message NEON LSH-256 vs sequential C (clang -O3): 0.75–0.90×
- LSH-256 two/four-message NEON batch vs sequential C: 1.53–1.66×, about 2.0×
- Batched K-SPHINCS+ signing speed vs K-SPHINCS+ with reference C LSH: 2.5–2.6×
- Batched K-SPHINCS+ signing speed vs SHA-256/SHAKE256 SPHINCS+ reference (128-bit sets): 2.9–3.2×
- Parameter sets passing framework tests: 6
For builders
If a PQ chain uses hash-based signatures on ARM, batch independent hash calls (WOTS+ chains, FORS leaves, Merkle nodes) rather than optimizing single-call latency, and use a K-SPHINCS+/LSH variant only if the LSH choice is acceptable.
Limits
Only the abstract was read, not the full text. Benchmarks are on ARMv8 from one machine; signing speed only; no new security analysis; the claims rest on the authors' measurements.
Topics: sig-hash-based hash-functions benchmarks implementation-sidechannel hybrid-schemes