Type Alias hkdf::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>where H: OutputSizeUser + AlgorithmName, I: HmacImpl<H>,

source§

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

Formats the value using the given formatter. Read more