Struct hkdf::Hkdf [−][src]
pub struct Hkdf<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::OutputSize: ArrayLength<u8>, { pub prk: GenericArray<u8, D::OutputSize>, }
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> + Clone,
D::OutputSize: ArrayLength<u8>,
[src]
impl<D> Hkdf<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8> + Clone,
D::OutputSize: ArrayLength<u8>,
pub fn extract(salt: Option<&[u8]>, ikm: &[u8]) -> Hkdf<D>
[src]
pub fn extract(salt: Option<&[u8]>, ikm: &[u8]) -> Hkdf<D>
The RFC5869 HKDF-Extract operation
pub fn expand(&self, info: &[u8], okm: &mut [u8]) -> Result<(), InvalidLength>
[src]
pub fn expand(&self, info: &[u8], okm: &mut [u8]) -> Result<(), InvalidLength>
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]
impl<D: Clone> Clone for Hkdf<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::OutputSize: ArrayLength<u8>,
D::OutputSize: Clone,