Type Alias SimpleHkdfExtract

Source
pub type SimpleHkdfExtract<H> = HkdfExtract<H, SimpleHmac<H>>;
Expand description

HkdfExtract variant which uses SimpleHmac for underlying HMAC implementation.

Aliased Type§

struct SimpleHkdfExtract<H> { /* private fields */ }

Implementations

Source§

impl<H, I> HkdfExtract<H, I>
where H: OutputSizeUser, I: HmacImpl<H>,

Source

pub fn new(salt: Option<&[u8]>) -> Self

Initiates the HKDF-Extract context with the given optional salt

Source

pub fn input_ikm(&mut self, ikm: &[u8])

Feeds in additional input key material to the HKDF-Extract context

Source

pub fn finalize(self) -> (Output<H>, Hkdf<H, I>)

Completes the HKDF-Extract operation, returning both the generated pseudorandom key and Hkdf struct for expanding.

Trait Implementations

Source§

impl<H, I> Clone for HkdfExtract<H, I>
where H: OutputSizeUser + Clone, I: HmacImpl<H> + Clone,

Source§

fn clone(&self) -> HkdfExtract<H, I>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<H, I> Debug for HkdfExtract<H, I>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more