Minimum XOR gate counts found for secure data encoding matrices

Bounds on the Binary Addition Sequence Length of Block MDS Matrices

Cryptography and Security

Summary

This paper studies how to measure the smallest number of two-input XOR gates needed to build certain types of data coding and encryption components, called MDS matrices. The authors develop mathematical methods to find lower limits on this number based on the matrix size and block structure. They produce formulas and bounds showing how complex such circuits must be, improving knowledge about efficient designs. These results help understand the theoretical limits of building secure and error-resistant coding systems.

What this means in practice

  • For cryptographic engineers: Determine the minimal XOR gate usage when designing secure diffusion layers for encryption algorithms using MDS matrices.
  • For error correction designers: Establish lower bounds on circuit complexity for implementing efficient MDS array-code encoders with binary components.

A theory result. No direct application yet.

Authors

Jianhua Wang, Chunhuan Zhao, Zhen Liu, Siwei Sun

Abstract

Binary addition sequence length measures the two-input XOR-gate count in combinational realizations of MDS array-code encoders and cryptographic diffusion layers. We study its joint minimum $f_{\oplus}(s,k)$ over all $s\times s$ maximum distance separable (MDS) block matrices with arbitrary $k\times k$ binary blocks and all addition sequences representing them, allowing unrestricted reuse of computed sums. For lower bounds, we write the defining equations of a shortest sequence as a linear system. Setting the auxiliary forms to zero partitions the input and output coordinates into classes, and the MDS property determines the minimum size of every class whose common value remains free. We then construct weighted auxiliary assignments satisfying the coordinate-pair equations and process them until all remaining relations hold. The MDS property bounds the required coordinate weight from below, while occurrences in the defining equations bound the same quantity from above. Refining this comparison for the individual coordinate classes gives a finite family of necessary counting inequalities. We prove $f_{\oplus}(4,k)\ge\lceil(36k+8)/5\rceil$ for $k\ge4$ and $f_{\oplus}(s,k)\ge\lceil9s^2k/[4(s+1)]\rceil$ for $s\ge5$. For $s=4,\ldots,8$, the refined lower bounds are $31,41,51,60,69$ when $k=4$ and $60,82,101,119,138$ when $k=8$. We also give upper bounds $102,129,206,166$ for $(s,k)=(5,8),(7,4),(7,8),(8,4)$, respectively.