Whirlpool explained in plain terms means understanding a hash function built like a block cipher, a design from Vincent Rijmen and Paulo Barreto that turns a cipher inside out to fingerprint data. The central question is why anyone would build a hash from a cipher, and the answer is that a good cipher already mixes data thoroughly, so turning it into a hash is a natural step.
Whirlpool is a cryptographic hash function designed by Vincent Rijmen and Paulo Barreto and first published in 2000. It produces a 512-bit digest, processes data in 512-bit blocks, and it is built on the Miyaguchi-Preneel construction, which feeds the message through a dedicated block cipher and mixes the output back into the state.
This article explains what Whirlpool is, how it works, and where it is used in practice today.
Key takeaways
- Whirlpool is a hash function designed by Rijmen and Barreto in 2000.
- It produces a 512-bit digest from 512-bit blocks.
- It is built on the Miyaguchi-Preneel construction.
- Its core cipher uses AES-like rounds with a square state.
- It was standardised by ISO as part of ISO/IEC 10118-3.
What Whirlpool is
Whirlpool is a hash that takes any message and returns a fixed 512-bit fingerprint, passing the data through ten rounds of substitution and mixing. Each round substitutes every byte through an S-box, mixes the bytes together with a linear transformation, and adds a round key, and the rounds repeat until the block has been transformed beyond recognition.
Its signature feature is the square state. Whirlpool arranges its 512 bits as an eight-by-eight grid of bytes, which is the same shape as the cipher it is built from, and because the state is a square, the mixing steps can spread changes across rows and columns in a single round.
The design was a reaction to the needs of the new century. By 2000, the older hashes were showing their age, and Rijmen and Barreto wanted a hash with a generous 512-bit output that could stand beside AES, so they built Whirlpool from the same design ideas as the cipher they had already helped to create.
It became one of the best-known hashes of its generation, and it was adopted into the ISO standard for hash functions. Reaching an ISO standard was itself a mark of quality, because the standard lists only designs that survived public cryptanalysis, and Whirlpool has stood in that list for more than twenty years.
Its most famous property is the name. Whirlpool suggests water spinning in a circle, a fitting image for a function that churns data until no trace of the original remains, and the name has stuck through two decades of study, which is a reminder that cryptographers still enjoy a name with a picture behind it.
Our guide to AES encryption explains the cipher Whirlpool’s design resembles, and our guide to SEED explains another cipher from the same era.
How Whirlpool works
Everything starts with padding, which prepares the message for hashing. The message is extended with a one bit, then zeros, then its length, until it fills a whole number of 512-bit blocks, and the padding is designed so that two different messages can never pad to the same blocks, which stops an attacker from forging a message with the same hash.
Each block begins with the compression function, which takes the current state and the message block together. The state and the block are combined through the cipher, and the output is mixed back into the state, which means every block changes the state in a way that depends on everything that came before it.
The substitution step is what makes the round work as a whole. Every byte of the state passes through the same S-box, which is built from mathematical operations rather than from an arbitrary table, and because every byte passes through the same box, a small change in the input spreads quickly through the whole state.
The linear transformation mixes the bytes together after substitution. The bytes in each column 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 in every round, a single changed bit spreads across the whole state within a couple of rounds.
The round key step mixes a changing key into the state. A round constant is added to the state in every round, which means the rounds behave differently from each other, and because the constants change from round to round, the hash’s behaviour evolves as the rounds progress rather than repeating itself.
The final digest is simply the state after the last block. The receiver reads out the 512-bit state as the hash value, and because every bit of the message influenced the state along the way, changing even one bit of the message changes the digest completely, which is the avalanche effect every hash needs.

