In-depth Analysis of Side-Channel Countermeasures for CRYSTALS-Kyber Message Encoding on ARM Cortex-M4
Analyzes power side-channel leakage in CRYSTALS-Kyber message encoding on ARM Cortex-M4, comparing six implementations; shows Hamming-distance-only masking is vulnerable to single-trace attacks.
Schemes: CRYSTALS-Kyber
Findings (quotes checked against the source text)
-
Implementations that only minimize Hamming distance of intermediate values remain vulnerable to single-trace power attacks on Cortex-M4.
We show that introducing randomization countermeasures is crucial as all examined implementations aiming at reducing the leakage by minimizing the Hamming distance of the processed intermediate values only are vulnerable against single-trace attacks when implemented on an ARM Cortex-M4.
-
Six Kyber message-encoding implementations with increasing countermeasure degree were compared, with four new ones developed by the authors.
By analyzing the power consumption side-channel during message encoding we develop four more and compare six different implementations with an increasing degree of countermeasures.
-
Several NIST round-3 reference implementations are only partly timing-constant and do not address other side-channels.
Although several of the reference implementations currently in the third and final standardization round are - to some extent - implemented in a timing-constant fashion, resistance against other side-channels is not taken into account yet.
For builders
Treat randomized masking, not just Hamming-distance reduction, as the required countermeasure for Kyber-style message encoding in any embedded or wallet-signing deployment.
Limits
Based on the ePrint abstract only (full text not available to the pipeline); results are specific to power analysis on ARM Cortex-M4 and Kyber message encoding.
Topics: implementation-sidechannel kem sig-lattice