[][src]Trait sponge_preview::Sponge

pub trait Sponge where
    Self: Default + Clone
{ type Item; fn absorb(&mut self, input: &[Self::Item]);
fn squeeze(&mut self, output: &mut [Self::Item]);
fn reset(&mut self); fn digest(&mut self, input: &[Self::Item], output: &mut [Self::Item]) { ... } }

Associated Types

type Item

Loading content...

Required methods

fn absorb(&mut self, input: &[Self::Item])

Absorb trits into the sponge

fn squeeze(&mut self, output: &mut [Self::Item])

Squeeze trits out of the sponge and copy them into out

fn reset(&mut self)

Reset the sponge to initial state

Loading content...

Provided methods

fn digest(&mut self, input: &[Self::Item], output: &mut [Self::Item])

Digest inputs and then compute the hash with length of provided output slice

Loading content...

Implementors

Loading content...