KeyDerivation

Trait KeyDerivation 

Source
pub trait KeyDerivation {
    // Required method
    fn derive(
        &self,
        input: &[u8],
        salt: &[u8],
        info: &[u8],
    ) -> Result<SecretKey>;
}
Expand description

Trait for the key derivation functions

Enables secure storage or transport of keys by encrypting them

Required Methods§

Source

fn derive(&self, input: &[u8], salt: &[u8], info: &[u8]) -> Result<SecretKey>

Derive a key from the input material

Implementors§