F-FCSR Explained: The Carry Cipher That Tried to Beat LFSRs

F-FCSR explained in plain terms means understanding the carry cipher that tried to beat the shift register, a design from 2005 that replaced the familiar feedback register with a register that carries, like addition does. The central question is why anyone would replace a well-understood component with a stranger one, and the answer is that a carry register has a different kind of mathematics behind it, which promised new security and new speed, and that ambition is the whole point of the design.

F-FCSR is a family of stream ciphers designed by Thierry Berger, François Arnault and Cédric Lauradoux, presented at FSE 2005 as candidates for the eSTREAM project. It turns a message into ciphertext by running a feedback-with-carry shift register through a filter, and it is built on the idea that a cipher should use 2-adic arithmetic instead of the usual finite-field arithmetic, which means the design leans on a different branch of mathematics, and that difference is what makes it unlike the ciphers of its era.

This article explains what F-FCSR is, how it works, and where it runs in the real world.

Key takeaways

  • F-FCSR is a stream cipher from 2005, by Berger and others.
  • It is built on carry registers, not ordinary shift registers.
  • It comes in two versions, F-FCSR-8 and F-FCSR-16.
  • Its hardware version reached phase three of eSTREAM.
  • It was not selected for the final eSTREAM portfolio.

What F-FCSR is

F-FCSR is a cipher that turns a message into a keystream with a register that carries, and that carry is what makes it unusual among stream ciphers. A normal shift register feeds back a word computed by xors, but a carry register feeds back a word computed by addition with a carry, which means the feedback has a different shape, and because addition is not linear in the usual sense, the keystream is harder to predict from the register alone.

Its signature feature is the 2-adic mathematics behind it. Most ciphers use finite fields, but F-FCSR uses the arithmetic of 2-adic numbers, which means the register’s behaviour follows the rules of ordinary integer addition, and because those rules are well studied, the design can be analysed with tools from number theory.

The design was a reaction to the dominance of the shift register. Almost every stream cipher of its day used a linear feedback shift register, so Berger and his colleagues asked whether a carry register could do the job better, because a fresh idea is worth testing, and that curiosity is what made F-FCSR worth submitting to eSTREAM.

It became one of the best-known eSTREAM candidates in the world, and it is named in every history of the project. F-FCSR came in two versions, F-FCSR-8 for software and F-FCSR-16 for wider words, and its hardware version, F-FCSR-H version 2, reached the third phase of eSTREAM, which means the design survived two rounds of public scrutiny before the final choice was made.

Its most famous property is that it reached phase three and still lost. Later cryptanalysis found that the design leaked enough structure for attacks, which means the cipher was not selected for the portfolio, and because that outcome was public, the story became one of a good idea with a flaw rather than of failure alone.

Our guide to MICKEY explains the other eSTREAM cipher built on irregular clocking, and our guide to Trivium explains the tiny hardware cipher that won the final phase.

How F-FCSR works

Everything starts with the key and the initialisation vector, which load the register. F-FCSR takes the key and the IV and fills its main register and its carry memory, which means the starting state depends on both, and because the loading runs before any output appears, the same key gives a different keystream under a different IV.

Each clock begins with the carry register, which shifts and feeds back a new word. F-FCSR computes the next word by adding tapped register cells together with the carry, which means a fresh word arrives at every clock, and because the addition carries, the feedback is nonlinear in the usual sense.

The filter is what makes the design work as a whole. A selection of register cells passes through a nonlinear filter that mixes them into each keystream word, which means the value is scrambled thoroughly, and because the filter is nonlinear, the keystream cannot be predicted from the register alone.

The carry spreads the effect further. The carry memory holds the overflow from each addition, which means the register remembers more than its cells, and because the carry changes with every clock, the feedback changes too.

The output is what keeps the design usable. F-FCSR outputs the filtered words as its keystream, which means the output mixes the register through the filter, and because the words are wide, the design produces a steady stream of words to xor with the plaintext.

The keystream comes from the filter, read out as 8-bit or 16-bit words. F-FCSR-8 outputs eight bits at a time and F-FCSR-16 outputs sixteen, which means the keystream is a stream of small words, and that width is exactly what a byte-oriented cipher needs for its output.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how F-FCSR works: register cells take turns being added with a carry, clock after clock, until a keystream emerges.

