Optimizing implementations of linear layers

In this paper, we propose a new heuristic algorithm to search efficient implementations (in terms of Xor count) of linear layers used in symmetric-key cryptography. It is observed that the implementation cost of an invertible matrix is related to its matrix decomposition if sequential-Xor (s-Xor) me...

Full description

Saved in:
Bibliographic Details
Main Authors: Xiang, Zejun, Zeng, Xiangyong, Lin, Da, Bao, Zhenzhen, Zhang, Shasha
Other Authors: School of Physical and Mathematical Sciences
Format: Article
Language:English
Published: 2020
Subjects:
Online Access:https://hdl.handle.net/10356/145106
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-145106
record_format dspace
spelling sg-ntu-dr.10356-1451062023-02-28T19:34:04Z Optimizing implementations of linear layers Xiang, Zejun Zeng, Xiangyong Lin, Da Bao, Zhenzhen Zhang, Shasha School of Physical and Mathematical Sciences Science::Mathematics Linear Layer Implementation In this paper, we propose a new heuristic algorithm to search efficient implementations (in terms of Xor count) of linear layers used in symmetric-key cryptography. It is observed that the implementation cost of an invertible matrix is related to its matrix decomposition if sequential-Xor (s-Xor) metric is considered, thus reducing the implementation cost is equivalent to constructing an optimized matrix decomposition. The basic idea of this work is to find various matrix decompositions for a given matrix and optimize those decompositions to pick the best implementation. In order to optimize matrix decompositions, we present several matrix multiplication rules over F2, which are proved to be very powerful in reducing the implementation cost. We illustrate this heuristic by searching implementations of several matrices proposed recently and matrices already used in block ciphers and Hash functions, and the results show that our heuristic performs equally good or outperforms Paar’s and Boyar-Peralta’s heuristics in most cases. Ministry of Education (MOE) Nanyang Technological University Published version Zhenzhen Bao was partially supported by Nanyang Technological University in Singapore under Grant 04INS000397C230, and Singapore’s Ministry of Education under Grants RG18/19 and MOE2019-T2-1-060. 2020-12-11T02:09:04Z 2020-12-11T02:09:04Z 2020 Journal Article Xiang, Z., Zeng, X., Lin, D., Bao, Z., & Zhang, S. (2020). Optimizing implementations of linear layers. IACR Transactions on Symmetric Cryptology, 2020(2), 120-145. doi:10.13154/tosc.v2020.i2.120-145 2519-173X https://hdl.handle.net/10356/145106 10.13154/tosc.v2020.i2.120-145 2 2020 120 145 en 04INS000397C23 RG18/19 MOE2019-T2-1-060 IACR Transactions on Symmetric Cryptology © 2020 Zejun Xiang, Xiangyoung Zeng, Da Lin, Zhenzhen Bao, Shasha Zhang. This work is licensed under a Creative Commons Attribution 4.0 International License. application/pdf
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Science::Mathematics
Linear Layer
Implementation
spellingShingle Science::Mathematics
Linear Layer
Implementation
Xiang, Zejun
Zeng, Xiangyong
Lin, Da
Bao, Zhenzhen
Zhang, Shasha
Optimizing implementations of linear layers
description In this paper, we propose a new heuristic algorithm to search efficient implementations (in terms of Xor count) of linear layers used in symmetric-key cryptography. It is observed that the implementation cost of an invertible matrix is related to its matrix decomposition if sequential-Xor (s-Xor) metric is considered, thus reducing the implementation cost is equivalent to constructing an optimized matrix decomposition. The basic idea of this work is to find various matrix decompositions for a given matrix and optimize those decompositions to pick the best implementation. In order to optimize matrix decompositions, we present several matrix multiplication rules over F2, which are proved to be very powerful in reducing the implementation cost. We illustrate this heuristic by searching implementations of several matrices proposed recently and matrices already used in block ciphers and Hash functions, and the results show that our heuristic performs equally good or outperforms Paar’s and Boyar-Peralta’s heuristics in most cases.
author2 School of Physical and Mathematical Sciences
author_facet School of Physical and Mathematical Sciences
Xiang, Zejun
Zeng, Xiangyong
Lin, Da
Bao, Zhenzhen
Zhang, Shasha
format Article
author Xiang, Zejun
Zeng, Xiangyong
Lin, Da
Bao, Zhenzhen
Zhang, Shasha
author_sort Xiang, Zejun
title Optimizing implementations of linear layers
title_short Optimizing implementations of linear layers
title_full Optimizing implementations of linear layers
title_fullStr Optimizing implementations of linear layers
title_full_unstemmed Optimizing implementations of linear layers
title_sort optimizing implementations of linear layers
publishDate 2020
url https://hdl.handle.net/10356/145106
_version_ 1759856187229077504