@article{Kesarwani_Sarkar_Venkateswarlu_2019, title={Exhaustive Search for Various Types of MDS Matrices}, volume={2019}, url={https://tosc.iacr.org/index.php/ToSC/article/view/8364}, DOI={10.13154/tosc.v2019.i3.231-256}, abstractNote={<p>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 <em>GL</em>(4<em>, </em>F2). Specifically, circulant MDS matrices of order 4<em>, </em>5<em>, </em>6<em>, </em>7<em>, </em>8; Hadamard MDS matrices of order 4<em>, </em>8; recursive MDS matrices from companion matrices of order 4; recursive MDS matrices from sparse DSI matrices of order 4<em>, </em>5<em>, </em>6<em>, </em>7<em>, </em>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 <em>GL</em>(4<em>, </em>F<sub>2</sub>), 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<em>, </em>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<em>, </em>6<em>, </em>7<em>, </em>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 <em>d</em>-XOR and <em>s</em>-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 <em>S </em>of order 8 over F<sub>2</sub><sup>8</sup> such that <em>S</em><sup>8</sup> is MDS.</p>}, number={3}, journal={IACR Transactions on Symmetric Cryptology}, author={Kesarwani, Abhishek and Sarkar, Santanu and Venkateswarlu, Ayineedi}, year={2019}, month={Sep.}, pages={231-256} }