[][src]Trait digest::Input

pub trait Input {
    fn input<B: AsRef<[u8]>>(&mut self, data: B);

    fn chain<B: AsRef<[u8]>>(self, data: B) -> Self
    where
        Self: Sized
, { ... } }
[]

Trait for processing input data

Required methods

fn input<B: AsRef<[u8]>>(&mut self, data: B)[]

Digest input data.

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

Provided methods

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

Digest input data in a chained manner.

Implementors

impl Input for Sha256

impl Input for Sha224

impl Input for Sha512

impl Input for Sha384

impl Input for Sha512Trunc256

impl Input for Sha512Trunc224

impl Input for Keccak224

impl Input for Keccak256

impl Input for Keccak384

impl Input for Keccak512

impl Input for Keccak256Full

impl Input for Sha3_224

impl Input for Sha3_256

impl Input for Sha3_384

impl Input for Sha3_512

impl Input for Shake128

impl Input for Shake256