Comparing Whirlpool with other hash functions
Whirlpool is one of several hash functions built for long digests, and each was built with a different emphasis. SHA-256 is the widely used 256-bit hash from the United States standard, MD5 is the older 128-bit hash that is now broken, and Whirlpool is the 512-bit hash built from a block cipher, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Whirlpool | SHA-256 | MD5 |
|---|---|---|---|
| Digest size | 512 bits | 256 bits | 128 bits |
| Block size | 512 bits | 512 bits | 512 bits |
| Rounds | 10 | 64 | 64 |
| Construction | Miyaguchi-Preneel | Merkle-Damgard | Merkle-Damgard |
| Best for | Long digests | General use | Historical interest |
The practical result is that Whirlpool is the right choice for long digests, SHA-256 suits general use everywhere else, and MD5 fits historical interest instead.
Where Whirlpool is used
Research uses it as a case study in cipher-based hashing. Cryptographers still cite Whirlpool when they discuss building hashes from block ciphers, because it is the clearest example of the Miyaguchi-Preneel construction in a serious design, and that lesson shapes how new hashes are judged today.
Teaching uses it to show how hash functions work. Whirlpool 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 hash design and the ideas that shaped it.
Benchmarks use it to measure hash designs. When someone builds a new library or a new piece of hardware, Whirlpool is one of the functions they test, because its square state exercises different parts of a processor than other hashes do, and a platform that runs Whirlpool well is likely to run most hashes well.
Software uses it where long digests are wanted. A small number of tools and libraries include Whirlpool support because it offers a 512-bit output with an ISO pedigree, and those implementations keep running in the background of systems that were built around that choice, even though most new designs choose a SHA-2 or SHA-3 hash today.
Standards history uses it to mark the post-AES era. Whirlpool was part of the wave of designs that followed the AES contest, and it represents the cipher-based path that wave explored, which means historians of the field return to it whenever they ask what hashing might have looked like.
Strengths and limits
The greatest strength of Whirlpool is its output size. A 512-bit digest gives a huge safety margin against collision attacks, and that margin is real, measured in the work an attacker would need and confirmed by the designers’ own analysis of the construction.
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 adoption. Whirlpool never found a large deployment, which means smaller communities of implementers, fewer independent reviews in recent years, and less tooling than the SHA family enjoys, and a system that must interoperate will usually choose SHA-256 instead.
Whirlpool checklist
- Use Whirlpool for study and long digests, not for new systems.
- Remember it produces a 512-bit digest.
- Study its rounds to understand cipher-based hashing.
- Compare it with SHA-256 to see the construction trade-off.
- Note its ten rounds and square state when benchmarking.
- Test against published test vectors before trusting any implementation.
- Keep keys random and protect them as carefully as with any hash.
- Use a proper mode of operation, never raw hashing of secrets.
- Choose SHA-256 for any system that needs real protection today.
Frequently asked questions
What is Whirlpool in simple terms?
It is a hash function that turns any message into a fixed 512-bit fingerprint, built by feeding the message through a block cipher ten times.
Why is it called Whirlpool?
After water spinning in a circle, a fitting image for a function that churns data until no trace of the original message remains.
How is Whirlpool different from SHA-256?
Both hash messages into fixed digests, but Whirlpool produces 512 bits using a cipher-based construction, while SHA-256 produces 256 bits with its own round design.
Is Whirlpool still secure?
No practical attack against the full hash has been published, but it is less widely reviewed than the SHA family, so it is studied as a design rather than chosen for new systems.
Who designed Whirlpool?
Vincent Rijmen and Paulo Barreto, the same pair behind the Anubis cipher, who built Whirlpool in 2000 from AES-like design ideas.
When should I use Whirlpool?
When you study hash design, when you need a long ISO-standard digest, or when you want a hash elegant enough to teach in a lecture.
The bottom line
Whirlpool explained in one line is this: the hash built like a cipher, a 512-bit fingerprint from Rijmen and Barreto that proved a cipher could become a hash.
It is proof that good ideas cross boundaries, and the reason it still matters is that every hash designed since has been judged partly by the lesson Whirlpool taught.
This article is general information about how Whirlpool works, not advice about choosing encryption for a particular device or system.







