pub fn hash_with_salt(&self, password: &[u8], salt: &[u8]) -> Vec<u8> {
        match *self {
            Algorithm::Single(ref p) => p.compute(password, salt),
            Algorithm::Nested {
                ref inner,
                ref outer,
            } => {
                let innerput = inner.hash_with_salt(password, salt);
                outer.compute(&innerput, salt)
            }
        }
    }
/// Computes the hash output for given password and salt.
Computes the hash output for given password and salt.
Computes the hash output for given password and salt .
pub fn hash_with_salt(&self, password: &[u8], salt: &[u8]) -> Vec<u8> {
        match *self {
            Algorithm::Single(ref p) => p.compute(password, salt),
            Algorithm::Nested {
                ref inner,
                ref outer,
            } => {
                let innerput = inner.hash_with_salt(password, salt);
                outer.compute(&innerput, salt)
            }
        }
    }
pub fn hash_with_salt ( & self , password : & [ u8 ] , salt : & [ u8 ] ) -> Vec < u8 > { match * self { Algorithm :: Single ( ref p ) => p . compute ( password , salt ) , Algorithm :: Nested { ref inner , ref outer , } => { let innerput = inner . hash_with_salt ( password , salt ) ; outer . compute ( & innerput , salt ) } } }
Computes the hash output for given password and salt.
Computes the hash output for given password and salt .
&self
password
&[u8]
salt
&[u8]
&self
password
&[u8]
salt
&[u8]