Paper 2023/196
On Two Factors Affecting the Efficiency of MILP Models in Automated Cryptanalyses
Abstract
In recent years, mixed integer linear programming (MILP, in short) gradually becomes a popular tool of automated cryptanalyses in symmetric ciphers, which can be used to search differential characteristics and linear approximations with high probability/correlation. A key problem in the MILP method is how to build a proper model that can be solved efficiently in the MILP solvers like Gurobi or Cplex. It is known that a MILP problem is NP-hard, and the numbers of variables and inequalities are two important measures of its scale and time complexity. Whilst the solution space and the variables in many MILP models built for symmetric cryptanalyses are fixed without introducing dummy variables, the cardinality, i.e., the number of inequalities, is a main factor that might affect the runtime of MILP models. We notice that the norm of a MILP model, i.e., the maximal absolute value of all coefficients in its inequalities, is also an important factor affecting its runtime. In this work we will illustrate the effects of two parameters cardinality and norm of inequalities on the runtime of Gurobi by a large number of cryptanalysis experiments. Here we choose the popular MILP solver Gurobi and view it a black box, construct a large number of MILP models with different cardinalities or norms by means of differential analyses and impossible differential analyses for some classic block ciphers with SPN structure, and observe their runtimes in Gurobi. As a result, our experiments show that although minimizing the number of inequalities and the norm of coefficients might not always minimize the runtime, it is still a better choice in most situations.
Metadata
- Available format(s)
- Category
- Foundations
- Publication info
- Preprint.
- Keywords
- Automated cryptanalysisMILPFLIICCardinalityNorm
- Contact author(s)
-
xushengyuan18 @ amss ac cn
fengxt @ amss ac cn
wangyongxing @ amss ac cn - History
- 2023-02-15: approved
- 2023-02-15: received
- See all versions
- Short URL
- https://ia.cr/2023/196
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2023/196, author = {Shengyuan Xu and Xiutao Feng and Yongxing Wang}, title = {On Two Factors Affecting the Efficiency of {MILP} Models in Automated Cryptanalyses}, howpublished = {Cryptology {ePrint} Archive, Paper 2023/196}, year = {2023}, url = {https://eprint.iacr.org/2023/196} }