A survey of metaheuristic algorithms for the design of cryptographic Boolean functions

Marko Djurasevic, Domagoj Jakobovic, Luca Mariot, Stjepan Picek

Boolean functions are fundamental components in modern cryptography, providing the necessary "confusion" to secure stream and block ciphers against linear cryptanalysis. As the complexity of cryptographic attacks evolves, the demand for Boolean functions with optimized properties—such as high nonlinearity, balancedness, and resiliency—has grown. However, finding these functions is a significant computational challenge.

A comprehensive survey by Djurasevic et al. explores 25 years of research into applying metaheuristic algorithms to this domain. These nature-inspired optimization techniques offer a promising alternative to traditional algebraic constructions, potentially uncovering novel functions that human intuition might overlook.

The Search Space Challenge

The primary obstacle in designing cryptographic Boolean functions is the sheer size of the search space. For a function with $n$ variables, the number of possible Boolean functions is $2^{2^n}$. As $n$ increases, this space grows at a super-exponential rate, making exhaustive search impossible even for relatively small values of $n$.

Growth of the search space for Boolean functions as the number of variables $n$ increases.

For example, at $n=8$, the search space contains $2^{256}$ functions—a number far exceeding the estimated number of atoms in the observable universe. Metaheuristics provide the intelligent navigation required to find high-performance "needles" in this massive "haystack."

Methodologies: Direct vs. Assisted Design

The survey categorizes metaheuristic approaches into two main philosophies:

1. Direct Design

In direct design, the algorithm searches for the Boolean function itself. The effectiveness of this approach is heavily dependent on the chosen representation:

  • Truth Table-based: Functions are represented as bitstrings. While straightforward, this method struggles with the "curse of dimensionality" beyond $n=12$.
  • Symbolic Representation: Using Genetic Programming (GP) or Cartesian Genetic Programming (CGP), functions are evolved as trees or graphs of logical gates. This is currently the most successful representation, capable of discovering complex structural patterns.
  • Spectral Domain: Optimization occurs in the Walsh-Hadamard frequency domain. While mathematically elegant for ensuring properties like resiliency, it faces the "spectral inversion" problem, where evolved spectra may not map back to valid Boolean functions.

2. Metaheuristic-Assisted Design

Rather than searching for a single function, these methods evolve construction rules (secondary constructions) that can generate multiple high-quality functions. This approach leverages the strengths of both algebraic theory and automated optimization.

Key Insights and Performance

The survey highlights several critical findings from the last quarter-century of research:

  • Representation Over Algorithm: The choice of "genotype" (how the function is represented) often impacts performance more than the specific optimization algorithm used.
  • The Success of GP: Genetic Programming has emerged as the "gold standard," successfully discovering balanced functions for $n=8$ with a nonlinearity of 116, matching the best-known results in the literature.
  • Scalability: While truth-table methods plateau early, symbolic methods like CGP have successfully evolved "bent" functions (those with maximum nonlinearity) for up to $n=16$ variables.

Future Frontiers

Despite significant progress, several challenges remain. The "118 wall"—finding a balanced $n=8$ function with a nonlinearity of 118—remains an open problem. Additionally, the survey suggests that exploring the Algebraic Normal Form (ANF) as a representation and using metaheuristics to discover entirely new primary algebraic building blocks are vital areas for future research.

Summary updated

BibTeX
@article{djurasevic2023survey,
  author = {Marko Djurasevic and Domagoj Jakobovic and Luca Mariot and Stjepan Picek},
  title = {{A survey of metaheuristic algorithms for the design of cryptographic Boolean functions}},
  journal = {Cryptogr. Commun.},
  year = {2023},
  doi = {10.1007/s12095-023-00662-2},
}
Figure