Trait digest::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]>) -> Selfwhere Self: Sized,

Digest input data in a chained manner.

Implementors§

source§

impl<T> Update for CoreWrapper<T>where T: BufferKindUser + UpdateCore, T::BlockSize: IsLess<U256>, Le<T::BlockSize, U256>: NonZero,

Available on crate feature core-api only.
source§

impl<T> Update for RtVariableCoreWrapper<T>where T: VariableOutputCore + UpdateCore, T::BlockSize: IsLess<U256>, Le<T::BlockSize, U256>: NonZero,

Available on crate feature core-api only.