Skip to main content

PbKdf

Trait PbKdf 

Source
pub trait PbKdf {
    // Required method
    fn derive<const PASS_LEN: usize, const KEY_LEN: usize>(
        self,
        pass: CryptoSensitiveRef<'_, PASS_LEN>,
        iter: usize,
        salt: &[u8],
        key: &mut CryptoSensitive<KEY_LEN>,
    ) -> Result<(), Error>;
}
Expand description

Trait representing a Password-Based Key Derivation Function (PBKDF).

Required Methods§

Source

fn derive<const PASS_LEN: usize, const KEY_LEN: usize>( self, pass: CryptoSensitiveRef<'_, PASS_LEN>, iter: usize, salt: &[u8], key: &mut CryptoSensitive<KEY_LEN>, ) -> Result<(), Error>

Derive a key from the given password, salt and iteration count, writing the result into key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§