IACR Transactions on Symmetric Cryptology (Jun 2024)

A Framework to Improve the Implementations of Linear Layers

  • Yufei Yuan,
  • Wenling Wu,
  • Tairong Shi,
  • Lei Zhang,
  • Yu Zhang

DOI
https://doi.org/10.46586/tosc.v2024.i2.322-347
Journal volume & issue
Vol. 2024, no. 2

Abstract

Read online

This paper presents a novel approach to optimizing the linear layer of block ciphers using the matrix decomposition framework. It is observed that the reduction properties proposed by Xiang et al. (in FSE 2020) need to be improved. To address these limitations, we propose a new reduction framework with a complete reduction algorithm and swapping algorithm. Our approach formulates matrix decomposition as a new framework with an adaptive objective function and converts the problem to a Graph Isomorphism problem (GI problem). Using the new reduction algorithm, we were able to achieve lower XOR counts and depths of quantum implementations under the s-XOR metric. Our results outperform previous works for many linear layers of block ciphers and hash functions; some of them are better than the current g-XOR implementation. For the AES MixColumn operation, we get two implementations with 91 XOR counts and depth 13 of in-place quantum implementation, respectively.

Keywords