TL;DR
This paper introduces the first bit-vector differential model for modular addition with a constant, a crucial operation in ARX ciphers that has been a bottleneck for automated cryptanalysis. This new model, combined with an SMT-based search tool, enables more comprehensive security evaluations of ARX ciphers, allowing designers to choose better constants and cryptanalysts to assess their resistance to differential attacks.
What Problem Does This Paper Address?
Lightweight ARX (Addition, Rotation, XOR) ciphers are popular for resource-constrained devices like IoT sensors. Evaluating their security against differential cryptanalysis is vital, and automated methods using SMT solvers are becoming standard. However, a key challenge has been the lack of efficient bit-vector differential models for non-linear operations, particularly modular addition by a constant. Existing models for modular addition with two variable inputs couldn't be directly applied, leaving ARX ciphers incorporating constant additions vulnerable to incomplete security analysis. This paper bridges that gap by providing the missing piece for automated differential cryptanalysis of such ciphers.
Methods
The core contribution is a novel bit-vector differential model for the n-bit modular addition by a constant. This model consists of two parts:
- Validity Formula: A bit-vector formula that efficiently determines if a given differential over the constant addition has a non-zero probability. This formula has a bit-vector complexity of O(1).
- Weight Function: A bit-vector function that computes an approximation of the differential weight (the negative logarithm of the differential probability). This function has a complexity of O(log n) and relies on bit-vector operations like Hamming weight, bit-reversal, and newly developed functions for binary logarithms.
To leverage this model, the authors also present an SMT-based automated search method. This method formulates the search for optimal characteristics as a series of SMT problems, encoded from the cipher's SSA representation. The tool ArxPy was developed to implement this method, allowing users to define ARX ciphers and automatically find differential characteristics.
Datasets
Not discussed in the paper. The paper focuses on developing a model and an automated search method, and then applies it to existing ciphers.
Key Insights and Ideas
- The missing piece for ARX analysis: The lack of a bit-vector differential model for modular addition by a constant was a significant roadblock for automated differential cryptanalysis of ARX ciphers. This paper provides that crucial component.
- Efficiency matters: The proposed model is designed for efficiency within SMT solvers, using O(1) bit-vector constraints for validity and O(log n) for weight calculation, making it practical for automated searches.
- Approximation is key for weight: Representing the exact differential probability (or its logarithm) as a fixed-size bit-vector is impossible. The paper ingeniously uses an approximation for the binary logarithm and carefully bounds the resulting error.
- Automated search is powerful: The ArxPy tool demonstrates the practical application of the new model, enabling the discovery of previously unknown or improved differential characteristics for established ciphers.
Key Results
- The paper presents the first efficient bit-vector differential model for n-bit modular addition by a constant.
- An SMT-based automated search method and the open-source tool ArxPy are introduced.
- The method was applied to TEA, XTEA, HIGHT, and LEA, finding improved related-key differential characteristics compared to previous works. For instance, for TEA, they found three full-round characteristics with total weight 0, and for XTEA, they improved upon the best-known strong and weak related-key characteristics.
Limitations and Future Work
- Approximation Error: While the paper provides tight bounds for the approximation error of the differential weight, it is still an approximation. Future work could explore other approximations that improve the bit-vector complexity or reduce the approximation error.
- Other Operations: The paper focused on modular addition by a constant. The authors suggest that obtaining differential models for other simple operations, like modular multiplication, would further enhance the flexibility and efficiency of ARX cipher design and analysis.
- Empirical Verification: For related-key characteristics, the paper notes that standard assumptions like round independence may not always hold. They empirically verify each characteristic, which is a practical approach but could be further refined.
Summary updated