[][src]Trait crypto_api::hash::VarlenHash

pub trait VarlenHash: Hash {
    fn varlen_hash(
        &self,
        buf: &mut [u8],
        data: &[u8]
    ) -> Result<usize, Box<dyn Error + 'static>>; }

A variable length extension for Hash

Required methods

fn varlen_hash(
    &self,
    buf: &mut [u8],
    data: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>

Hashes data into buf and returns the hash length

Loading content...

Implementors

Loading content...