pub trait Kbkdf<Prf, K, R: R>where
Prf: Mac + KeyInit,
K: KeySizeUser,
K::KeySize: ArraySize + Mul<U8>,
<K::KeySize as Mul<U8>>::Output: Unsigned,
Prf::OutputSize: ArraySize + Mul<U8>,
<Prf::OutputSize as Mul<U8>>::Output: Unsigned,{
const FEEDBACK_KI: bool = false;
const DOUBLE_PIPELINE: bool = false;
// Provided methods
fn derive(
&self,
params: Params<'_, '_, '_>,
) -> Result<Array<u8, K::KeySize>, Error> { ... }
fn input_iv(&self, _ki: &mut Option<Array<u8, Prf::OutputSize>>) { ... }
}Expand description
Kbkdf is a trait representing a mode of KBKDF.
It takes multiple arguments:
- Prf - the Pseudorandom Function to derive keys from
- K - the expected output length of the newly derived key
- R - An integer (1 <= r <= 32) that indicates the length of the binary encoding of the counter i as an integer in the interval [1, 2r − 1].
Provided Associated Constants§
Sourceconst FEEDBACK_KI: bool = false
const FEEDBACK_KI: bool = false
Whether the KI should be reinjected every round.
const DOUBLE_PIPELINE: bool = false
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.