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]>) -> Self
where Self: Sized,

Digest input data in a chained manner.

Implementors§

source§

impl<T> Update for CoreWrapper<T>

source§

impl<T> Update for RtVariableCoreWrapper<T>

impl<OutSize> Update for Blake2bMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<U64>, LeEq<OutSize, U64>: NonZero,

impl<OutSize> Update for Blake2sMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<U32>, LeEq<OutSize, U32>: NonZero,

impl Update for XxHash32

impl Update for XxHash64

impl Update for Hash128

impl Update for Hash64