DigestIncremental

Trait DigestIncremental 

Source
pub trait DigestIncremental<const OUTPUT_LEN: usize>: DigestIncrementalBase {
    // Required method
    fn finish(state: &mut Self::IncrementalState, digest: &mut [u8; OUTPUT_LEN]);
}
Expand description

A trait for incremental hashing, where the output is written into a provided buffer.

Required Methods§

Source

fn finish(state: &mut Self::IncrementalState, digest: &mut [u8; OUTPUT_LEN])

Writes the digest into digest.

Note that the digest state can be continued to be used, to extend the digest.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§