An Affine Equivalence Algorithm for S-boxes based on Matrix Invariants

Abstract

We investigate the affine equivalence (AE) problem of S-boxes. Given two S-boxes denoted as S1 and S2, we aim to seek two invertible AE transformations A,B such that S1 A = B S2 holds. Due to important applications in the analysis and design of block ciphers, the investigation of AE algorithms has performed growing significance. In this paper, we propose zeroization on S-box firstly, and the AE problem can be transformed into 2n linear equivalence problems by this zeroization operation. Secondly, we propose standard orthogonal spatial matrix (SOSM), and the rank of the SOSM is invariant under AE transformations. Finally, based on the zeroization operation and the SOSM method, we propose a depth first search (DFS) method for determining AE of S-boxes, named the AE\SOSM\DFS algorithm. Using this matrix invariant, we optimize the temporal complexity of the algorithm to approximately 12n of the complexity without SOSM. Specifically, the complexity of our algorithm is O(23n). In addition, we also conducted experiments with non-invertible S-boxes, and the performance is similar to that of invertible S-boxes. Moreover, our proposed algorithm can effectively handle S-boxes with low algebraic degree or certain popular S-boxes such as namely AES and ARIA\s2, which are difficult to be handled by the algorithm proposed by Dinur (2018). Using our algorithm, it only takes 5.5 seconds to find out that the seven popular S-boxes namely AES, ARIA\s2, Camellia, Chiasmus, DBlock, SEED\S0, and SMS4 are affine equivalent and the AE transformations of these S-boxes are provided.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…