[][src]Trait balloons::HashAlgo

pub trait HashAlgo<U, H> where
    U: FixedUint,
    H: FixedHash<U>, 
{ fn create() -> Self;
fn update<T>(&mut self, data: T) -> Result<()>
    where
        T: AsRef<[u8]>
;
fn finalize(self) -> Result<H>;
fn finalize_into(self, dst: &mut H) -> Result<()>; fn update_u64(&mut self, uint64: u64) -> Result<()> { ... } }

A hash algorithm which is used in balloon hashing algorithm.

Required methods

fn create() -> Self

fn update<T>(&mut self, data: T) -> Result<()> where
    T: AsRef<[u8]>, 

fn finalize(self) -> Result<H>

fn finalize_into(self, dst: &mut H) -> Result<()>

Loading content...

Provided methods

fn update_u64(&mut self, uint64: u64) -> Result<()>

Loading content...

Implementors

Loading content...