Struct hkdf::HkdfExtract [−][src]
pub struct HkdfExtract<D> where
D: CoreProxy,
D::Core: HashMarker + UpdateCore + FixedOutputCore + BufferKindUser<BufferKind = Eager> + Default + Clone,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero, { /* fields omitted */ }
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
Auto Trait Implementations
impl<D> RefUnwindSafe for HkdfExtract<D> where
<<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<D as CoreProxy>::Core: RefUnwindSafe,
impl<D> Send for HkdfExtract<D> where
<D as CoreProxy>::Core: Send,
impl<D> Sync for HkdfExtract<D> where
<D as CoreProxy>::Core: Sync,
impl<D> Unpin for HkdfExtract<D> where
<<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
<D as CoreProxy>::Core: Unpin,
impl<D> UnwindSafe for HkdfExtract<D> where
<<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
<D as CoreProxy>::Core: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more