Cryptology ePrint Archive: Report 2022/231

Towards Low-Latency Implementation of Linear Layers

Qun Liu and Weijia Wang and Yanhong Fan and Lixuan Wu and Ling Sun and Meiqin Wang

Abstract: Lightweight cryptography features a small footprint and/or low computational complexity. Low-cost implementations of linear layers usually play an important role in lightweight cryptography. Although it has been shown by Boyar et al. that finding the optimal implementation of a linear layer is a Shortest Linear Program (SLP) problem and NP-hard, there exist a variety of heuristic methods to search for near-optimal solutions. This paper considers the low-latency criteria and focuses on the heuristic search of lightweight implementation for linear layers. Most of the prior approach iteratively combines the inputs (of linear layers) to reach the output, which can be regarded as the forward search. To better adapt the low-latency criteria, we propose a new framework of backward search that attempts to iteratively split every output (into an XORing of two bits) until all inputs appear. By bounding the time of splitting, the new framework can find a sub-optimal solution with a minimized depth of circuits. We apply our new search algorithm to linear layers of block ciphers and find many low-latency candidates for implementations. Notably, for AES Mixcolumns, we provide an implementation with 103 XOR gates with a depth of 3, which is among the best hardware implementations of the AES linear layer. Besides, we obtain better implementations in XOR gates for 54.3% of 4256 Maximum Distance Separable (MDS) matrices proposed by Li et al. at FSE 2019. We also achieve an involutory MDS matrix (in M4(GL(8, F_2))) whose implementation uses the lowest number (i.e., 86, saving 2 from the state-of-the-art result) of XORs with the minimum depth.

Category / Keywords: secret-key cryptography / Lightweight cryptography, Linear layers, Low latency, AES

Original Publication (with minor differences): IACR-FSE-2022

Date: received 23 Feb 2022

Contact author: qunliu at mail sdu edu cn

Available format(s): PDF | BibTeX Citation

Version: 20220225:080657 (All versions of this report)

Short URL: ia.cr/2022/231


[ Cryptology ePrint archive ]