Whirlpool
A 512-bit hash built on an AES-like block cipher, standardised in ISO/IEC 10118-3
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Whirlpool
Whirlpool is a cryptographic hash function. It produces a 64-byte (512-bit) output. Its registry entry cites ISO/IEC 10118-3:2004. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Whirlpool is a 512-bit hash function designed by Vincent Rijmen, co-designer of AES, and Paulo Barreto. It was adopted by NESSIE and ISO/IEC and remains unbroken, though it is rarely chosen for new systems.
Whirlpool uses the Miyaguchi–Preneel construction around a dedicated 512-bit block cipher called W. W operates on an 8x8 byte matrix with SubBytes-like S-box substitution, column shifting, MDS mixing and round-key addition, closely mirroring AES but on a larger state. Ten rounds are used. The design inherits the wide-trail strategy, which gives provable bounds against differential and linear trails.
The current version is the third: the original 2000 design was revised once to improve the S-box hardware cost and again to fix a diffusion weakness found in the mixing matrix. NextSSL carries the final ISO/IEC 10118-3:2004 version, with 512-bit output. Earlier versions, sometimes called Whirlpool-0 and Whirlpool-T, produce different digests, so values computed by old software may not match the final standard.
History
2000–2004Whirlpool published by Vincent Rijmen and Paulo Barreto
Selected in the NESSIE portfolio
Adopted in ISO/IEC 10118-3
Specified in ISO/IEC 10118-3:2004
Security notes
No practical attacks on full Whirlpool are known; rebound attacks reach reduced rounds. It is slower than SHA-512 in software and has little ecosystem support, which is why it is classed as legacy rather than recommended.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 64 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
digest = root.call("hash_with", "whirlpool", None, b"abc")[0]
nextssl_root_hash_with("whirlpool", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "whirlpool", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More hash functions
All 424Frequently asked questions
What is Whirlpool?
Whirlpool is a hash in the Whirlpool family. Whirlpool is a 512-bit hash function designed by Vincent Rijmen, co-designer of AES, and Paulo Barreto.
What are the Whirlpool sizes?
In NextSSL, Whirlpool uses: output 64 bytes.
Who designed Whirlpool and when?
Whirlpool belongs to the Whirlpool family, first published in 2000 by Vincent Rijmen, Paulo S. L. M. Barreto. Its origin: NESSIE; ISO/IEC 10118-3.
Which standards define Whirlpool?
Whirlpool is referenced by ISO/IEC 10118-3:2004.
Is Whirlpool safe to use?
Whirlpool is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
KupynaUkraine's national hash standard, DSTU 7564:2014, an AES-like wide-pipe design
SHA-2The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software
StreebogRussia's current hash standard, GOST R 34.11-2012, with 256- and 512-bit outputs