Struct hkdf::HkdfExtract
source · [−]pub struct HkdfExtract<H, I = Hmac<H>> where
H: OutputSizeUser,
I: HmacImpl<H>, { /* private fields */ }
Expand description
Structure representing the streaming context of an HKDF-Extract operation
let mut extract_ctx = HkdfExtract::<Sha256>::new(Some(b"mysalt"));
extract_ctx.input_ikm(b"hello");
extract_ctx.input_ikm(b" world");
let (streamed_res, _) = extract_ctx.finalize();
let (oneshot_res, _) = Hkdf::<Sha256>::extract(Some(b"mysalt"), b"hello world");
assert_eq!(streamed_res, oneshot_res);
Implementations
Initiates the HKDF-Extract context with the given optional salt
Feeds in additional input key material to the HKDF-Extract context
Trait Implementations
impl<H, I> Debug for HkdfExtract<H, I> where
H: OutputSizeUser + AlgorithmName,
I: HmacImpl<H>,
impl<H, I> Debug for HkdfExtract<H, I> where
H: OutputSizeUser + AlgorithmName,
I: HmacImpl<H>,
Auto Trait Implementations
impl<H, I> RefUnwindSafe for HkdfExtract<H, I> where
H: RefUnwindSafe,
I: RefUnwindSafe,
impl<H, I> Send for HkdfExtract<H, I> where
H: Send,
I: Send,
impl<H, I> Sync for HkdfExtract<H, I> where
H: Sync,
I: Sync,
impl<H, I> Unpin for HkdfExtract<H, I> where
H: Unpin,
I: Unpin,
impl<H, I> UnwindSafe for HkdfExtract<H, I> where
H: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more