More Results on Shortest Linear Programs

被引:18
作者
Banik, Subhadeep [1 ]
Funabiki, Yuki [2 ]
Isobe, Takanori [3 ,4 ]
机构
[1] Ecole Polytech Fed Lausanne, LASEC, Lausanne, Switzerland
[2] Sony Corp, Tokyo, Japan
[3] Natl Inst Informat & Commun Technol, Tokyo, Japan
[4] Univ Hyogo, Kobe, Hyogo, Japan
来源
ADVANCES IN INFORMATION AND COMPUTER SECURITY, IWSEC 2019 | 2019年 / 11689卷
基金
瑞士国家科学基金会; 日本学术振兴会;
关键词
MDS MATRICES; BLOCK CIPHER; FAMILY;
D O I
10.1007/978-3-030-26834-3_7
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
At the FSE conference of ToSC 2018, Kranz et al. presented their results on shortest linear programs for the linear layers of several well known block ciphers in literature. Shortest linear programs are essentially the minimum number of 2-input xor gates required to completely describe a linear system of equations. In the above paper the authors showed that the commonly used metrics like d-xor/s-xor count that are used to judge the "lightweightedness" do not represent the minimum number of xor gates required to describe a given MDS matrix. In fact they used heuristic based algorithms of Boyar/Peralta and Paar to find implementations of MDS matrices with even fewer xor gates than was previously known. They proved that the AES mixcolumn matrix can be implemented with as little as 97 xor gates. In this paper we show that the values reported in the above paper are not optimal. By suitably including random bits in the instances of the above algorithms we can achieve implementations of almost all matrices with lesser number of gates than were reported in the above paper. As a result we report an implementation of the AES mixcolumn matrix that uses only 95 xor gates. In the second part of the paper, we observe that most standard cell libraries contain both 2 and 3-input xor gates, with the silicon area of the 3-input xor gate being smaller than the sum of the areas of two 2-input xor gates. Hence when linear circuits are synthesized by logic compilers (with specific instructions to optimize for area), most of them would return a solution circuit containing both 2 and 3-input xor gates. Thus from a practical point of view, reducing circuit size in presence of these gates is no longer equivalent to solving the shortest linear program. In this paper we show that by adopting a graph based heuristic it is possible to convert a circuit constructed with 2-input xor gates to another functionally equivalent circuit that utilizes both 2 and 3-input xor gates and occupies less hardware area. As a result we obtain more lightweight implementations of all the matrices listed in the ToSC paper.
引用
收藏
页码:109 / 128
页数:20
相关论文
共 37 条
[1]  
Albrecht MR, 2014, LECT NOTES COMPUT SC, V8616, P57, DOI 10.1007/978-3-662-44371-2_4
[2]   Direct Construction of Recursive MDS Diffusion Layers Using Shortened BCH Codes [J].
Augot, Daniel ;
Finiasz, Matthieu .
FAST SOFTWARE ENCRYPTION, FSE 2014, 2015, 8540 :3-17
[3]  
Avanzi R, 2017, IACR T SYMMETRIC CRY, V2017, P4, DOI 10.13154/tosc.v2017.i1.4-44
[4]   Midori: A Block Cipher for Low Energy [J].
Banik, Subhadeep ;
Bogdanov, Andrey ;
Isobe, Takanori ;
Shibutani, Kyoji ;
Hiwatari, Harunaga ;
Akishita, Toru ;
Regazzoni, Francesco .
ADVANCES IN CRYPTOLOGY - ASIACRYPT 2015, PT II, 2015, 9453 :411-436
[5]  
Barreto P.S.L.M., 2000, KHAZAD LEGACY LEVEL
[6]   Whirlwind: a new cryptographic hash function [J].
Barreto, Paulo ;
Nikov, Ventzislav ;
Nikova, Svetla ;
Rijmen, Vincent ;
Tischhauser, Elmar .
DESIGNS CODES AND CRYPTOGRAPHY, 2010, 56 (2-3) :141-162
[7]  
Barreto Paulo, 2000, 1 OP NESSIE WORKSH
[8]  
Barreto PauloS. L. M., 2011, ENCY CRYPTOGRAPHY SE, DOI [10.1007/978-1-4419-5906-5_626, DOI 10.1007/978-1-4419-5906-5_626]
[9]   Lightweight Multiplication in GF(2n) with Applications to MDS Matrices [J].
Beierle, Christof ;
Kranz, Thorsten ;
Leander, Gregor .
ADVANCES IN CRYPTOLOGY - CRYPTO 2016, PT I, 2016, 9814 :625-653
[10]   The SKINNY Family of Block Ciphers and Its Low-Latency Variant MANTIS [J].
Beierle, Christof ;
Jean, Jeremy ;
Koelbl, Stefan ;
Leander, Gregor ;
Moradi, Amir ;
Peyrin, Thomas ;
Sasaki, Yu ;
Sasdrich, Pascal ;
Sim, Siang Meng .
ADVANCES IN CRYPTOLOGY (CRYPTO 2016), PT II, 2016, 9815 :123-153