pub enum HkdfAlgorithm<H: HashFunction> {
_Hash(PhantomData<H>),
}
Expand description
Type-level constants for HKDF algorithm
Variants§
_Hash(PhantomData<H>)
Phantom field for the hash function
Trait Implementations§
Source§impl<H: HashFunction> KdfAlgorithm for HkdfAlgorithm<H>
impl<H: HashFunction> KdfAlgorithm for HkdfAlgorithm<H>
Source§const MIN_SALT_SIZE: usize = 16usize
const MIN_SALT_SIZE: usize = 16usize
Minimum salt size in bytes
Source§const DEFAULT_OUTPUT_SIZE: usize = 32usize
const DEFAULT_OUTPUT_SIZE: usize = 32usize
Default output size in bytes
Source§const ALGORITHM_ID: &'static str = "HKDF"
const ALGORITHM_ID: &'static str = "HKDF"
Static algorithm identifier for compile-time checking
Source§fn security_level() -> SecurityLevel
fn security_level() -> SecurityLevel
Security level provided by this KDF
Source§impl<'a, H: HashFunction + Clone> KdfOperation<'a, HkdfAlgorithm<H>> for HKdfOperation<'a, H>
impl<'a, H: HashFunction + Clone> KdfOperation<'a, HkdfAlgorithm<H>> for HKdfOperation<'a, H>
Source§fn with_output_length(self, length: usize) -> Self
fn with_output_length(self, length: usize) -> Self
Set the desired output length
Auto Trait Implementations§
impl<H> Freeze for HkdfAlgorithm<H>
impl<H> RefUnwindSafe for HkdfAlgorithm<H>where
H: RefUnwindSafe,
impl<H> Send for HkdfAlgorithm<H>where
H: Send,
impl<H> Sync for HkdfAlgorithm<H>where
H: Sync,
impl<H> Unpin for HkdfAlgorithm<H>where
H: Unpin,
impl<H> UnwindSafe for HkdfAlgorithm<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