Skip to main content

Crate groestl

Crate groestl 

Source
Expand description

§RustCrypto: Grøstl

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

Pure Rust implementation of the Grøstl cryptographic hash function.

§Examples

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

let mut hasher = Groestl256::default();
hasher.update(b"my message");
let hash = hasher.finalize();

assert_eq!(hash, hex!("dc0283ca481efa76b7c19dd5a0b763dff0e867451bd9488a9c59f6c8b8047a86"));

See the digest crate docs for additional examples.

§License

The crate is licensed under either of:

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use digest;

Modules§

block_api
Block-level types

Structs§

GroestlLong
Long Groestl variant generic over output size.
GroestlShort
Short Groestl variant generic over output size.

Traits§

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

Type Aliases§

Groestl224
Groestl-224 hasher.
Groestl256
Groestl-256 hasher.
Groestl384
Groestl-384 hasher.
Groestl512
Groestl-512 hasher.