Paper 2025/1493
Revisit the Boyar-Peralta Algorithm to Solve the Shortest Linear Program Problem
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.
- Keywords
- Linear LayerImplementationXOR CountsAESBP Algorithm
- Contact author(s)
-
sunyao @ iie ac cn
yangrunhe @ iie ac cn
liting @ iie ac cn - History
- 2025-11-13: last of 2 revisions
- 2025-08-19: received
- See all versions
- Short URL
- https://ia.cr/2025/1493
- License
-
CC BY
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}
}