pub struct TypedHkdf<H: HashFunction + Clone> { /* private fields */ }
Expand description
Enhanced HKDF implementation with type-level guarantees
Trait Implementations§
Source§impl<H: HashFunction + Clone> KeyDerivationFunction for TypedHkdf<H>
impl<H: HashFunction + Clone> KeyDerivationFunction for TypedHkdf<H>
Source§type Algorithm = HkdfAlgorithm<H>
type Algorithm = HkdfAlgorithm<H>
The algorithm this KDF implements
Source§fn derive_key(
&self,
input: &[u8],
salt: Option<&[u8]>,
info: Option<&[u8]>,
length: usize,
) -> Result<Vec<u8>>
fn derive_key( &self, input: &[u8], salt: Option<&[u8]>, info: Option<&[u8]>, length: usize, ) -> Result<Vec<u8>>
Derives a key using the KDF parameters Read more
Source§fn builder(&self) -> impl KdfOperation<'_, Self::Algorithm>
fn builder(&self) -> impl KdfOperation<'_, Self::Algorithm>
Creates a builder for fluent API usage - FIXED: Elided lifetime
Source§fn generate_salt<R: RngCore + CryptoRng>(rng: &mut R) -> Self::Salt
fn generate_salt<R: RngCore + CryptoRng>(rng: &mut R) -> Self::Salt
Generate a random salt with appropriate size
Source§fn security_level() -> SecurityLevel
fn security_level() -> SecurityLevel
Returns the security level of the KDF in bits
Auto Trait Implementations§
impl<H> Freeze for TypedHkdf<H>
impl<H> RefUnwindSafe for TypedHkdf<H>where
H: RefUnwindSafe,
impl<H> Send for TypedHkdf<H>where
H: Send,
impl<H> Sync for TypedHkdf<H>where
H: Sync,
impl<H> Unpin for TypedHkdf<H>where
H: Unpin,
impl<H> UnwindSafe for TypedHkdf<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