Panama Explained: The Stream-Cipher Hash That Pointed to the Future

Panama explained in plain terms means understanding the hash that behaved like a stream cipher, a design from 1998 that poured data through a wide state and a buffer instead of chopping it into blocks. The central question is why a hash built like a stream should matter when every other hash of its day worked in blocks, and the answer is that Panama showed a hash could be fast, simple and built from a running state, so the designers who later built the world’s standard hash took its ideas with them, and that lineage is the whole point of the design.

Panama is a cryptographic hash function designed by Joan Daemen and Craig Clapp and presented in 1998, producing a 256-bit digest. It turns a message of any length into a fixed fingerprint with a wide state built from 32-bit words and a buffer that feeds it, and it is built on the idea that hashing can work like a stream, which means the design processes data as it flows rather than in separate rounds, and that flow is what makes it unlike the block hashes of its era.

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

Key takeaways

  • Panama is a hash function from 1998.
  • It was designed by Joan Daemen and Craig Clapp.
  • It produces a 256-bit digest.
  • It works like a stream cipher, not a block hash.
  • It is used in teaching and in hash history today.

What Panama is

Panama is a hash that turns a message into a fingerprint by streaming it through a state, and that flow is what makes it unusual among hashes of its era. A user feeds in data of any size, Panama mixes it into a wide state word by word, and out comes a 256-bit digest, which means the design treats hashing as a continuous process, and that continuity is what keeps it fast.

Its signature feature is the buffer. Most hashes of its day worked block by block, but Panama kept a buffer of incoming data beside its state, which means the design could absorb new words while still mixing the old ones, and because the buffer and the state work together, the hash never waits for a full block before it starts working.

The design was a reaction to the block hashes of the 1990s. MD5 and SHA-1 chopped messages into blocks and ran fixed rounds on each, so Daemen and Clapp built a hash that flowed instead, because a design that streams data can run at the speed of the data itself, and that speed is what made Panama worth building.

It became one of the best-known experimental hashes in the world, and it is named in every history of hash design. Panama influenced the sponge construction that later became SHA-3, it is taught in hash courses as the stream-like alternative, and it is still the first example students meet when they learn that a hash need not work in blocks, which means the design survives as a lesson even though nobody uses it for real digests.

Its most famous property is its designer. Joan Daemen went on to co-design Rijndael, which became AES, and Keccak, which became SHA-3, which means Panama was an early step on the road to the world’s standard ciphers, and because that lineage is so strong, it is the reason historians take the design seriously.

Our guide to SHA-3 explains the standard Panama helped inspire, and our guide to Grøstl explains another hash from the SHA-3 contest.

How Panama works

Everything starts with the state, a wide collection of 32-bit words that holds the running fingerprint. Panama sets its state to a fixed starting value before reading any input, which means the empty message still has a well-defined digest, and because the state is wide, the design has plenty of room to mix data into.

Each word begins with the buffer, which takes in the incoming message a word at a time. The buffer holds recent input while the state mixes older words, which means the hash absorbs data continuously, and because the buffer feeds the state steadily, the design never stalls waiting for a block boundary.

The mixing is what makes the design work as a whole. Panama applies a round function to the state that shuffles, rotates and xors the words together, which means every new word spreads its influence across the whole state, and because the mixing repeats as data flows in, the fingerprint depends on every word of the message.

The buffer spreads the effect further. Words that entered earlier keep influencing the state through the buffer long after they arrived, which means a single changed word alters the digest completely, and because the influence lingers, the hash has a long memory for its input.

The finalisation is what turns the state into a digest. After the last word, Panama runs the state through extra mixing rounds with no new input, which means the digest depends on the whole message and nothing else, and because the final rounds are the same as the mixing rounds, the design needs no special finishing step.

The digest comes from the final state, read out as 256 bits. Panama outputs part of its wide state as the fingerprint, which means the result is a fixed size whatever the input, and that size is exactly what a file format or a signature scheme needs for its integrity field.

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 Panama works: message words take turns flowing through the state, word after word, until a fingerprint emerges.

