Yamb explained in plain terms means understanding the stream cipher whose substitution box never sits still, a design from 2005 that mixes a feedback register, a shifting memory and a second register into a keystream. The central question is why a cipher would rebuild its own S-box as it runs, and the answer is that a changing S-box denies an attacker any fixed table to study, so the cipher keeps moving even while it encrypts, and that motion is the whole point of the design.
Yamb is a synchronous stream cipher submitted to the eSTREAM project in 2005 by LAN Crypto of Moscow, taking keys from 80 to 256 bits and initialisation vectors from 32 to 128 bits. It turns a message into ciphertext by passing 32-bit blocks through three cooperating parts, and it is built on the idea that a cipher should change its own internals as it works, which means the design has no fixed substitution table for an attacker to target, and that restlessness is what makes it unlike the ciphers of its era.
This article makes the case for Yamb, explains what it is, how it works, and where its ideas still earn their keep.
Key takeaways
- Yamb is a stream cipher from 2005, submitted to eSTREAM.
- It was put forward by LAN Crypto of Moscow.
- It takes keys of 80 to 256 bits and IVs of 32 to 128 bits.
- Its S-box is a memory that changes as it encrypts.
- It is used in teaching and in cipher research today.
What Yamb is
Yamb is a cipher that turns a message into a keystream with three parts working together, and that trio is what makes it unusual among stream ciphers. A feedback register supplies fresh values, a nonlinear function scrambles them through a changing memory, and a second register adds the result into the output, which means the keystream comes from cooperation, and that teamwork is what lets the design stay simple while staying unpredictable.
Its signature feature is the living memory. Most ciphers use a fixed substitution table, but Yamb keeps a 256-byte memory that is rewritten as the cipher runs, which means the substitution changes with every block, and because the table never sits still, an attacker cannot precompute anything against it.
The design was a reaction to the fixed tables of older ciphers. A static S-box can be studied, measured and attacked at leisure, so LAN Crypto built a cipher whose table rewrites itself, because a moving target is harder to hit than a still one, and that practicality is what made Yamb worth submitting.
It became one of the best-known eSTREAM submissions in the world, and it is named in every history of the competition. Yamb was one of 34 ciphers submitted to eSTREAM, it was studied in the first wave of stream cipher analysis, and it is still the first example students meet when they learn that a cipher can change its own tables, which means the design survives as a lesson even though it was never selected.
Its most famous property is the distinguishing attack. Researchers showed the keystream could be told apart from random noise with enough output, which means the design was not as strong as its authors hoped, and because the attack was published, Yamb became a warning rather than a tool.
Our guide to Enigma explains the rotor machine that first made ciphers move, and our guide to GOST explains the Soviet cipher family of the same era.
How Yamb works
Everything starts with the key schedule, which fills the registers and the memory from the key and the IV. Yamb takes the key of 80 to 256 bits and the IV of 32 to 128 bits and loads them into its three parts, which means the starting state depends on both, and because the key and IV are both needed, the same key gives a different keystream under a different IV.
Each step begins with the feedback register L, a 15-cell register over a 32-bit field. Yamb clocks the register and takes its next 32-bit element, which means a fresh value arrives at every step, and because the register follows a primitive polynomial, the values run for a very long time before repeating.
The nonlinear function is what makes the design work as a whole. The element from L passes into a function that splits it into four bytes and runs twelve small operations through the memory, which means the value is scrambled thoroughly, and because the memory changes during those operations, the scrambling is different at every step.
The memory spreads the effect further. Each operation reads a byte from the memory and writes a new one back, which means the table that scrambles the data is itself rewritten as the cipher runs, and because the rewriting depends on the data, the S-box evolves with the message.
The second register is what keeps the design usable. The scrambled value is xored with the register input and added into register R, which means the output mixes the fresh value with the accumulated state, and because R has sixteen cells, the design carries a long memory of what has passed.
The keystream comes from the registers, read out as 32-bit blocks. Yamb outputs the sum of the register input and output at each step, which means the keystream is a stream of 32-bit words, and that width is exactly what a fast software cipher needs for its output.

