arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.12360cs.CRcs.DS
收藏

一种基于矩阵不变量的 S 盒仿射等价算法

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

Xincheng Hu, Xiao Zeng, Zhaoqiang Liu, Guowu Yang

AI总结:

本文提出基于零化操作和标准正交空间矩阵不变量的 AE_SOSM_DFS 算法,将 S 盒仿射等价问题转化为线性等价问题并以 O(2^{3n}) 复杂度求解,能高效处理 AES、ARIA_s2 等流行 S 盒。

摘要:

我们研究 S 盒的仿射等价(AE)问题。给定两个 S 盒,记为 $S_1$ 和 $S_2$,我们希望寻找两个可逆的 AE 变换 $A,B$,使得 $S_1\circ A = B\circ S_2$ 成立。由于在分组密码的分析与设计中具有重要应用,AE 算法的研究已显示出日益增长的重要性。本文首先对 S 盒提出零化(zeroization)操作,通过该零化操作可将 AE 问题转化为 $2^n$ 个线性等价问题。其次,我们提出标准正交空间矩阵(SOSM),并且 SOSM 的秩在 AE 变换下保持不变。最后,基于零化操作和 SOSM 方法,我们提出一种用于判定 S 盒 AE 的深度优先搜索(DFS)方法,称为 AE_SOSM_DFS 算法。利用该矩阵不变量,我们将算法的时间复杂度优化到约为不使用 SOSM 时复杂度的 $\frac{1}{2^n}$。具体而言,我们算法的复杂度为 $O(2^{3n})$。此外,我们还对不可逆 S 盒进行了实验,其性能与可逆 S 盒相似。而且,我们提出的算法能够有效处理低代数次数的 S 盒或某些流行的 S 盒,例如 AES 和 ARIA_s2,这些 S 盒难以被 Dinur(2018)提出的算法处理。使用我们的算法,仅需 5.5 秒即可发现七个流行 S 盒,即 AES、ARIA_s2、Camellia、Chiasmus、DBlock、SEED_S0 和 SMS4,是仿射等价的,并给出了这些 S 盒的 AE 变换。

英文摘要:

We investigate the affine equivalence (AE) problem of S-boxes. Given two S-boxes denoted as $S_1$ and $S_2$, we aim to seek two invertible AE transformations $A,B$ such that $S_1\circ A = B\circ S_2$ 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 $2^n$ 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 $\frac{1}{2^n}$ of the complexity without SOSM. Specifically, the complexity of our algorithm is $O(2^{3n})$. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