Further Results on Efficient Implementations of Block Cipher Linear Layers

被引:8
作者
Banik, Subhadeep [1 ]
Funabiki, Yuki [2 ]
Isobe, Takanori [3 ]
机构
[1] Ecole Polytech Fed Lausanne, LASEC, Lausanne, Switzerland
[2] Sony Corp, Tokyo 1080075, Japan
[3] Univ Hyogo, Grad Sch Appl Informat, Kobe, Hyogo 6500047, Japan
基金
日本学术振兴会; 瑞士国家科学基金会;
关键词
lightweight; MDS matrices; straight line programs; MDS MATRICES; FAMILY;
D O I
10.1587/transfun.2020CIP0013
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
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 FSE conference of ToSC 2019, Li et al. had tweaked the Boyar-Peralta algorithm to get low depth implementations of many matrices. We show that by introducing randomness in the tweaked algorithm, it is again possible to get low depth implementations with lesser number of gates than the above paper. As a result, we report a depth implementation of the AES mixcolumn matrix that uses only 103 xor gates, which is 2 gates less than the previous implementation. 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.
引用
收藏
页码:213 / 225
页数:13
相关论文
共 41 条
  • [1] Albrecht MR, 2014, LECT NOTES COMPUT SC, V8616, P57, DOI 10.1007/978-3-662-44371-2_4
  • [2] [Anonymous], 2000, Primitive Submitted to NESSIE
  • [3] Direct Construction of Recursive MDS Diffusion Layers Using Shortened BCH Codes
    Augot, Daniel
    Finiasz, Matthieu
    [J]. FAST SOFTWARE ENCRYPTION, FSE 2014, 2015, 8540 : 3 - 17
  • [4] Avanzi R, 2017, IACR T SYMMETRIC CRY, V2017, P4, DOI 10.13154/tosc.v2017.i1.4-44
  • [5] Banik Subhadeep, 2016, Selected Areas in Cryptography - SAC 2015. 22nd International Conference. Revised Selected Papers: LNCS 9566, P178, DOI 10.1007/978-3-319-31301-6_10
  • [6] More Results on Shortest Linear Programs
    Banik, Subhadeep
    Funabiki, Yuki
    Isobe, Takanori
    [J]. ADVANCES IN INFORMATION AND COMPUTER SECURITY, IWSEC 2019, 2019, 11689 : 109 - 128
  • [7] Midori: A Block Cipher for Low Energy
    Banik, Subhadeep
    Bogdanov, Andrey
    Isobe, Takanori
    Shibutani, Kyoji
    Hiwatari, Harunaga
    Akishita, Toru
    Regazzoni, Francesco
    [J]. ADVANCES IN CRYPTOLOGY - ASIACRYPT 2015, PT II, 2015, 9453 : 411 - 436
  • [8] Barreto P.S.L.M., 2000, ANUBIS BLOCK C UNPUB
  • [9] Whirlwind: a new cryptographic hash function
    Barreto, Paulo
    Nikov, Ventzislav
    Nikova, Svetla
    Rijmen, Vincent
    Tischhauser, Elmar
    [J]. DESIGNS CODES AND CRYPTOGRAPHY, 2010, 56 (2-3) : 141 - 162
  • [10] 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]