[−][src]Struct hkdf::Hkdf
Structure representing the HKDF, capable of HKDF-Expand and HKDF-extract operations.
Fields
prk: GenericArray<u8, D::OutputSize>
Methods
impl<D> Hkdf<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
pub fn extract(salt: Option<&[u8]>, ikm: &[u8]) -> Hkdf<D>
[src]
The RFC5869 HKDF-Extract operation
pub fn expand(&self, info: &[u8], okm: &mut [u8]) -> Result<(), InvalidLength>
[src]
The RFC5869 HKDF-Expand operation
Trait Implementations
impl<D: Clone> Clone for Hkdf<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::OutputSize: ArrayLength<u8>,
D::OutputSize: Clone,
[src]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::OutputSize: ArrayLength<u8>,
D::OutputSize: Clone,
Auto Trait Implementations
impl<D> Unpin for Hkdf<D> where
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> Send for Hkdf<D>
impl<D> Sync for Hkdf<D>
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self