Algorithmic Optimization of the Gaussian Sampler in the FN-DSA Post-Quantum Signature Scheme
Speeds up Falcon/FN-DSA's fpr_expm_p63 Gaussian sampler bottleneck via segmented Remez polynomial approximation, 1.28x median on emulated Cortex-M3, with DUDECT timing checks.
Schemes: Falcon, FN-DSA, FIPS 206
Findings (quotes checked against the source text)
-
A 16-segment degree-3 approximation at scale 2^31 targets Cortex-M3 with a 256-byte LUT; a 32-segment degree-6 variant targets x86-64.
a 16-segment degree-3 approximation at scale $2^{31}$ (256-byte LUT) targeting ARM Cortex-M3 IoT devices without hardware floating-point unit (FPU).
-
The optimized sampler achieves a 1.28x median speedup over the FACCT reference across 30 runs, measured on QEMU-emulated Cortex-M3.
our implementation achieves a $1.28\times$ median speedup across 30 independent runs (range $1.24\times$ to $1.33\times$)
-
DUDECT tests keep both the FACCT reference and the optimized version within statistical safety thresholds in most runs, but the optimized version passes fewer runs (27/30 vs 30/30).
(FACCT: 30/30; optimized: 27/30)
-
Static objdump analysis shows zero data-dependent branches, zero FPU instructions and zero soft-float calls in the optimized Horner core.
zero data-dependent conditional branches, zero FPU instructions, and zero soft-float calls, yielding a branchless fixed-point Horner core
Numbers (as extracted, not quote-checked)
- Median speedup vs FACCT reference on emulated Cortex-M3: 1.28x (range 1.24x to 1.33x over 30 runs)
- LUT size, 16-segment degree-3 variant: 256 bytes
- DUDECT t-score range, optimized: [1.99, 5.24]
- DUDECT t-score range, FACCT reference: [0.05, 2.51]
For builders
If a PQ chain runs Falcon/FN-DSA on constrained devices, the segmented sampler is a possible speedup, but it needs physical-hardware and timing validation before use.
Limits
Timing measured only under QEMU emulation on one target; STM32F103 hardware validation is future work; optimized variant passed DUDECT in only 27/30 runs.
Topics: sig-lattice implementation-sidechannel benchmarks standards-policy