[−][src]Trait crypto_api::hash::Hash
A stateless (oneshot) hash interface
Required methods
fn info(&self) -> HashInfo
Returns information about the hash
fn hash(
&self,
buf: &mut [u8],
data: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
&self,
buf: &mut [u8],
data: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
Hashes data
into buf
and returns the hash length