Crate ripemd256[−][src]
Expand description
An implementation of the RIPEMD-256 cryptographic hash.
Usage
use hex_literal::hex; use ripemd256::{Ripemd256, Digest}; // create a RIPEMD-256 hasher instance let mut hasher = Ripemd256::new(); // process input message hasher.update(b"Hello world!"); // acquire hash digest in the form of GenericArray, // which in this case is equivalent to [u8; 32] let expected = hex!("2700f1122c7bd5df165b0615efbbbc54f551aef2401738811a5aea19ccb9233a"); let result = hasher.finalize(); assert_eq!(&result[..], &expected[..]);
Re-exports
pub use digest; |
Structs
Ripemd256 | Structure representing the state of a Ripemd256 computation |
Traits
Digest | The |