Paper 2025/1493 Original: eprint.iacr.org/2025/1493 ↗

Revisit the Boyar-Peralta Algorithm to Solve the Shortest Linear Program Problem

Yao Sun
Runhe Yang
Ting Li
Abstract

The efficiency of circuit implementations for cryptographic algorithms is crucial for their practical deployment. The implementation cost of the linear layer can be evaluated by the number of XOR operations, typically measured in generalized XOR (g-\xor) and serial XOR (s-XOR). Finding the minimal sequence of g-XOR operations constitutes the Shortest Linear Program (SLP) problem. Existing approaches generally address this problem through a two-stage framework: generating an initial sequence followed by local optimization, both stages essentially solving the SLP problem. The Boyar-Peralta (BP) algorithm serves as a foundational heuristic for addressing the SLP problem and has been extensively adopted in subsequent research; however, its computational inefficiency presents a significant limitation for practical applications, especially in large-scale problems. This paper proposes a novel implementation framework for the BP algorithm based on linear combinations, significantly enhancing its computational efficiency. We further introduce a new strategy for selecting subsequences during local optimization, replacing the random selection strategy employed in previous works. By analyzing the structural properties of the Advanced Encryption Standard (AES) linear layer matrix and applying our proposed methods, we achieve the first implementation requiring only 89 g-XOR operations, improving upon the previous best result of 91 g-XOR operations reported in prior literature.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2025-11-13: last updated
2025-08-19: published
Short URL
https://ia.cr/2025/1493
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2025/1493,
      author = {Yao Sun and Runhe Yang and Ting Li},
      title = {Revisit the Boyar-Peralta Algorithm to Solve the Shortest Linear Program Problem},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1493},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1493}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.