pub enum HkdfMode {
ExtractAndExpand,
ExtractOnly,
ExpandOnly,
}Expand description
HKDF extraction/expansion mode.
Variants§
ExtractAndExpand
Extract a pseudorandom key (PRK) from the IKM, then expand it.
This is the standard two-step mode from RFC 5869 §2.
ExtractOnly
Extract phase only — output is the PRK.
ExpandOnly
Expand phase only — input key must already be a PRK.
Trait Implementations§
impl Copy for HkdfMode
impl Eq for HkdfMode
impl StructuralPartialEq for HkdfMode
Auto Trait Implementations§
impl Freeze for HkdfMode
impl RefUnwindSafe for HkdfMode
impl Send for HkdfMode
impl Sync for HkdfMode
impl Unpin for HkdfMode
impl UnsafeUnpin for HkdfMode
impl UnwindSafe for HkdfMode
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