International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Efficient Algorithm for Generating Optimal Inequality Candidates for MILP Modeling of Boolean Functions

Authors:
Alexander Bille , University of Marburg
Elmar Tischhauser , University of Marburg
Download:
DOI: 10.62056/ahvr-zoja5
URL: https://cic.iacr.org//p/1/3/38
Search ePrint
Search Google
Abstract:

Mixed-Integer Linear Programming (MILP) modeling has become an important tool for both the analysis and the design of symmetric cryptographic primitives. The bit-wise modeling of their nonlinear components, especially the S-boxes, is of particular interest since it allows more informative analysis compared to word-oriented models focusing on counting active S-boxes. At the same time, the size of these models, especially in terms of the number of required inequalities, tends to significantly influence and ultimately limit the applicability of this method to real-world ciphers, especially for larger number of rounds.

It is therefore of great cryptographic significance to study optimal linear inequality descriptions for Boolean functions. The pioneering works of Abdelkhalek et al. (FSE 2017), Boura and Coggia (FSE 2020) and Li and Sun (FSE 2023) provided various heuristic techniques for this computationally hard problem, decomposing it into two algorithmic steps, coined Problem 1 and Problem 2, with the latter being identical to the well-known NP-hard set cover problem, for which there are many heuristic and exact algorithms in the literature.

In this paper, we introduce a novel and efficient branch-and-bound algorithm for generating all minimal, non-redundant candidate inequalities that satisfy a given Boolean function, therefore solving ProblemĀ 1 in an optimal manner without relying on heuristics. We furthermore prove that our algorithm correctly computes optimal solutions. Using a number of dedicated optimizations, it provides significantly improved runtimes compared to previous approaches and allows the optimal modeling of the difference distribution tables (DDT) and linear approximation tables (LAT) of many practically used S-boxes. The source code for our algorithm is publicly available as a tool for researchers and practitioners in symmetric cryptography.

BibTeX
@article{cic-2024-34849,
  title={Efficient Algorithm for Generating Optimal Inequality Candidates for MILP Modeling of Boolean Functions},
  journal={cic},
  publisher={International Association for Cryptologic Research},
  volume={1, Issue 3},
  url={https://cic.iacr.org//p/1/3/38},
  doi={10.62056/ahvr-zoja5},
  author={Alexander Bille and Elmar Tischhauser},
  year=2024
}