Paper 2023/196

On Two Factors Affecting the Efficiency of MILP Models in Automated Cryptanalyses

Shengyuan Xu, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, University of Chinese Academy of Sciences
Xiutao Feng, Academy of Mathematics and Systems Science, Chinese Academy of Sciences
Yongxing Wang, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, University of Chinese Academy of Sciences
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)
PDF
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
Creative Commons Attribution
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},
      note = {\url{https://eprint.iacr.org/2023/196}},
      url = {https://eprint.iacr.org/2023/196}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.