Comparing F-FCSR with other eSTREAM ciphers

F-FCSR is one of several ciphers submitted to the eSTREAM project, and each was built with a different emphasis. Trivium is the tiny hardware cipher that won the final phase, MICKEY is the cipher built on irregular clocking, and F-FCSR is the one built on carry registers, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect F-FCSR Trivium MICKEY
Register type Carry register Shift register Shift register
Key size 128 bits 80 bits 80 bits
Word size 8 or 16 bits 1 bit 1 bit
Year 2005 2005 2005
Best for Teaching carry registers Teaching tiny hardware Teaching irregular clocking

The practical result is that F-FCSR is the right choice for teaching carry registers, Trivium suits teaching tiny hardware, and MICKEY fits teaching irregular clocking instead.

Where F-FCSR is used

Teaching uses it as the carry-register example. Courses introduce F-FCSR when they explain that a cipher can be built on 2-adic arithmetic, because it is the clearest case of the idea in a real design, and a student who understands F-FCSR understands why arithmetic choice matters.

Research uses it as a case study in eSTREAM history. Engineers still cite F-FCSR when they discuss how a promising design can fail late, because it is the clearest example of the idea in a real project, and that lesson shapes how new ciphers are judged today.

History uses it to tell the story of eSTREAM. The project received dozens of submissions and chose only eight, and F-FCSR is remembered wherever that story is told, which means it survives as history as well as a working design.

Cryptanalysis uses it as a training target. Students learning to attack stream ciphers still practise on F-FCSR, because its carry register and its filter give them a real target, and that richness is the reason it still appears in exercise sets.

Number theory uses it as a bridge to cryptography. Mathematicians still point to F-FCSR when they discuss how 2-adic arithmetic can build ciphers, because it is the clearest example of the link in a real design, and that connection is the reason it still appears in papers.

Strengths and limits

The greatest strength of F-FCSR is its fresh mathematics. A cipher built on 2-adic arithmetic opens a new direction, and that strength is real, measured in the papers it inspired and confirmed by the designers who kept refining the family through several versions.

It is also a strength that the design reached phase three. A cipher that survives two rounds of public scrutiny is a serious design, and that standing is worth more than cleverness in a field where most submissions fail in the first round.

The limits are real, though, and the biggest is the cryptanalysis that stopped it. Later work found that the design leaked enough structure for attacks, which means F-FCSR must never guard a real secret, and a system that needs a stream cipher must use a portfolio design instead.

F-FCSR checklist

  • Use F-FCSR for study and history, never for new security.
  • Remember it uses a carry register, not a shift register.
  • Note the key is 128 bits and the versions are 8 and 16.
  • Compare it with Trivium to see two kinds of eSTREAM design.
  • Study the carry, which is what makes the feedback nonlinear.
  • Check the filter, which is what hides the register.
  • Keep real secrets behind modern ciphers, not F-FCSR.
  • Read the 2005 paper to see how it was built.
  • Choose a portfolio cipher when real security matters.

Frequently asked questions

What is F-FCSR in simple terms?

It is a 2005 stream cipher that encrypts by running a carry register through a filter to produce 8-bit or 16-bit keystream words.

Who designed F-FCSR?

Thierry Berger, François Arnault and Cédric Lauradoux, who presented it at FSE 2005 as a candidate for the eSTREAM project.

How is F-FCSR different from Trivium?

Both are eSTREAM stream ciphers, but F-FCSR uses a carry register and 2-adic arithmetic while Trivium uses ordinary shift registers.

Is F-FCSR still secure?

No, later cryptanalysis found weaknesses, so it is only a subject for study and history, not for real security.

Where is F-FCSR used?

In teaching, in eSTREAM history, in cryptanalysis exercises, and in number theory papers about 2-adic ciphers.

When should I use F-FCSR?

When you study carry registers, when you learn about eSTREAM, or when you want the cipher that tried to beat the shift register.

The bottom line

F-FCSR explained in one line is this: the carry cipher, a 2005 design that replaced the shift register with addition and taught the field that a new idea must survive its own analysis.

It is proof that fresh mathematics is worth trying, and the reason it still matters is that every stream cipher designed since has been judged partly by the lesson F-FCSR taught.

This article is general information about how F-FCSR works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top