pub struct Okm<'a, L: KeyType> {
prk: &'a Prk,
info_bytes: Box<[u8]>,
info_len: usize,
len: L,
}
Expand description
An HKDF OKM (Output Keying Material)
Intentionally not Clone
or Copy
as an OKM is generally only safe to
use once.
Fields§
§prk: &'a Prk
§info_bytes: Box<[u8]>
§info_len: usize
§len: L
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, L> Freeze for Okm<'a, L>where
L: Freeze,
impl<'a, L> RefUnwindSafe for Okm<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for Okm<'a, L>where
L: Send,
impl<'a, L> Sync for Okm<'a, L>where
L: Sync,
impl<'a, L> Unpin for Okm<'a, L>where
L: Unpin,
impl<'a, L> UnwindSafe for Okm<'a, L>where
L: 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