pub struct ConcatKDFHash<H: Digest> { /* private fields */ }Expand description
Core hashing implementation of the multi-pass key derivation
Implementations§
Source§impl<H: Digest> ConcatKDFHash<H>
impl<H: Digest> ConcatKDFHash<H>
Sourcepub fn start_pass(&mut self)
pub fn start_pass(&mut self)
Start a new pass of the key derivation
Sourcepub fn hash_message(&mut self, data: &[u8])
pub fn hash_message(&mut self, data: &[u8])
Hash input to the key derivation
Sourcepub fn hash_params(&mut self, params: ConcatKDFParams<'_>)
pub fn hash_params(&mut self, params: ConcatKDFParams<'_>)
Hash the parameters of the key derivation
Sourcepub fn finish_pass(&mut self) -> GenericArray<u8, H::OutputSize>where
H: FixedOutputReset,
pub fn finish_pass(&mut self) -> GenericArray<u8, H::OutputSize>where
H: FixedOutputReset,
Complete this pass of the key derivation, returning the result
Trait Implementations§
Source§impl<H: Digest> Default for ConcatKDFHash<H>
impl<H: Digest> Default for ConcatKDFHash<H>
Source§impl<D: Debug + Digest> WriteBuffer for ConcatKDFHash<D>
impl<D: Debug + Digest> WriteBuffer for ConcatKDFHash<D>
Auto Trait Implementations§
impl<H> Freeze for ConcatKDFHash<H>where
H: Freeze,
impl<H> RefUnwindSafe for ConcatKDFHash<H>where
H: RefUnwindSafe,
impl<H> Send for ConcatKDFHash<H>where
H: Send,
impl<H> Sync for ConcatKDFHash<H>where
H: Sync,
impl<H> Unpin for ConcatKDFHash<H>where
H: Unpin,
impl<H> UnwindSafe for ConcatKDFHash<H>where
H: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more