Hierocrypt Explained: Toshiba’s Nested Answer to AES

Hierocrypt explained in plain terms means understanding a cipher built like a set of nested boxes, a design from Toshiba where a small cipher sits inside a larger one and both work at once. The central question is why anyone would nest one cipher inside another, and the answer is that the inner cipher protects the outer one, and the outer one protects the inner one.

Hierocrypt is a block cipher designed by Toshiba and submitted to the Advanced Encryption Standard contest in 1998. It encrypts 128-bit blocks with keys of 128, 192, or 256 bits, runs for six and a half rounds, and it is built as a nested substitution-permutation network, with a lower-level cipher embedded inside each round of the higher-level one.

This article makes the case for Hierocrypt, explains what it is, how it works, and where its ideas still earn their keep.

Key takeaways

  • Hierocrypt is a block cipher designed by Toshiba for the AES contest.
  • It encrypts 128-bit blocks with keys of 128, 192, or 256 bits.
  • It runs for six and a half rounds of nested structure.
  • It embeds a smaller cipher inside each round of a larger one.
  • It was submitted to both the AES contest and NESSIE.

What Hierocrypt is

Hierocrypt is a cipher that encrypts data in 128-bit blocks using a nested structure, which means its rounds contain smaller rounds inside them. The outer level passes the block through substitution and mixing, and the inner level, a smaller substitution-permutation network, transforms the data further, so that every round of Hierocrypt does the work of several rounds of a simpler cipher.

Its signature feature is the nesting itself. Most ciphers repeat one round structure many times, but Hierocrypt builds its rounds from a complete smaller cipher, which means the diffusion and confusion of the design come from two levels working together, and that depth is what let the designers use so few outer rounds.

The design was a reaction to Toshiba’s experience with consumer electronics, where encryption had to run fast on the small processors inside televisions, cameras, and players. The Hierocrypt team wanted a cipher that was strong in few rounds, so they nested a smaller cipher inside each round to get more mixing per round, and the result was a design that fit the hardware it was built for.

It became one of the best-known submissions to the AES contest, and it was later submitted to NESSIE as Hierocrypt-3, a revised version with a stronger design. Reaching the contest was itself a mark of quality, because the AES contest had started with fifteen submissions from around the world, and only the designs that survived public cryptanalysis stayed in the conversation.

Its most famous property is the name, which comes from the Greek for sacred writing. Hierocrypt suggests a cipher built like a temple, with chambers inside chambers, and the name has stuck through two decades of study, which is a reminder that cryptographers still enjoy a name with a meaning behind it.

Our guide to AES encryption explains the standard Hierocrypt competed against, and our guide to Camellia explains another cipher from Japan.

How Hierocrypt works

Everything starts with the key schedule, which expands the master key into the round keys each round needs. The key is stretched through a series of operations that produce a different round key for every round, and the schedule is designed so that the round keys look random even when the master key is simple, which stops an attacker from working backwards from the round keys to the key.

Each outer round begins with substitution, passing every byte of the block through the S-box. The S-box is built from mathematical operations rather than from an arbitrary table, which means its properties can be analysed and proven, and because every byte passes through the same box, a small change in the input spreads quickly through the whole block.

The inner cipher is what makes the round work as a whole. Inside each outer round, a smaller substitution-permutation network transforms the data through its own layers of substitution and mixing, so that the block passes through two levels of diffusion before the round ends, and that depth is why six and a half rounds are enough.

The linear transformation mixes the bytes together after substitution. The bytes are combined with a transformation based on maximum distance separable codes, so that a change in one byte affects many others, and because the transformation is applied at both levels of the nesting, a single changed bit spreads across the whole block within a single outer round.

The key addition step mixes the round key into the state. The block is XORed with the round key, which means the key influences the data in every round, and because the round keys change from round to round, the cipher’s behaviour evolves as the rounds progress rather than repeating itself.

Decryption runs the same rounds in reverse, starting with the final round key and working backwards through the rounds. The receiver applies the inverse substitution box and the inverse transformations in the opposite order, and the plaintext comes back out, which means the same design encrypts and decrypts, even though the decryption path is a mirror image rather than a simple repeat.

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 Hierocrypt works: a smaller cipher nested inside each round, six and a half rounds deep, until the block is transformed.

Comparing Hierocrypt with other AES candidates

