kbkdf

Function kbkdf 

Source
pub fn kbkdf<'a, T: PseudoRandomFunction<'a>>(
    kdf_mode: &KDFMode<'_>,
    input_type: &InputType<'_>,
    key: &'a dyn PseudoRandomFunctionKey<KeyHandle = T::KeyHandle>,
    prf: &mut T,
    derived_key: &mut [u8],
) -> Result<(), T::Error>
Expand description

Performs SP800-108 key-based key derivation function

§Inputs

  • kdf_mode - Which mode the the derivation function will run in
  • input_type - The type of input used to derive the key
  • key - The base key to use to derive the key
  • prf - The Pseudo-random function used to derive the key
  • derived_key - The output key

§Panics

If invalid options are provided, this function will panic