Trait otter_api_tests::imports::digest::Update[]

pub trait Update {
    fn update(&mut self, data: impl AsRef<[u8]>);

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

Trait for updating digest state with input data.

Required methods

fn update(&mut self, data: impl AsRef<[u8]>)

Digest input data.

This method can be called repeatedly, e.g. for processing streaming messages.

Provided methods

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

Digest input data in a chained manner.

Implementors

impl Update for Sha512

pub fn update(&mut self, input: impl AsRef<[u8]>)

impl Update for Sha512Trunc256

pub fn update(&mut self, input: impl AsRef<[u8]>)

impl Update for Sha224

pub fn update(&mut self, input: impl AsRef<[u8]>)

impl Update for Sha256

pub fn update(&mut self, input: impl AsRef<[u8]>)

impl Update for Sha384

pub fn update(&mut self, input: impl AsRef<[u8]>)

impl Update for Sha512Trunc224

pub fn update(&mut self, input: impl AsRef<[u8]>)