pub struct Okm<'a, L: KeyType> { /* private fields */ }
Expand description
An HKDF OKM (Output Keying Material)
Intentionally not Clone
or Copy
as an OKM is generally only safe to
use once.
Implementations
sourceimpl<L: KeyType> Okm<'_, L>
impl<L: KeyType> Okm<'_, L>
sourcepub fn fill(self, out: &mut [u8]) -> Result<(), Unspecified>
pub fn fill(self, out: &mut [u8]) -> Result<(), Unspecified>
Fills out
with the output of the HKDF-Expand operation for the given
inputs.
Fails if (and only if) the requested output length is larger than 255 times the size of the digest algorithm’s output. (This is the limit imposed by the HKDF specification due to the way HKDF’s counter is constructed.)
Trait Implementations
sourceimpl From<Okm<'_, &'static Algorithm>> for UnboundKey
impl From<Okm<'_, &'static Algorithm>> for UnboundKey
sourceimpl From<Okm<'_, &'static Algorithm>> for HeaderProtectionKey
impl From<Okm<'_, &'static Algorithm>> for HeaderProtectionKey
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more