[][src]Struct ring::hkdf::Okm

pub struct Okm<'a, L: KeyType> { /* fields omitted */ }

An HKDF OKM (Output Keying Material)

Intentionally not Clone or Copy as an OKM is generally only safe to use once.


impl<L: KeyType, '_> Okm<'_, L>[src]

pub fn len(&self) -> &L[src]

The OkmLength given to Prf::expand().

pub fn fill(self, out: &mut [u8]) -> Result<(), Unspecified>[src]

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

impl<'_> From<Okm<'_, &'static Algorithm>> for UnboundKey[src]

impl<'_> From<Okm<'_, &'static Algorithm>> for HeaderProtectionKey[src]

impl<'_> From<Okm<'_, Algorithm>> for Salt[src]

impl<'_> From<Okm<'_, Algorithm>> for Prk[src]

impl<'_> From<Okm<'_, Algorithm>> for Key[src]

impl<'a, L: Debug + KeyType> Debug for Okm<'a, L>[src]

Auto Trait Implementations

impl<'a, L> Send for Okm<'a, L> where
    L: Send

impl<'a, L> Sync for Okm<'a, L> where
    L: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized