Struct hkdf::Hkdf [−][src]
pub struct Hkdf<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>, { /* fields omitted */ }
Expand description
Structure representing the HKDF, capable of HKDF-Expand and HKDF-Extract operations.
Implementations
impl<D> Hkdf<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D> Hkdf<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
Convenience method for extract
when the generated
pseudorandom key can be ignored and only HKDF-Expand operation is needed. This is the most
common constructor.
Create Hkdf
from an already cryptographically strong pseudorandom key
as per section 3.3 from RFC5869.
The RFC5869 HKDF-Extract operation returning both the generated
pseudorandom key and Hkdf
struct for expanding.
The RFC5869 HKDF-Expand operation. This is equivalent to calling
expand
with the info
argument set equal to the
concatenation of all the elements of info_components
.
Trait Implementations
impl<D: Clone> Clone for Hkdf<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D: Clone> Clone for Hkdf<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
Auto Trait Implementations
impl<D> RefUnwindSafe for Hkdf<D> where
D: RefUnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Unpin for Hkdf<D> where
D: Unpin,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for Hkdf<D> where
D: UnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more