# Module crypto::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 self::crypto::whirlpool::Whirlpool;
    use self::crypto::digest::Digest;

    let mut hasher = Whirlpool::new();
    hasher.input_str("Hello Whirlpool");
    let result = hasher.result_str();

    assert_eq!(result,
        concat!("8eaccdc136903c458ea0b1376be2a5fc",
                "9dc5b8ce8892a3b4f43366e2610c206c",
                "a373816495e63db0fff2ff25f75aa716",
                "2f332c9f518c3036456502a8414d300a"));

## Structs

Whirlpool |

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)