Hash functions

Whirlpool

A 512-bit hash built on an AES-like block cipher, standardised in ISO/IEC 10118-3

legacy Root API only
Legacy tier.

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–2004
  1. Whirlpool published by Vincent Rijmen and Paulo Barreto

  2. Selected in the NESSIE portfolio

  3. Adopted in ISO/IEC 10118-3

  4. 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

Interoperability with ISO/IEC 10118-3 systemsLegacy disk-encryption tools that used it for key derivation

Sizes

FieldBytesMeaning
out64Output

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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).