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
- GOST94 (GOST R 34.11-94 and GOST 34.311-95) [weak]
- MD4 [weak]
- MD4 [weak]
- MD5 [weak]
- RIPEMD-160
- SHA-1 [weak]
- SHA-2
- SHA-3
- Streebog (GOST R 34.11-2012) [weak]
- Whirlpool
Algorithms marked by [weak] are not included by default. To use them enable
include_weak
crate feature.
Usage
use Digest;
// create a SHA3-256 object
let mut hasher = default;
// write input message
hasher.input;
// read result (this will consume hasher)
let out = hasher.result;
assert_eq!;