Efficient Implementations of Small-Modulus Lattice KEM Components
Optimizes small-modulus (q=257, 769) lattice KEM components: zero-selector encoding, uniform polynomial sampling, and residual multiplication, integrated into BAT and END with measured speedups.
Schemes: BAT, END
Findings (quotes checked against the source text)
-
Zero-selector encoding at q=257 gives a 1033-byte configuration for n=1024 with overflow probability at most 2^-128 under independent uniform coefficients.
For $n=1024$, a 1033-byte configuration has overflow probability at most $2^{-128}$ under independent uniform coefficients.
-
Checked AVX2 decoding of the zero-selector format is much faster than BAT's 1040-byte format decoding.
Checked AVX2 decoding takes 213 cycles, compared with 2203 cycles for BAT's 1040-byte format.
-
Specialized rejection sampling at (q,n)=(769,1024) cuts expected candidate-bit demand versus direct 10-bit rejection.
At $(q,n)=(769,1024)$, expected candidate-bit demand decreases by 24.39\% relative to direct 10-bit rejection.
-
Encapsulation costs drop substantially when the new codecs and multiplication are integrated into BAT and END.
Across the tested C and AVX2 implementations, encapsulation costs decrease by $39.93-55.25\%$ in BAT and $41.36-48.84\%$ in END.
-
Proven range bounds let residual multiplication omit strict input-centering corrections.
For residual multiplication, proven range bounds justify omitting strict input-centering corrections, while register scheduling reduces stack accesses.
Numbers (as extracted, not quote-checked)
- Zero-selector configuration encoded size at q=257, n=1024: 1033 bytes
- BAT 1040-byte format AVX2 decoding cycles: 2203 cycles
- Zero-selector checked AVX2 decoding cycles: 213 cycles
- Candidate-bit demand reduction at (769,1024) vs direct 10-bit rejection: 24.39%
- Four-polynomial generation AVX2 cycle reduction: 7.14-13.21%
- BAT encapsulation cost reduction: 39.93-55.25%
For builders
If you adopt a small-modulus lattice KEM such as BAT or END, these modulus-specific codecs and sampler tweaks are the cheap wins to borrow for public-key size and encap speed.
Limits
Optimizes KEM components only, not signatures or chain design; results are for specific C and AVX2 builds; overflow bound assumes independent uniform coefficients; based on the abstract only.
Topics: kem implementation-sidechannel benchmarks hybrid-schemes