pub struct ConcatKDF<H>(/* private fields */);Expand description
A struct providing the key derivation for a particular hash function
Implementations§
Source§impl<H> ConcatKDF<H>where
H: Digest + FixedOutputReset,
impl<H> ConcatKDF<H>where
H: Digest + FixedOutputReset,
Sourcepub fn derive_key(
message: &[u8],
params: ConcatKDFParams<'_>,
output: &mut [u8],
) -> Result<(), Error>
pub fn derive_key( message: &[u8], params: ConcatKDFParams<'_>, output: &mut [u8], ) -> Result<(), Error>
Perform the key derivation and write the result to the provided buffer
Trait Implementations§
impl<H: Copy> Copy for ConcatKDF<H>
Auto Trait Implementations§
impl<H> Freeze for ConcatKDF<H>
impl<H> RefUnwindSafe for ConcatKDF<H>where
H: RefUnwindSafe,
impl<H> Send for ConcatKDF<H>where
H: Send,
impl<H> Sync for ConcatKDF<H>where
H: Sync,
impl<H> Unpin for ConcatKDF<H>where
H: Unpin,
impl<H> UnwindSafe for ConcatKDF<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