pub struct Hkdf<H: Digest> { /* private fields */ }Expand description
HKDF key schedule state holding one pseudorandom key (PRK).
Implementations§
Source§impl<H: Digest> Hkdf<H>
impl<H: Digest> Hkdf<H>
Sourcepub fn extract(salt: Option<&[u8]>, ikm: &[u8]) -> Self
pub fn extract(salt: Option<&[u8]>, ikm: &[u8]) -> Self
Extract one pseudorandom key from input keying material.
If salt is None, RFC 5869 uses a digest-length all-zero salt.
Sourcepub fn from_prk(prk: &[u8]) -> Option<Self>
pub fn from_prk(prk: &[u8]) -> Option<Self>
Build an HKDF state from a previously extracted PRK.
RFC 5869 defines PRK as one digest-width string.
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for Hkdf<H>
impl<H> RefUnwindSafe for Hkdf<H>where
H: RefUnwindSafe,
impl<H> Send for Hkdf<H>where
H: Send,
impl<H> Sync for Hkdf<H>where
H: Sync,
impl<H> Unpin for Hkdf<H>where
H: Unpin,
impl<H> UnsafeUnpin for Hkdf<H>
impl<H> UnwindSafe for Hkdf<H>where
H: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more