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 ininput_type- The type of input used to derive the keykey- The base key to use to derive the keyprf- The Pseudo-random function used to derive the keyderived_key- The output key
§Panics
If invalid options are provided, this function will panic