Collection of cryptographic hash functions written in pure Rust.
This crate provides convenient re-exports from other crates. Additionally
it's a no_std
crate, so it can be easily used in embedded applications.
Supported algorithms
- BLAKE2
- MD4
- MD5 (not included)
- RIPEMD-160
- SHA-1 (not included)
- SHA-2
- SHA-3
- Streebog (GOST R 34.11-2012)
- Whirlpool
Usage
use Digest;
// create a SHA3-256 object
let mut hasher = new;
// write input message
hasher.input;
// read result (this will consume hasher)
let out = hasher.result;
assert_eq!;