Exhaustive Search for Various Types of MDS Matrices

Authors

  • Abhishek Kesarwani Department of Mathematics, Indian Institute of Technology Madras, Chennai - 600036, INDIA
  • Santanu Sarkar Department of Mathematics, Indian Institute of Technology Madras, Chennai - 600036, INDIA
  • Ayineedi Venkateswarlu Computer Science Unit, Indian Statistical Institute, Chennai Centre, Chennai - 600029, INDIA

DOI:

https://doi.org/10.13154/tosc.v2019.i3.231-256

Keywords:

Diffusion Layer, MDS Matrix, Circulant Matrix, Hadamard Matrix, Recursive MDS Matrix, Companion Matrix, Sparse DSI Matrix, XOR Count

Abstract

MDS matrices are used in the design of diffusion layers in many block ciphers and hash functions due to their optimal branch number. But MDS matrices, in general, have costly implementations. So in search for efficiently implementable MDS matrices, there have been many proposals. In particular, circulant, Hadamard, and recursive MDS matrices from companion matrices have been widely studied. In a recent work, recursive MDS matrices from sparse DSI matrices are studied, which are of interest due to their low fixed cost in hardware implementation. In this paper, we present results on the exhaustive search for (recursive) MDS matrices over GL(4, F2). Specifically, circulant MDS matrices of order 4, 5, 6, 7, 8; Hadamard MDS matrices of order 4, 8; recursive MDS matrices from companion matrices of order 4; recursive MDS matrices from sparse DSI matrices of order 4, 5, 6, 7, 8 are considered. It is to be noted that the exhaustive search is impractical with a naive approach. We first use some linear algebra tools to restrict the search to a smaller domain and then apply some space-time trade-off techniques to get the solutions. From the set of solutions in the restricted domain, one can easily generate all the solutions in the full domain. From the experimental results, we can see the (non) existence of (involutory) MDS matrices for the choices mentioned above. In particular, over GL(4, F2), we provide companion matrices of order 4 that yield involutory MDS matrices, circulant MDS matrices of order 8, and establish the nonexistence of involutory circulant MDS matrices of order 6, 8, circulant MDS matrices of order 7, sparse DSI matrices of order 4 that yield involutory MDS matrices, and sparse DSI matrices of order 5, 6, 7, 8 that yield MDS matrices. To the best of our knowledge, these results were not known before. For the choices mentioned above, if such MDS matrices exist, we provide base sets of MDS matrices, from which all the MDS matrices with the least cost (with respect to d-XOR and s-XOR counts) can be obtained. We also take this opportunity to present some results on the search for sparse DSI matrices over finite fields that yield MDS matrices. We establish that there is no sparse DSI matrix S of order 8 over F28 such that S8 is MDS.

Downloads

Published

2019-09-20

Issue

Section

Articles

How to Cite

Exhaustive Search for Various Types of MDS Matrices. (2019). IACR Transactions on Symmetric Cryptology, 2019(3), 231-256. https://doi.org/10.13154/tosc.v2019.i3.231-256