digestpp 1.0
C++11 header-only message digest library
Loading...
Searching...
No Matches
Whirlpool

Whirlpool Algorithm More...

Typedefs

typedef hasher< detail::whirlpool_providerdigestpp::whirlpool
 Whirlpool hash function.
 

Detailed Description

Whirlpool Algorithm

Typedef Documentation

◆ whirlpool

Whirlpool hash function.

ISO/IEC standard hash function (ISO/IEC 10118-3:2004) based on a modified AES cipher. Designed by Vincent Rijmen (co-creator of AES) and Paulo S. L. M. Barreto.

Whirlpool uses a 512-bit block cipher in Miyaguchi-Preneel construction, with an 8×8 S-box derived from the AES design principles. The algorithm provides excellent security properties and is suitable for applications requiring 256-bit security level.

Standardized as ISO/IEC 10118-3:2004. Recommended by NESSIE (New European Schemes for Signatures, Integrity, and Encryption). Always produces 512-bit output.

Type:
Cryptographic hash function.
Output size:
512 bits
Default size:
512 bits
Example:
// Output a Whirlpool digest of a string
hasher.absorb("The quick brown fox jumps over the lazy dog");
std::cout << hasher.hexdigest() << '\n';
Main class template implementing the public API for hashing.
Definition hasher.hpp:38
std::string hexdigest() const
Return hex digest of absorbed data.
Definition hasher.hpp:372
hasher & absorb(const T *data, size_t len)
Absorbs bytes from a C-style pointer to character buffer.
Definition hasher.hpp:86
Example output:
b97de512e91e3828b40d2b0fdce9ceb3c4a71f9bea8d88e75c4fa854df36725fd2b52eb6544edcacd6f8beddfea403cb55ae31f03ad62a5ef54e42ee82c3fb35
See also
hasher, groestl