digest

Trait Update

Source
pub trait Update {
    // Required method
    fn update(&mut self, data: &[u8]);

    // Provided method
    fn chain(self, data: impl AsRef<[u8]>) -> Self
       where Self: Sized { ... }
}
Expand description

Types which consume data with byte granularity.

Required Methods§

Source

fn update(&mut self, data: &[u8])

Update state using the provided data.

Provided Methods§

Source

fn chain(self, data: impl AsRef<[u8]>) -> Self
where Self: Sized,

Digest input data in a chained manner.

Implementors§