A team of researchers from Shandong University and the State Key Laboratory of Space Information System and Integrated Application has introduced a novel mixed-integer linear programming (MILP)-based model designed to optimize the hardware footprint of linear layers in lightweight symmetric-key cryptography. In a paper titled "Beyond Stepwise Transformation: MILP Model for Low-Area Implementations of Linear Layers," authors Pengju Zhao, Qun Liu, Jingwen Chen, Qingyuan Yu, Chenhao Jia, and Meiqin Wang demonstrate that moving past traditional stepwise frameworks can yield significantly more efficient circuit layouts across various standard gate libraries.
Lightweight symmetric-key cryptography is critical for securing resource-constrained environments, such as internet-of-things (IoT) devices, RFID tags, and embedded medical equipment, where hardware area, power consumption, and energy efficiency are paramount. Within these cryptographic architectures, linear layers play an essential role in providing diffusion, a core security property that ensures changes in plaintext propagate thoroughly throughout the ciphertext. To minimize the physical silicon area required to implement these linear layers in hardware, designers frequently rely on multi-input XOR gates. Across diverse gate libraries, utilizing multi-input XOR gates effectively reduces the overall circuit footprint compared to relying exclusively on basic two-input XOR gates. However, discovering the most optimal circuit implementations that combine XOR gates of varying input sizes has remained a persistent and complex challenge for hardware cryptographers.
The difficulty lies in the combinatorial explosion of potential circuit configurations when mixing different gate types. Previously, researchers attempted to tackle this complexity through heuristic methodologies. Notably, at the Topologic and Side-Channel Cryptography (ToSC) 2022 conference, Liu and colleagues proposed a heuristic stepwise framework. This framework was designed to construct lower-area implementations by iteratively upgrading circuits built from $n$-input XOR gates to incorporate $(n+1)$-input XOR gates. While this stepwise approach offered a structured pathway to finding hardware improvements, the research team behind the new 2026 study observed that such a strategy inherently restricts the broader search space. By taking a strictly incremental path, the stepwise method can miss globally optimized configurations, ultimately failing to uncover the lowest possible area implementations for certain cryptographic components.
To overcome the inherent limitations of stepwise transformation, the researchers developed a comprehensive MILP-based model. Unlike incremental heuristic methods, this new mathematical optimization model begins with a given baseline XOR2 circuit and systematically searches for lower-area implementations utilizing two-, three-, and four-input XOR gates within a precisely prescribed candidate space. The model operates by jointly selecting candidate coefficient vectors and admissible XOR implementations simultaneously. This integrated approach ensures the formation of a valid acyclic circuit that rigorously preserves the required mathematical outputs while strictly minimizing the total physical area according to predefined gate costs.
To validate the effectiveness of their novel MILP model, the researchers conducted extensive evaluations against previously published benchmarks. First, they re-evaluated the specific linear layer implementations originally reported by Liu et al. in their ToSC 2022 work. The results demonstrated that the new MILP model successfully yields lower-area implementations for the vast majority of representative linear layers examined.
A prominent example of this improvement is found in the evaluation of the Advanced Encryption Standard (AES) MixColumns operation. AES is the most widely used symmetric encryption standard in the world, making the hardware efficiency of its MixColumns transformation of great practical interest to industry and academia alike. Using the standard STM 130 nm gate library, the researchers’ MILP model successfully generated an implementation of the AES MixColumns operation requiring just 236.99 gate equivalents (GE). This represents a notable improvement over the previous state-of-the-art result of 243 GE achieved by earlier heuristic frameworks.
Beyond standard components like AES MixColumns, the research team scaled their testing to evaluate the MILP model on a vast collection of cryptographic primitives. Specifically, they tested the model on a set of more than 5,000 thirty-two by thirty-two maximum distance separable (MDS) matrices, which were originally proposed by Li et al. at ToSC 2019. MDS matrices are widely utilized in the design of modern block ciphers and cryptographic hashes to guarantee optimal diffusion properties, but their large matrix dimensions often translate to high hardware costs.
When applied to this extensive test suite of over 5,000 MDS matrices, the MILP model achieved dramatic area reductions. The optimization successfully reduced the average hardware area by up to approximately 28 percent when compared against the initial baseline XOR2 circuits. Furthermore, the model achieved up to an 8 percent reduction in average area over previous stepwise multi-input XOR implementations. These comprehensive evaluation results provide strong empirical evidence that jointly optimizing two-, three-, and four-input XOR gates within a unified search space is substantially more effective than traditional stepwise transformation strategies for minimizing the hardware footprint of cryptographic linear layers.






