[][src]Trait kerl::Sponge

pub trait Sponge: 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

impl Sponge for Kerl where
    Self: Send + 'static, 
[src]

type Item = i8

Loading content...