Paper 2026/3077

Beyond Stepwise Transformation: MILP Model for Low-Area Implementations of Linear Layers

Pengju Zhao, Shandong University
Qun Liu, Shandong University
Jingwen Chen, Shandong University
Qingyuan Yu, State Key Laboratory of Space Information System and Integrated Application
Chenhao Jia, Shandong University
Meiqin Wang, Shandong University
Abstract

Low-area linear layers play an important role in lightweight symmetric-key cryptography. Across gate libraries, multi-input XOR gates are effective in reducing the area of linear layers, but finding lower-area implementations using XOR gates of different input sizes remains challenging. At ToSC 2022, Liu et al. proposed a heuristic stepwise framework that constructs lower-area implementations with \(n+1\)-input XOR gates from given implementations with \(n\)-input XOR gates. However, we observe that such a stepwise strategy may restrict the search space and fail to find lower-area implementations. To address this limitation, we propose a mixed-integer linear programming (MILP)-based model that starts from a given XOR2 circuit and searches for lower-area implementations with two-, three-, and four-input XOR gates within a prescribed candidate space. It jointly selects candidate coefficient vectors and admissible XOR implementations to form a valid acyclic circuit that preserves the required outputs and minimizes the area under the given gate costs. Using the proposed MILP-based model, we first re-evaluate the implementations reported by Liu et al. and obtain lower-area implementations for most of the representative linear layers. For AES MixColumns, we obtain an implementation requiring 236.99 gate equivalents (GE) in the STM 130 nm library, improving upon the previous result of 243 GE. We then evaluate the MILP model on a set of more than 5000 \(32 \times 32\) maximum distance separable (MDS) matrices proposed by Li et al. at ToSC 2019 and reduce their average area by up to about 28% over the initial XOR2 circuits and 8% over previous stepwise multi-input XOR implementations. These results indicate that jointly optimizing two-, three-, and four-input XOR gates within the prescribed search space can be more effective than stepwise transformation in obtaining lower-area implementations of linear layers.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Published by the IACR in TOSC 2026
Keywords
Symmetric-Key CryptographyLinear LayersMulti-Input XOR GatesLow Area
Contact author(s)
pengjuzhao @ mail sdu edu cn
qunliu @ sdu edu cn
jingwenchen @ mail sdu edu cn
yu_qingyuan @ yeah net
chenhaojia @ mail sdu edu cn
mqwang @ sdu edu cn
History
2026-11-27: approved
2026-11-27: received
See all versions
Short URL
https://ia.cr/2026/3077
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/3077,
      author = {Pengju Zhao and Qun Liu and Jingwen Chen and Qingyuan Yu and Chenhao Jia and Meiqin Wang},
      title = {Beyond Stepwise Transformation: {MILP} Model for Low-Area Implementations of Linear Layers},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3077},
      year = {2026},
      url = {https://eprint.iacr.org/2026/3077}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.