← Back to section · Foundations of Cryptography
Feistel vs SPN: The Two Structural Routes for Block Ciphers
A Feistel network trades 'one half stands still while the other is stirred' for identical encryption and decryption circuits; a substitution–permutation network processes the whole block every round. The two routes produced DES and AES, and shaped two generations of analysis and hardware character.
There are two classic routes for turning Shannon’s confusion and diffusion into concrete circuitry. In the 1970s, Horst Feistel at IBM proposed an ingenious divide-and-conquer structure; in the 1990s, the AES competition crowned the substitution–permutation network (SPN) as the new king. Both routes can produce secure block ciphers, but their engineering characters differ sharply — understanding the difference is understanding half of block cipher design.
The Feistel network: one half stands still, the other is stirred
A Feistel structure splits the block into left and right halves. Each round: the right half passes unchanged to become the next round’s left half; the left half is XORed with the output of a round function applied to the right half, becoming the next round’s right half. The round function takes half a block plus the round subkey and produces a disturbance that masks the other half.
This structure has an almost magical property: the round function does not need to be invertible. Because the transformed half can always be recovered from the untouched half and the output, the whole network is naturally reversible. Decryption is exactly the same process as encryption, with the subkeys used in reverse order. Under 1970s hardware constraints this was enormously valuable: one circuit encrypts forwards and decrypts backwards, halving the chip area. It also frees the round function to use arbitrarily complex nonlinear transformations — tables, multiplications, even another small cipher — without worrying about inversion.
DES is the emblem of the Feistel route: a 64-bit block, 16 rounds, and a round function containing an expansion permutation, XOR with the subkey, eight S-boxes, and a P-permutation. Blowfish, Camellia, and lightweight ciphers such as SIMON all kept this skeleton. The cost is slower diffusion: only half the data is actively transformed per round, so a disturbance needs more rounds to span the whole block; and encryption and decryption throughput are inherently symmetric, which is a mild inconvenience in scenarios needing only one direction, such as hash constructions.
Theoretically, the Feistel route carries an extra guarantee: Luby and Rackoff proved in the 1980s that if the round function is a good enough pseudorandom function, three Feistel rounds already give a pseudorandom permutation and four give a strong one — the structure itself imposes no ceiling, and security rests entirely on the quality of the round function.
SPN: the whole block moves at once
The substitution–permutation network takes the opposite strategy: every round processes the entire block. A round typically has three steps: XOR with the round key (key injection), parallel S-box substitution over small chunks (confusion), and a permutation or linear mixing layer (diffusion). Because everyone participates in every round, diffusion is markedly faster than in a Feistel network, and fewer rounds are needed for the same safety margin.
The price is that every component must be invertible: S-boxes need inverse tables and the linear layer an inverse matrix, so decryption is a structurally similar but entirely separate set of operations whose circuit cannot simply reuse the encryption hardware. AES is the SPN’s masterpiece: a 128-bit block arranged as a 4×4 byte matrix, each round applying SubBytes, ShiftRows, MixColumns, and AddRoundKey, with 10/12/14 rounds for 128/192/256-bit keys. Its linear layer is carefully designed to achieve an optimal diffusion branch number, reaching full diffusion in just two rounds — the heart of the “wide trail strategy” in the AES analysis literature.
Another SPN trait is regularity: full-block parallel substitution maps naturally onto the parallelism and table lookups of modern processors, and AES runs astonishingly fast on CPUs with hardware acceleration instructions — a major reason it swept the Feistel descendants on performance.
One more detail: the cost of the decryption direction
The two routes differ on “how easy decryption is to implement” more practically than textbooks usually stress. Feistel decryption comes free — the same circuit with subkeys reversed — which was decisive for DES in the 1970s; in today’s many scenarios that need only one direction (such as building hashes from block ciphers) it cuts the other way: a Feistel structure is so easily inverted that using it as a hash compression function demands extra argument. The SPN goes to the other extreme: in AES, decryption needs the inverse S-box, inverse ShiftRows, and inverse MixColumns, whose coefficients are more complex and costlier in hardware — which is why many encryption-only protocols (the various AEAD modes) simply use AES’s encryption direction alone; the popularity of CTR and GCM partly profits from this, since they ensure the decryption-direction circuit never has to exist.
The internal construction of the round function also varies with the route. A Feistel round function handles only half a block and can afford “expensive” components such as tables and modular multiplication, since no inverse is needed; an SPN’s S-boxes must be small and regular, for full-block parallelism and invertibility. A family of compromise designs is common in recent lightweight competitions: generalized Feistel networks split the block into four or more parts and stir them in rotation, trading slower diffusion for smaller round-function area; alternating structures inject the key by multiplication and similar means, hoping to pocket both sides’ advantages. The contest of routes therefore has no final round — only continual rebalancing across area, speed, and ease of analysis.
How to choose
A concrete watershed example: among national commercial block ciphers, both routes have representatives — SM4 uses a generalized Feistel-style structure, while many newer European and American designs lean SPN; and the core metrics standards bodies compare in selection are strikingly consistent: the safety margin at reduced rounds, software and hardware implementation cost, and the difficulty of side-channel protection. The routes may differ, but the measuring stick is the same — further evidence that the two routes long ago reached a draw on security, and everything left is a question of engineering fit.
The contest between the two routes was never about security but about scenarios. When encryption and decryption must share hardware, blocks are large, or the round function wants non-invertible components, Feistel is the smoother fit; when diffusion efficiency, parallel throughput, and a clean algebraic structure matter most, the SPN wins. Variants in between — generalized Feistel networks and alternating structures — abound in lightweight cryptography. When evaluating a new block cipher, first identify which route it takes, where the round function’s nonlinearity comes from, and how many rounds diffusion needs to span the block, and you already have a first judgment of its security story.
Tags: Feistel NetworkSPNDESStructural Design