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§

pub use digest;

Structs§

GroestlLongVarCore
Lowest-level core hasher state of the long Groestl variant.
GroestlShortVarCore
Lowest-level core hasher state of the short Groestl variant.

Traits§

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

Type Aliases§

Groestl224
Groestl-224 hasher state.
Groestl256
Groestl-256 hasher state.
Groestl384
Groestl-384 hasher state.
Groestl512
Groestl-512 hasher state.
GroestlLong
Hasher state of the long Groestl variant generic over output size.
GroestlLongCore
Core hasher state of the long Groestl variant generic over output size.
GroestlLongVar
Long Groestl variant which allows to choose output size at runtime.
GroestlShort
Hasher state of the short Groestl variant generic over output size.
GroestlShortCore
Core hasher state of the short Groestl variant generic over output size.
GroestlShortVar
Short Groestl variant which allows to choose output size at runtime.