Crate groestl

Source
Expand description

An implementation of the Grøstl cryptographic hash function.

§Usage

use groestl::{Digest, Groestl256};
use hex_literal::hex;

// create a Groestl-256 hasher instance
let mut hasher = Groestl256::default();

// process input message
hasher.update(b"my message");

// acquire hash digest in the form of GenericArray,
// which in this case is equivalent to [u8; 32]
let result = hasher.finalize();
assert_eq!(result[..], hex!("
    dc0283ca481efa76b7c19dd5a0b763dff0e867451bd9488a9c59f6c8b8047a86
"));

Also see RustCrypto/hashes readme.

Re-exports§

Structs§

Traits§

  • Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.

Type Aliases§

  • Groestl-224 hasher state.
  • Groestl-256 hasher state.
  • Groestl-384 hasher state.
  • Groestl-512 hasher state.
  • Hasher state of the long Groestl variant generic over output size.
  • Core hasher state of the long Groestl variant generic over output size.
  • Long Groestl variant which allows to choose output size at runtime.
  • Hasher state of the short Groestl variant generic over output size.
  • Core hasher state of the short Groestl variant generic over output size.
  • Short Groestl variant which allows to choose output size at runtime.