tc_digest 0.1.1

Shared streaming message-digest and extendable-output function (XOF) traits, fallible and infallible.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Digests built on the traits that are not hash algorithms, ported from
//! Bouncy Castle: [`NullDigest`] writes its input back unchanged, [`Prehash`]
//! passes through one digest value computed elsewhere, and [`ShortenedDigest`]
//! truncates another digest's output.
//!
//! Available with the `alloc` feature: each needs an allocator, and wipes what
//! it holds through `tc_zeroize`.

mod null;
mod prehash;
mod shortened;

pub use null::NullDigest;
pub use prehash::{Prehash, PrehashError};
pub use shortened::ShortenedDigest;