Masking Kyber: First- and Higher-Order Implementations
Presents the first fully masked Kyber implementation resistant to first- and higher-order side-channel attacks, with new masked compression techniques and Cortex-M benchmarks.
Schemes: Kyber, ML-KEM
Findings (quotes checked against the source text)
-
First completely masked Kyber implementation, protected against first- and higher-order attacks; claimed as first higher-order masked implementation of any PQ KEM.
In this work, we demonstrate the first completely masked implementation of Kyber which is protected against first- and higher-order attacks.
-
Masked bit-sliced binary-search one-bit compression, applicable to prime moduli, enables higher-order masking of compression.
First, we propose a higher-order algorithm for the one-bit compression operation.
-
Comparing uncompressed masked polynomials with compressed public polynomials avoids costly masking of ciphertext compression and works at arbitrary orders.
This avoids the costly masking of the ciphertext compression while being able to be instantiated at arbitrary orders.
-
First-order protected Kyber decapsulation has about 3.5x overhead versus unprotected pqm4 on Cortex-M4F.
This is a factor 3.5 overhead compared to the unprotected optimized implementation in pqm4.
-
First-order implementation of new modules on Cortex-M0+ withstood attacks at 100 000 traces, and security was mechanically verified with scVerif.
We experimentally show that the first-order implementation of our new modules on the Cortex-M0+ is hardened against attacks using 100 000 traces and mechanically verify the security in a fine-grained leakage model using the verification tool scVerif.
Numbers (as extracted, not quote-checked)
- First-order masked Kyber decapsulation cycles on Cortex-M4F: 3.1 million cycles
- Overhead vs unprotected pqm4 Kyber on Cortex-M4F: factor 3.5
- Traces for first-order attack resistance test on Cortex-M0+ (new modules): 100 000
For builders
If a PQ chain runs Kyber/ML-KEM on embedded or hardware wallets, budget for masking overhead and use masked compression rather than masking ciphertext compression directly.
Limits
Targets embedded Cortex-M0+/M4F only; KEM side-channel work, not signatures or chain design; higher-order results are reported for arbitrary orders, but full benchmarks are only shown for first, second and third order.
Topics: kem implementation-sidechannel benchmarks