Abstract
In cryptographic design, Boolean functions must satisfy rigorous criteria, including high nonlinearity and balancedness, to resist linear and differential cryptanalysis. However, the search space for optimal functions grows exponentially with the number of inputs, making exhaustive search impossible for larger dimensions. This paper investigates the application of evolutionary algorithms to Rotation Symmetric Boolean Functions (RSBFs), a subclass of Boolean functions that significantly reduces the search space while maintaining desirable hardware properties. By comparing bitstring, floating-point, and tree-based encodings, we demonstrate that symmetry-aware representations allow generic metaheuristics to achieve results competitive with specialized, custom-designed heuristics.
Introduction
Boolean functions serve as the fundamental logic gates in symmetric-key cryptography, particularly within S-boxes. To ensure security, these functions must be as different as possible from linear functions, a property measured by nonlinearity ($nl_f$). Finding functions with high nonlinearity is a "needle-in-a-haystack" problem; for a function with $n=16$ inputs, the total number of possible functions is $2^{2^{16}}$, a figure that dwarfs the number of atoms in the observable universe.
To mitigate this complexity, researchers focus on Rotation Symmetric Boolean Functions (RSBFs). A Boolean function is rotation symmetric if its output remains unchanged under any cyclic shift of its input variables. This symmetry not only reduces the search space but also simplifies hardware implementation.
Search Space and RSBFs
The primary advantage of RSBFs is the dramatic reduction in the number of unique functions to be explored. While the general search space for $n$ variables is $2^{2^n}$, the RSBF space is reduced to $2^{g_n}$, where $g_n$ is the number of unique orbits under rotation. As shown in Figure 3, for $n=16$, the general search space contains $2^{65536}$ functions, whereas the RSBF space is limited to $2^{4116}$.
Evolutionary Methodology
This study evaluates three distinct encoding strategies for evolving RSBFs:
- Bitstring Encoding (TT): The function is represented as a bitstring where each bit corresponds to a unique orbit. This directly maps the genotype to the rotation-symmetric truth table.
- Floating Point Encoding (FP): A vector of real numbers is used, allowing for continuous optimization techniques like Artificial Bee Colony (ABC) or Differential Evolution (DE). These values are subsequently mapped to bit sequences.
- Tree Encoding (GP): Standard Genetic Programming represents functions as symbolic trees using logical gates (AND, XOR, etc.).
The fitness of these candidates is evaluated using the Walsh-Hadamard Transform to determine their distance from linearity.
Results and Performance
The experimental results revealed an "Encoding Paradox." While Tree Encoding (GP) is typically the standard for general Boolean function evolution, it performed poorly for RSBFs. This is likely due to the lack of a semantic link between symbolic tree structures and the specific requirements of rotation symmetry. Conversely, the bitstring and floating-point encodings, which leverage the reduced orbit-based search space, proved highly effective.
As illustrated in Figure 4, the evolutionary approach successfully matched best-known nonlinearity values for dimensions up to $n=12$. For larger dimensions ($n=14$ and $n=16$), the Floating Point Steady-State GA (FP-SST) emerged as the superior performer. Notably, the study reached the "bent" status (maximum possible nonlinearity) for $n=8$ using bitstring representations and consistently produced balanced functions with high nonlinearity, which are essential for practical cryptographic applications.
Conclusion
The success of generic metaheuristics in this domain suggests that the representation of the problem is often more critical than the complexity of the search algorithm itself. By constraining the search to the RSBF class through clever encoding, simple algorithms can outperform highly specialized heuristics. Future work will explore combining these evolutionary techniques with algebraic constructions to find bent functions in even higher dimensions ($n > 20$) and extending the search to Vectorial RSBFs for direct S-box design.
Summary updated