Skip to main content

Update

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.

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 CShake128

Source§

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

Source§

impl Update for CShake256

Source§

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

Source§

impl Update for Sha224

Source§

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

Source§

impl Update for Sha256

Source§

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

Source§

impl Update for Sha384

Source§

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

Source§

impl Update for Sha512

Source§

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

Source§

impl Update for Sha512_224

Source§

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

Source§

impl Update for Sha512_256

Source§

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

Source§

impl<const DS: u8> Update for TurboShake128<DS>

Source§

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

Source§

impl<const DS: u8> Update for TurboShake256<DS>

Source§

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

Implementors§