Affine and cyclic affine equivalence of rotation-symmetric S-boxes
arXiv:2203.00778
Abstract
A rotation-symmetric S-box on bits is a vectorial Boolean function that commutes with the right cyclic shift and is therefore determined by a single Boolean function. The map used in Keccak is a well-known example. Ordinary affine equivalence allows arbitrary invertible affine transformations, which need not preserve rotation symmetry. We introduce \emph{cyclic affine equivalence}, in which the implementing transformations each have an invertible -circulant linear part with and a translation vector fixed by the shift. For , the two relations give the same classes of rotation-symmetric permutations exactly when is an odd prime for which is a primitive root. In every other dimension , explicit constructions exhibit affine classes containing several cyclic affine classes. We derive exact class-size formulas, count cyclic affine classes for , and classify a four-bit family of -siblings under both relations. Finally, we characterize when a permutation is affinely equivalent to a rotation-symmetric one and apply the criterion to the Ascon S-box.
arXiv comment30 pages; new title and substantial revision, including a dimension classification for affine versus cyclic affine equivalence, new counting results, and corrected lifting theory and tables