Higher-Order Masked Ciphertext Comparison for Lattice-Based Cryptography
Shows a first-order masked hash comparison in Kyber is broken by a collision attack, then gives a faster higher-order masked ciphertext comparison for FO-transform lattice KEMs.
Schemes: Kyber, Saber, Kyber512, Fujisaki-Okamoto transform, Oder et al. hash-based masked comparison, Bache et al. higher-order comparison, Bos et al. higher-order comparison, TVLA
Findings (quotes checked against the source text)
-
The first-order hash-based masked comparison used in Kyber is vulnerable to a relatively simple side-channel collision attack that recovers a Kyber512 key.
we first demonstrate that the hash-based approach, and likely many similar first-order techniques, succumb to a relatively simple side-channel collision attack.
-
The new higher-order masked comparison algorithm is substantially faster than Bos et al. on ARM Cortex-M4 at 2nd and 3rd order.
Our new method is 4.2x, resp. 7.5x, faster than the method of Bos et al. for a 2nd, resp. 3rd, -order masking on the ARM Cortex-M4
-
Unlike Bache et al., the new comparison technique accounts for ciphertext compression.
unlike the method of Bache et al., the new technique takes ciphertext compression into account
-
The authors prove correctness and masking security of the new algorithm and verify side-channel security of their implementation with TVLA.
We prove correctness, security, and masking security in detail and provide performance numbers for 2nd and 3rd-order implementations.
Numbers (as extracted, not quote-checked)
- Kyber512 key recovery traces for collision attack: 6000 traces
- Speedup vs Bos et al. at 2nd-order masking (ARM Cortex-M4): 4.2x
- Speedup vs Bos et al. at 3rd-order masking (ARM Cortex-M4): 7.5x
For builders
If your chain uses Kyber-style FO-transform KEMs, avoid first-order hash-based ciphertext comparison and use a higher-order masked comparison where side channels matter.
Limits
Targets embedded side-channel masking on ARM Cortex-M4 only; the paper says the collision attack does not break security claims; full text was not read, only the abstract.
Topics: kem implementation-sidechannel benchmarks cryptanalysis