Hierocrypt is one of several AES candidates, and each was built with a different emphasis. Rijndael is the clean substitution-permutation design that won the contest, MARS is the heterogeneous design that mixed more operations than any other finalist, and Hierocrypt is the nested design that put a cipher inside each round, while each approach trades something for something else.

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

Aspect Hierocrypt Rijndael MARS
Block size 128 bits 128 bits 128 bits
Key size 128 to 256 bits 128 to 256 bits 128 to 256 bits
Rounds 6.5 10 to 14 32
Structure Nested SPN Substitution-permutation Heterogeneous
Best for Historical interest General use Historical interest

The practical result is that Hierocrypt is the right choice for historical interest, Rijndael suits general use everywhere else, and MARS fits historical interest instead.

Where Hierocrypt is used

Research uses it as a case study in nested design. Cryptographers still cite Hierocrypt when they discuss ciphers built from smaller ciphers, because it is the clearest example of nesting in a serious design, and that lesson shapes how new ciphers are judged today.

Teaching uses it to show how substitution-permutation networks work. Hierocrypt is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover the AES contest and the design ideas that shaped it.

Benchmarks use it to measure nested designs. When someone builds a new library or a new piece of hardware, Hierocrypt is one of the designs they test, because its nesting exercises different parts of a processor than flat ciphers do, and a platform that runs Hierocrypt well is likely to run most ciphers well.

Japanese industry uses it where Toshiba’s influence reached. A small number of older products and libraries include Hierocrypt support because it was a Japanese AES candidate, and those implementations keep running in the background of systems that were built around the contest era, even though nobody chooses Hierocrypt for a new design today.

Standards history uses it to mark the AES contest. Hierocrypt was part of the contest that chose the world’s encryption standard, and it represents the nested path that contest explored, which means historians of the field return to it whenever they ask what the internet’s encryption might have looked like.

Strengths and limits

The greatest strength of Hierocrypt is its depth per round. A cipher that nests a smaller cipher inside each round gets far more mixing from six and a half rounds than a flat design gets from twice as many, and that efficiency is real, measured in published benchmarks and confirmed by the designers’ own analysis.

It is also a strength that the design is mathematically grounded. An S-box built from operations rather than from an arbitrary table can be analysed with proofs rather than with guesswork, and that grounding gives reviewers a confidence that arbitrary tables cannot, which is why the design earned respect even from its critics.

The limits are real, though, and the biggest is complexity. A nested design is harder to implement, harder to analyse, and harder to trust than its rivals, and in a contest where confidence matters as much as strength, that complexity cost it a place among the finalists, which is a lesson every cipher designer since has taken to heart.

Hierocrypt checklist

  • Use Hierocrypt for study and history, not for new systems.
  • Remember it nests a smaller cipher inside each round.
  • Study its layers to understand nested design.
  • Compare it with Rijndael to see the nesting trade-off.
  • Note its six and a half rounds when benchmarking.
  • Test against published test vectors before trusting any implementation.
  • Keep keys random and protect them as carefully as with any cipher.
  • Use a proper mode of operation, never raw block encryption.
  • Choose AES for any system that needs real protection today.

Frequently asked questions

What is Hierocrypt in simple terms?

It is a block cipher from Toshiba that encrypts 128-bit blocks in six and a half rounds, built as a nested design with a smaller cipher inside each round.

What does Hierocrypt mean?

It comes from the Greek for sacred writing, a fitting name for a cipher built like a temple with chambers inside chambers.

How is Hierocrypt different from Rijndael?

Both encrypt 128-bit blocks, but Hierocrypt nests a smaller cipher inside each of its six and a half rounds, while Rijndael repeats one flat round structure ten to fourteen times.

Why did Hierocrypt not reach the AES final?

Because reviewers found its nested design harder to analyse and implement than its rivals, and the contest valued simplicity and confidence alongside raw security.

Is Hierocrypt still secure?

No practical attack against the full cipher has been published, but its complexity means it is studied as history rather than used for new systems.

When should I use Hierocrypt?

When you study nested cipher design, when you teach the AES contest, or when you want a cipher elegant enough to explain in a lecture.

The bottom line

Hierocrypt explained in one line is this: the cipher built like a temple, a nested design from Toshiba that proved a small cipher inside a larger one could do the work of many rounds.

It is proof that depth can replace repetition, and the reason it still matters is that every cipher designed since has been judged partly by the lesson Hierocrypt taught.

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

Latest articles

Scroll to Top