chksum-hash-sha2-384
An implementation of SHA-2 384 hash algorithm for batch and stream computation.
Setup
To use this crate, add the following entry to your Cargo.toml
file in the dependencies
section:
[]
= "0.0.1"
Alternatively, you can use the cargo add
subcommand:
cargo add chksum-hash-sha2-384
Usage
Use the hash
function for batch digest calculation.
use chksum_hash_sha2_384 as sha2_384;
let digest = hash;
assert_eq!;
Use the default
function to create a hash instance for stream digest calculation.
use chksum_hash_sha2_384 as sha2_384;
let digest = default
.update
.update
.update
.digest;
assert_eq!;
For more usage examples, refer to the documentation available at docs.rs.
License
This crate is licensed under the MIT License.