Skip to main content

DigestUpdate

Trait DigestUpdate 

Source
pub trait DigestUpdate {
    // 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Update for Sha1

Source§

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

Source§

impl<OutSize> Update for Blake2bMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>, <OutSize as IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Source§

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

Source§

impl<OutSize> Update for Blake2sMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>, <OutSize as IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Source§

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

Implementors§