Comparing Panama with other hashes

Panama is one of several hashes designed in the 1990s, and each was built with a different emphasis. SHA-1 is the American standard with a 160-bit digest and a block design, MD5 is the older standard with a 128-bit digest, and Panama is the one built like a stream with a 256-bit digest, while each approach trades something for something else.

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

Aspect Panama SHA-1 MD5
Digest size 256 bits 160 bits 128 bits
Structure Stream-like state Block rounds Block rounds
Year 1998 1995 1992
Designed for Speed and flow Standard use Standard use
Best for Teaching stream hashes Legacy systems Legacy checksums

The practical result is that Panama is the right choice for teaching stream hashes, SHA-1 suits legacy systems, and MD5 fits legacy checksums instead.

Where Panama is used

Teaching uses it as the stream-hash example. Cryptography courses introduce Panama when they explain that a hash need not work in blocks, because it is the clearest case of the idea in a real design, and a student who understands Panama understands why the sponge construction works the way it does.

Research uses it as a case study in hash design. Cryptographers still cite Panama when they discuss how state and buffer designs evolved, because it is the clearest example of the stream-like approach, and that lesson shapes how new hashes are judged today.

History uses it to tell the story of 1998. The year Daemen and Clapp presented Panama is one of the great dates in hash design, and the hash is remembered wherever that story is told, which means it survives as history as well as a working design.

Standards history uses it to mark the road to SHA-3. Panama was part of the line of designs that led from block hashes to the sponge, and it represents the stream-like approach that contest explored, which means historians return to it whenever they ask how SHA-3 came to be.

Benchmarks use it to measure stream designs. When someone builds a new hash library, Panama is one of the designs they test, because its wide state and buffer exercise different trade-offs than block designs do, and a platform that runs Panama well is likely to run most stream-like hashes well.

Strengths and limits

The greatest strength of Panama is its flow. A hash that streams data runs at the speed of the input, and that strength is real, measured in the benchmarks that praised it and confirmed by the designers who carried its ideas into SHA-3.

It is also a strength that the design is simple. A state, a buffer and a mixing round are easy to explain and easy to implement, and that simplicity is worth more than cleverness in a field where a hash nobody can implement quickly is a hash nobody adopts.

The limits are real, though, and the biggest is that it never became a standard. Panama stayed an experimental design, which means it never had the review or the deployment of SHA-1, and a system that needs a trusted hash must use a standard instead.

Panama checklist

  • Use Panama for study and history, never for new security.
  • Remember it produces a 256-bit digest.
  • Study its stream-like state to understand the design.
  • Compare it with SHA-1 to see the block trade-off.
  • Note it was designed by Daemen and Clapp in 1998.
  • Follow its ideas forward into the sponge and SHA-3.
  • Keep real digests behind standard hashes, not Panama.
  • Read the design story to see how hashes evolved.
  • Choose SHA-3 for any system that needs a standard today.

Frequently asked questions

What is Panama in simple terms?

It is a 1998 hash function that streams data through a wide state and a buffer to produce a 256-bit fingerprint, built more like a stream cipher than a block hash.

Who designed Panama?

Joan Daemen and Craig Clapp, who presented it in 1998, with Daemen later co-designing AES and SHA-3.

How is Panama different from SHA-1?

Both produce fingerprints, but Panama streams data through a state and buffer with a 256-bit digest, while SHA-1 chops messages into blocks with a 160-bit digest.

Is Panama still secure?

It was never standardised and has never had the review of SHA-1 or SHA-3, so it is not a safe choice for new systems.

Where is Panama used?

In research, in teaching about hash design, and in the history of the road to SHA-3.

When should I use Panama?

When you study stream-like hashes, when you tell the story of hash design, or when you want the ancestor of the sponge.

The bottom line

Panama explained in one line is this: the hash that flowed, a 1998 design that streamed data through a wide state and pointed the way from block hashes to the sponge.

It is proof that a hash can flow like a stream, and the reason it still matters is that every hash designed since has been judged partly by the lesson Panama taught.

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

Latest articles

Scroll to Top