Bitslicing Arithmetic/Boolean Masking Conversions for Fun and Profit with Application to Lattice-Based KEMs
Speeds up arithmetic/Boolean masking conversion gadgets via bitslicing, and builds masked Kyber768 and Saber on Cortex-M4 at arbitrary order.
Schemes: Kyber768, Saber, Keccak-f[1600]
Findings (quotes checked against the source text)
-
Bitslicing accelerates existing arithmetic-to-Boolean and Boolean-to-arithmetic masking conversion gadgets, and optimizing them under bitslicing yields new arbitrary-order gadgets.
In this paper, we first show that bitslicing can indeed accelerate existing conversion gadgets.
-
New gadgets achieve up to 25x speedup over the state of the art for masking conversions.
Practically, our new gadgets achieve a speedup of up to 25x over the state of the art.
-
Bitsliced gadgets give 1.8x speedup for masked Kyber and 3x for masked Saber versus state-of-the-art gadgets on Cortex-M4.
The implementations based on the new bitsliced gadgets achieve a speedup of 1.8x for Kyber and 3x for Saber, compared to the implementation based on state of the art gadgets.
-
The masked Keccak-f[1600] permutation is the bottleneck of the bitsliced implementations.
The bottleneck of the bitslice implementations is the masked Keccak-f[1600] permutation.
Numbers (as extracted, not quote-checked)
- Masking conversion gadget speedup vs state of the art: up to 25x
- Masked Kyber768 speedup (bitsliced vs prior gadgets, Cortex-M4): 1.8x
- Masked Saber speedup (bitsliced vs prior gadgets, Cortex-M4): 3x
For builders
If a PQ chain ships masked lattice-KEM code on embedded or constrained signers, bitsliced conversion gadgets are a performance option, but the Keccak masking cost will dominate.
Limits
Evaluated only on Cortex-M4 embedded targets for Kyber768 and Saber; based on the abstract only, not the full text; masking is side-channel countermeasure, not a chain design.
Topics: implementation-sidechannel kem benchmarks