Skip to main content

Kdf

Trait Kdf 

Source
pub trait Kdf {
    // Required method
    fn expand<const IKM_LEN: usize, const KEY_LEN: usize>(
        self,
        salt: &[u8],
        ikm: CryptoSensitiveRef<'_, IKM_LEN>,
        info: &[u8],
        key: &mut CryptoSensitive<KEY_LEN>,
    ) -> Result<(), Error>;
}
Expand description

Trait representing a Key Derivation Function (KDF).

Required Methods§

Source

fn expand<const IKM_LEN: usize, const KEY_LEN: usize>( self, salt: &[u8], ikm: CryptoSensitiveRef<'_, IKM_LEN>, info: &[u8], key: &mut CryptoSensitive<KEY_LEN>, ) -> Result<(), Error>

Expand the given input keying material (IKM) with the given salt and info to produce the output keying material (OKM) written into key.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§