crc32_digest
An implementation of the digest
crate's Digest
and DynDigest
traits using
crc32fast
.
If digest
is built with the std
feature enabled, Crc32
will implement Write
as well.
Internally, the Crc32
struct provided by this crate implements the FixedOutput
, Input
, and Reset
traits. A
blanket impl
of Digest
and DynDigest
is provided by digest
for types implementing those
traits (along with Clone
and Default
).
Requirements
Rust 1.32 or newer is required for u32::to_be_bytes
.
Write
support requires the std
feature of digest
to be enabled.
Usage
use Crc32;
use Digest;
Alternatively, Crc32::from_state(state: u32)
can be used to create a new Crc32
instance with a specific initial
state.