A Framework with Improved Heuristics to Optimize Low-Latency Implementations of Linear Layers
DOI:
https://doi.org/10.46586/tosc.v2023.i4.489-510Keywords:
Lightweight cryptography, Linear layer, Low-latency implementation, AESAbstract
In recent years, lightweight cryptography has been a hot field in symmetric cryptography. One of the most crucial problems is to find low-latency implementations of linear layers. The current main heuristic search methods include the Boyar-Peralta (BP) algorithm with depth limit and the backward search. In this paper we firstly propose two improved BP algorithms with depth limit mainly by minimizing the Euclidean norm of the new distance vector instead of maximizing it in the tie-breaking process of the BP algorithm. They can significantly increase the potential for finding better results. Furthermore, we give a new framework that combines forward search with backward search to expand the search space of implementations, where the forward search is one of the two improved BP algorithms. In the new framework, we make a minor adjustment of the priority of rules in the backward search process to enable the exploration of a significantly larger search space. As results, we find better results for the most of matrices studied in previous works. For example, we find an implementation of AES MixColumns of depth 3 with 99 XOR gates, which represents a substantial reduction of 3 XOR gates compared to the existing record of 102 XOR gates.
Published
Issue
Section
License
Copyright (c) 2023 Haotian Shi, Xiutao Feng, Shengyuan Xu
This work is licensed under a Creative Commons Attribution 4.0 International License.