Crate whirlpool [] [src]

An implementation of the Whirlpool cryptographic hash algorithm.

This is the algorithm recommended by NESSIE (New European Schemes for Signatures, Integrity and Encryption; an European research project).

The constants used by Whirlpool were changed twice (2001 and 2003) - this module only implements the most recent standard. The two older Whirlpool implementations (sometimes called Whirlpool-0 (pre 2001) and Whirlpool-T (pre 2003)) were not used much anyway (both have never been recommended by NESSIE).

For details see http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html.

Usage

use whirlpool::{Whirlpool, Digest};

let mut hasher = Whirlpool::default();
hasher.input(b"Hello Whirlpool");
let result = hasher.result();

Structs

Whirlpool

Traits

Digest

The Digest trait specifies an interface common to digest functions. It's a convinience wrapper around Input and FixedResult traits