Trait wedpr_l_utils::traits::Hash[][src]

pub trait Hash {
    fn hash<T: ?Sized + AsRef<[u8]>>(&self, input: &T) -> Vec<u8>;
}

Trait of a replaceable hash algorithm.

Required methods

fn hash<T: ?Sized + AsRef<[u8]>>(&self, input: &T) -> Vec<u8>[src]

Generates a fixed length hash bytes vector from a bytes array of any length.

Loading content...

Implementors

Loading content...