Hermes8 Explained: The Byte Cipher That eSTREAM Archived

Hermes8 explained in plain terms means understanding the byte cipher that eSTREAM archived, a design from 2005 that mixed its state one byte at a time through an AES S-box. The central question is why a cipher built from such a strong building block still failed, and the answer is that a good S-box cannot save a weak structure, so Hermes8 became a lesson in how ciphers are judged, and that lesson is the whole point of the design.

Hermes8 is a stream cipher designed by Ulrich Kaiser and submitted to the eSTREAM project in 2005 as a hardware candidate. It turns a key and an initialisation vector into a keystream by running two byte registers through substitutions and shifts, and it is built on the idea that a cipher should work on whole bytes rather than single bits, which means the design is meant for small hardware, and that focus is what makes it unlike the bit ciphers of its era.

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

Key takeaways

  • Hermes8 is a stream cipher from 2005, by Ulrich Kaiser.
  • It is byte-oriented, with a 17-byte state register.
  • It comes in 80-bit and 128-bit key versions.
  • Its faster variant, Hermes8F, was broken in 2006.
  • eSTREAM archived the family instead of advancing it.

What Hermes8 is

Hermes8 is a cipher that turns a key into a keystream with two registers of bytes, and that byte shape is what makes it unusual among stream ciphers. A bit cipher shifts one bit at a time, but Hermes8 works on whole bytes, which means each step moves eight bits at once, and because bytes are the natural unit of hardware, the design fits small chips well.

Its signature feature is the AES S-box at its centre. Most stream ciphers use their own mixing functions, but Hermes8 feeds its bytes through the same substitution box as AES, which means the nonlinear step is a proven one, and because the S-box is well studied, the designer could lean on its strength.

The design was a reaction to the cost of bit ciphers in hardware. A cipher that shifts single bits needs many clocks to produce a byte, so Kaiser built one that produced bytes directly, because a hardware cipher should match the width of its data, and that practicality is what made Hermes8 worth submitting to eSTREAM.

It became one of the best-known cautionary tales in the world, and it is named in every history of the project. Hermes8 reached the second phase of eSTREAM, its faster variant Hermes8F was broken within a year, and it is still the first example engineers meet when they learn that a strong component does not make a strong cipher, which means the design survives as a warning even though it was archived.

Its most famous property is the speed of its fall. The attack on Hermes8F needed only a handful of known keystream bytes and recovered the secret key in under a second on an ordinary computer, which means the break was total rather than theoretical, and because that result was public, the designer withdrew the variant himself.

Our guide to Trivium explains the tiny hardware cipher that won the final phase, and our guide to Grain explains the other hardware cipher that survived the same contest.

How Hermes8 works

Everything starts with the key and the initialisation vector, which load the two registers. Hermes8 takes the key and the IV and fills a 17-byte state register and a 10-byte key register, 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 step begins with a byte from each register, which are xored together. Hermes8 takes a state byte and a key byte and combines them, which means fresh key material arrives at every step, and because the combination is a simple xor, the step costs almost nothing in hardware.

The S-box is what makes the design work as a whole. The xored byte passes through the AES substitution box, which means the value is scrambled thoroughly, and because the S-box is nonlinear, the output cannot be predicted from the input by linear means.

The shift spreads the effect further. Hermes8 writes the S-box output back into the state register and shifts the register along, which means each step changes the state for the next one, and because the register is 17 bytes long, a byte takes many steps to work its way through.

The output is what keeps the design usable. Hermes8 reads its keystream from the S-box output, which means the stream is a sequence of substituted bytes, and because the output comes straight from the mixing step, the design needs no separate output function.

The keystream comes from the registers, read out a byte at a time. Hermes8 outputs one byte per step, which means the stream is a steady flow of bytes, and that width is exactly what a byte-oriented system needs for its encryption.

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 Hermes8 works: register bytes take turns passing through the S-box, byte after byte, until a keystream emerges.

Comparing Hermes8 with other eSTREAM ciphers

Hermes8 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 Hermes8 is the one built on byte registers, while each approach trades something for something else.

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

Aspect Hermes8 Trivium MICKEY
Register type Byte registers Shift registers Shift registers
Key size 80 or 128 bits 80 bits 80 bits
Word size 8 bits 1 bit 1 bit
Year 2005 2005 2005
Best for Studying byte ciphers Teaching tiny hardware Teaching irregular clocking

The practical result is that Hermes8 is the right choice for studying byte ciphers, Trivium suits teaching tiny hardware, and MICKEY fits teaching irregular clocking instead.

Where Hermes8 is used

Teaching uses it as the eSTREAM cautionary tale. Courses introduce Hermes8 when they explain that a cipher must survive public analysis, because it is the clearest case of the idea in a real project, and a student who understands Hermes8 understands why submission is only the start.

Research uses it as a case study in structure. Engineers still cite Hermes8 when they discuss how a good S-box can sit inside a weak design, because it is the clearest example of the idea in a real cipher, 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 Hermes8 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 Hermes8, because its byte registers and its S-box give them a real target, and that richness is the reason it still appears in exercise sets.

Hardware research uses it to study byte designs. Designers still point to Hermes8 when they discuss how a cipher can work on whole bytes, because it is the clearest example of the goal in a real submission, and that aim shapes how hardware ciphers are built today.

Strengths and limits

The greatest strength of Hermes8 is its simplicity. A cipher built from two registers and a known S-box is easy to implement in hardware, and that strength is real, measured in the small FPGA footprints its implementations achieved and confirmed by the designers who built them.

It is also a strength that the design is easy to explain. Two byte registers and an S-box is a design anyone can describe, and that simplicity is worth more than cleverness in a field where a cipher nobody can audit is a cipher nobody trusts.

The limits are real, though, and the biggest is the attack that ended it. The Hermes8F break recovered the key in under a second, which means the family must never guard a real secret, and a system that needs a stream cipher must use a portfolio design instead.

Hermes8 checklist

  • Use Hermes8 for study and history, never for new security.
  • Remember it uses byte registers, not shift registers.
  • Note the key is 80 or 128 bits and the state is 17 bytes.
  • Compare it with Trivium to see two kinds of eSTREAM design.
  • Study the S-box, which is borrowed from AES.
  • Check the Hermes8F attack, which broke the family in 2006.
  • Keep real secrets behind modern ciphers, not Hermes8.
  • Read the 2005 submission to see how it was built.
  • Choose a portfolio cipher when real security matters.

Frequently asked questions

What is Hermes8 in simple terms?

It is a 2005 stream cipher that encrypts by running two byte registers through the AES S-box to produce a byte at a time.

Who designed Hermes8?

Ulrich Kaiser, who submitted it to the eSTREAM project in 2005 as a hardware candidate.

How is Hermes8 different from Trivium?

Both are eSTREAM hardware ciphers, but Hermes8 works on whole bytes with an S-box while Trivium works on single bits.

Is Hermes8 still secure?

No, its faster variant Hermes8F was broken in 2006, so it is only a subject for study and history, not for real security.

Where is Hermes8 used?

In teaching, in eSTREAM history, in cryptanalysis exercises, and in hardware research about byte-oriented ciphers.

When should I use Hermes8?

When you study stream ciphers, when you learn about eSTREAM, or when you want the cipher that showed why structure matters.

The bottom line

Hermes8 explained in one line is this: the byte cipher, a 2005 design that put an AES S-box inside two small registers and taught the field that a strong part cannot save a weak whole.

It is proof that scrutiny is the real test, and the reason it still matters is that every stream cipher designed since has been judged partly by the lesson Hermes8 taught.

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

Latest articles

Scroll to Top