CAST-256 explained in plain terms means understanding the block cipher Canada entered in the race to become the Advanced Encryption Standard, a design from 1998 that ran 48 rounds and still lost to Rijndael. The central question is why a cipher with so many rounds and such careful design did not win, and the answer is that the AES contest judged speed and simplicity as well as security, and CAST-256 was strong but slower and heavier than the cipher that beat it.
CAST-256 is a block cipher designed by Carlisle Adams and Stafford Tavares, and submitted to the AES competition in 1998. It encrypts 128-bit blocks with keys from 128 to 256 bits, and it is built as a Feistel network with 48 rounds, which means the design splits each block in half and scrambles one half with the other, again and again, and that repetition is what makes the cipher strong.
This article gives you five facts about CAST-256, explains what it is, how it works, and why it still matters.
Key takeaways
- CAST-256 is a block cipher from 1998 with 48 rounds.
- It was designed by Carlisle Adams and Stafford Tavares.
- It encrypts 128-bit blocks with keys up to 256 bits.
- It was an AES candidate that did not reach the final five.
- It is used in teaching and in cipher history today.
What CAST-256 is
The first fact is that CAST-256 is a Feistel cipher. Each 128-bit block is split into four 32-bit words, and the rounds mix those words together two at a time, which means the cipher works on small pieces and builds its strength from repetition, and because the Feistel structure is reversible by construction, decryption runs the same rounds backwards.
The second fact is that it runs 48 rounds. Most ciphers of its era ran 12 to 16 rounds, but CAST-256 runs 48, organised as twelve groups of four, which means the design buys its safety margin with sheer repetition, and that round count is the reason it is remembered as one of the most cautious AES entries.
The third fact is that it grew out of CAST-128. The earlier cipher, also called CAST5, was already used in PGP and other software, and CAST-256 extends its ideas to a 128-bit block, which means the design had a proven parent, and that pedigree is why it was taken seriously from the start.
The fourth fact is that it uses eight S-boxes. Each round consults large substitution tables built from fixed constants, and those tables are what give the cipher its confusion, which means the security rests on tables that never change, and because the tables are public, anyone can study exactly what the cipher does.
The fifth fact is that it lost the AES contest on speed. CAST-256 was secure enough to reach the first round, but it was slower than Rijndael and heavier to implement, which means the contest rewarded the cipher that was both strong and fast, and that lesson is why CAST-256 is still cited whenever cipher contests are discussed.
Our guide to AES encryption explains the standard that won the contest CAST-256 entered, and our guide to Simon explains a later lightweight cipher from a different design school.
How CAST-256 works
Everything starts with the key schedule, which expands the user’s key into the subkeys for all 48 rounds. CAST-256 takes a key of 128 to 256 bits and derives four 32-bit subkeys per round, which means the cipher needs 192 subkeys before it encrypts a single block, and because the schedule is fixed, the same key always produces the same subkeys.
Each round begins with one word of the block and one subkey. The round adds or xors the subkey into the word, passes the result through an S-box, and rotates the output, which means a small change in the key or the plaintext fans out quickly, and because the S-box is non-linear, the relationship between input and output stays hard to follow.
The Feistel structure is what makes the design work as a whole. In each round, the transformed word is combined with another word of the block, and the words are then rotated into new positions, which means every word meets every other word over the course of 48 rounds, and because the structure is symmetric, decryption is simply encryption run backwards.
The quad-rounds spread the effect further. CAST-256 groups its 48 rounds into twelve quad-rounds, and each quad-round uses a different pattern of operations, which means the cipher never repeats the same step in the same way twice in a row, and because the patterns alternate, an attacker cannot follow a single difference through the whole computation.
The S-boxes are what give the cipher its confusion. Eight tables, each mapping 8-bit inputs to 32-bit outputs, are consulted in every round, which means the cipher’s non-linearity comes from data rather than arithmetic, and because the tables are large, the cipher needs more memory than leaner designs.
The final output comes after the 48th round, when the four words are reassembled into a 128-bit block. The words are combined in their final order with no extra mixing, which means the ciphertext is simply the state after all the rounds, and that directness is what makes the design easy to describe and to implement.

