Research Library · Idea
Substitution-permutation networks
A substitution-permutation network (SPN) is a block cipher structure built from repeated layers of nonlinear substitutions (S-boxes), linear transformations that spread bits between those layers, and round-key mixing. Howard Heys's 16-bit teaching cipher has four rounds. Each round XORs its input with a subkey, then applies four 4×4 S-boxes in parallel. The first three rounds end with a bit permutation. The fourth omits it, and a final subkey is XORed with the last S-box outputs. Heys traces the basic structure to Feistel in 1973. 1
The design follows the two methods Claude Shannon proposed in 1949 for frustrating statistical analysis, diffusion and confusion. In diffusion, the statistical structure of the plaintext is dissipated into long-range statistics. In confusion, the relation between the ciphertext statistics and the key is made very complex. 2 Joan Daemen described classic SPNs as alternating parallel S-boxes and bit permutations, with the S-boxes treated as the active elements. His wide trail strategy instead put the emphasis on the linear layer, designing it so that every multi-round trail activates many S-boxes. 3
AES is an SPN rather than a Feistel cipher. Its round consists of three invertible layers applied to the whole state, a nonlinear S-box layer, linear mixing, and round key addition, carried out as SubBytes, ShiftRows, MixColumns and AddRoundKey. With a 128-bit block it uses 10, 12 or 14 rounds for 128-, 192- and 256-bit keys, and the final round omits MixColumns. 4 NIST published the cipher as FIPS 197 in 2001 and updated the document in 2023 with no technical changes. 5 PRESENT, a lightweight SPN, uses a single bit permutation as its whole linear layer. Its designers note that this rules out AES-like diffusion techniques. 6
Heys uses the basic SPN to teach differential and linear cryptanalysis because Rijndael, selected for AES, was derived from that architecture. 1
Source · A Tutorial on Linear and Differential Cryptanalysis (Howard M. Heys) (opens in a new tab) · Memorial University of Newfoundland
References
- A Tutorial on Linear and Differential Cryptanalysis (Howard M. Heys) (opens in a new tab) · Memorial University of Newfoundland · Sections 2.1–2.3 and Figure 1. ↩ ↩
- Communication Theory of Secrecy Systems (Claude E. Shannon) (opens in a new tab) · Bell System Technical Journal · Vol. 28 no. 4, October 1949; p. 708. ↩
- Cipher and Hash Function Design Strategies based on linear and differential cryptanalysis (doctoral dissertation, Joan Daemen) (opens in a new tab) · K.U. Leuven · March 1995; section 5.6 describes the wide trail strategy. ↩
- AES Proposal: Rijndael (Joan Daemen and Vincent Rijmen, document version 2) (opens in a new tab) · NIST · Sections 4.2, 7.2, 7.3.1, 7.6 and 8.2. ↩
- FIPS 197, Advanced Encryption Standard (AES) (opens in a new tab) · NIST · May 9, 2023 · Published 26 November 2001; updated 9 May 2023 with no technical changes. ↩
- PRESENT: An Ultra-Lightweight Block Cipher (Bogdanov, Knudsen, Leander, Paar, Poschmann, Robshaw, Seurin and Vikkelsoe) (opens in a new tab) · Springer · CHES 2007, LNCS 4727, pp. 450-466. ↩
Research articles
- Counting active S-boxes: differential and linear cryptanalysis, and why AES is built the way it is · Mathematics
See what connects to it on the map of ideas →

SecSIG