Comparing Yamb with other stream ciphers
Yamb is one of several stream ciphers submitted to eSTREAM, and each was built with a different emphasis. Enigma is the rotor machine with wired wheels, GOST is the Soviet block cipher family, and Yamb is the one with a living substitution memory, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Yamb | Enigma | GOST |
|---|---|---|---|
| Type | Synchronous stream cipher | Rotor machine | Block cipher |
| Key size | 80 to 256 bits | Rotor settings | 256 bits |
| Changing part | Memory S-box | Rotor positions | Fixed S-boxes |
| Year | 2005 | 1920s | 1989 |
| Best for | Teaching living S-boxes | Teaching rotor machines | Teaching Soviet ciphers |
The practical result is that Yamb is the right choice for teaching living S-boxes, Enigma suits teaching rotor machines, and GOST fits teaching Soviet ciphers instead.
Where Yamb is used
Teaching uses it as the living S-box example. Courses introduce Yamb when they explain that a substitution table need not stay fixed, because it is the clearest case of the idea in a real design, and a student who understands Yamb understands why a moving target is hard to attack.
Research uses it as a case study in distinguishing attacks. Cryptanalysts still cite Yamb when they discuss how a keystream can betray itself, because it is the clearest example of the method working, and that lesson shapes how new stream ciphers are judged today.
History uses it to tell the story of eSTREAM. The competition drew 34 submissions from around the world, and Yamb is remembered wherever that story is told, which means it survives as history as well as a working design.
Competition history uses it to mark the Russian entry. Yamb was one of the submissions from Moscow, and it represents the Russian approach to stream ciphers, which means historians return to it whenever they ask how different countries answered the same call.
Cryptanalysis uses it as a training target. Students learning distinguishing attacks still practise on Yamb, because its structure is small enough to follow by hand, and that simplicity is the reason it still appears in exercise sets.
Strengths and limits
The greatest strength of Yamb is its moving memory. An S-box that rewrites itself denies an attacker any fixed table to study, and that strength is real, measured in the years it took to analyse and confirmed by the papers that finally broke it.
It is also a strength that the design is built from simple parts. A feedback register, a small memory and a second register are easy to explain and easy to build, and that simplicity is worth more than cleverness in a field where a cipher nobody can implement is a cipher nobody adopts.
The limits are real, though, and the biggest is the distinguishing attack. The keystream can be told apart from random with enough output, which means Yamb must never guard anything real, and a system that needs a trusted cipher must use a modern standard instead.
Yamb checklist
- Use Yamb for study and history, never for new security.
- Remember its S-box is a memory that rewrites itself.
- Note the key runs from 80 to 256 bits.
- Compare it with Enigma to see two kinds of motion.
- Study the distinguishing attack that broke it.
- Check the three parts, which cooperate at every step.
- Keep real secrets behind modern ciphers, not Yamb.
- Read the 2005 submission to see how it was built.
- Choose a standard stream cipher for any message that matters.
Frequently asked questions
What is Yamb in simple terms?
It is a 2005 stream cipher from Moscow that encrypts with a feedback register, a changing memory and a second register working together.
Who designed Yamb?
LAN Crypto of Moscow, which submitted it to the eSTREAM stream cipher project in 2005.
How is Yamb different from Enigma?
Both change as they work, but Enigma stepped wired rotors while Yamb rewrote a 256-byte memory table at every step.
Is Yamb still secure?
No, a distinguishing attack can tell its keystream from random noise, so it is only a subject for study and history.
Where is Yamb used?
In teaching, in cryptanalysis research, in eSTREAM history, and in student exercises on distinguishing attacks.
When should I use Yamb?
When you study stream ciphers, when you learn distinguishing attacks, or when you want the cipher with a living S-box.
The bottom line
Yamb explained in one line is this: the cipher with a living S-box, a 2005 design that rewrote its own memory as it encrypted and taught the field that motion alone is not enough.
It is proof that a moving target can still be hit, and the reason it still matters is that every stream cipher designed since has been judged partly by the lesson Yamb taught.
This article is general information about how Yamb works, not advice about choosing encryption for a particular device or system.