Comparing CAST-256 with other AES candidates
CAST-256 is one of several ciphers that entered the AES competition, and each was built with a different emphasis. Rijndael is the winner with a simple substitution-permutation design and fast software, Twofish is the finalist built on key-dependent S-boxes, and CAST-256 is the one built on 48 Feistel rounds with fixed tables, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | CAST-256 | Rijndael | Twofish |
|---|---|---|---|
| Structure | Feistel network | Substitution-permutation | Feistel network |
| Rounds | 48 | 10 to 14 | 16 |
| Block size | 128 bits | 128 bits | 128 bits |
| Year | 1998 | 1998 | 1998 |
| Best for | Cipher history | Standard use | Research |
The practical result is that CAST-256 is the right choice for cipher history, Rijndael suits standard use everywhere else, and Twofish fits research instead.
Where CAST-256 is used
Teaching uses it as the AES also-ran example. Cryptography courses introduce CAST-256 when they explain how the AES contest was judged, because it is a strong cipher that still lost, and a student who understands CAST-256 understands that a contest rewards the whole package, not security alone.
History uses it to tell the story of 1998. The AES competition is one of the great stories of modern cryptography, and CAST-256 is remembered wherever that story is told, which means it survives as history long after it stopped being a serious tool.
Research uses it as a benchmark for Feistel designs. When someone develops a new way to analyse Feistel ciphers, CAST-256 is often one of the designs they test, because its 48 rounds and fixed tables make a clear target, and that clarity is the reason it is still cited.
Libraries use it as a legacy option. A few cryptographic toolkits still ship CAST-256, because old code sometimes needs to decrypt old data, which means the cipher survives as a compatibility feature, and that quiet survival is the reason it is still maintained.
Standards history uses it to mark the Canadian contribution. CAST-256 was part of the international effort that produced the world’s encryption standard, and it represents the Feistel path that contest explored, which means historians of the field return to it whenever they ask what else the contest could have chosen.
Strengths and limits
The greatest strength of CAST-256 is its safety margin. A cipher with 48 rounds has far more rounds than any known attack needs to break it, and that margin is real, measured in the rounds no attacker has ever got through and confirmed by the cryptanalysis that found no practical weakness.
It is also a strength that the design had a proven parent. CAST-128 was already trusted in PGP when CAST-256 was submitted, and that pedigree is worth more than cleverness in a field where a brand-new design is a design nobody has tested.
The limits are real, though, and the biggest is speed. CAST-256 was slower than Rijndael in software and heavier to implement, which means it lost the contest on performance rather than security, and a system that must encrypt quickly will usually choose the winner instead.
CAST-256 checklist
- Use CAST-256 for study and history, never for new security.
- Remember it is a 1998 AES candidate with 48 rounds.
- Study its Feistel structure to understand round-based design.
- Compare it with Rijndael to see the contest trade-off.
- Note it reached round one but not the final five.
- Try its 48 rounds to see what a large safety margin costs.
- Keep real secrets behind standard ciphers, not CAST-256.
- Read the contest story to see how AES was chosen.
- Choose AES for any system that needs a standard today.
Frequently asked questions
What is CAST-256 in simple terms?
It is a block cipher from 1998 that encrypts 128-bit blocks with keys up to 256 bits, built as a Feistel network with 48 rounds and eight fixed substitution tables.
Who designed CAST-256?
Carlisle Adams and Stafford Tavares, who submitted it to the AES competition in 1998 as an extension of their earlier CAST-128 cipher.
How is CAST-256 different from AES?
Both entered the AES contest, but CAST-256 is a Feistel cipher with 48 rounds and fixed S-boxes, while AES is a substitution-permutation cipher with 10 to 14 rounds and a simpler structure.
Is CAST-256 still secure?
Yes, no practical attack against it has been published, though it lost the AES contest and has never had the review or deployment of a standard, so it is not a safe choice for new systems.
Where is CAST-256 used?
In teaching, in cipher history, and in a few libraries as a legacy option, wherever a strong cipher that still lost is needed as an example.
When should I use CAST-256?
When you study Feistel ciphers, when you tell the story of the AES contest, or when you want a candidate with an unusually large safety margin.
The bottom line
CAST-256 explained in one line is this: the cautious Canadian, a 1998 cipher with forty-eight rounds that was strong enough for the AES contest but too slow to win it.
It is proof that safety margins cost speed, and the reason it still matters is that every cipher designed since has been judged partly by the lesson CAST-256 taught.
This article is general information about how CAST-256 works, not advice about choosing encryption for a particular device or system.







