Compact and Side Channel Secure Discrete Gaussian Sampling
Builds compact, fast Knuth-Yao discrete Gaussian samplers on FPGA with 2^-90 statistical distance, plus a shuffle-based side-channel-resistant variant for lattice schemes.
Schemes: Knuth-Yao sampler
Findings (quotes checked against the source text)
-
The bit-scan Knuth-Yao sampler is the most area-optimal variant, using 30 slices and about 17 cycles per sample at standard deviation 3.33.
For the standard deviation 3.33, the most area-optimal implementation of the bit-scan operation based Knuth-Yao sampler consumes 30 slices on the Xilinx Virtex 5 FPGAs, and requires on average 17 cycles to generate a sample.
-
A precomputed table mapping initial random bits directly to samples cuts average cycles per sample to about 2.5, at 35 slices.
The fast sampler consumes 35 slices and spends on average 2.5 cycles to generate a sample.
-
Plain sampler architectures are vulnerable to timing and power analysis; a random shuffle method protects the Gaussian polynomial.
However the sampler architectures are not secure against timing and power analysis based attacks.
-
The side-channel resistant sampler uses 52 slices and about 420 cycles to generate a 256-coefficient polynomial.
The side channel attack resistant sampler architecture consumes 52 slices and spends on average 420 cycles to generate a polynomial of 256 coefficients.
Numbers (as extracted, not quote-checked)
- Maximum statistical distance to true discrete Gaussian: 2^-90
- Standard deviation tested: 3.33
- Area, bit-scan Knuth-Yao sampler (Virtex 5): 30 slices
- Cycles per sample, bit-scan Knuth-Yao sampler: 17 cycles on average
- Area, table-based fast sampler: 35 slices
- Cycles per sample, table-based fast sampler: 2.5 cycles on average
- Area, side-channel resistant sampler: 52 slices
- Cycles for 256-coefficient polynomial, side-channel resistant sampler: 420 cycles on average
For builders
Use Knuth-Yao table sampling with a shuffle countermeasure if your lattice scheme needs Gaussian sampling on constrained hardware, but treat the FPGA numbers as a baseline, not a validated side-channel defense.
Limits
Based on the ePrint abstract only, not the full text. Results are FPGA slice and cycle counts on Virtex 5, and side-channel claims are not independently evaluated here.
Topics: implementation-sidechannel benchmarks sig-lattice kem