pub enum KDFFactory {
HKDF_SHA256(HKDF_SHA256),
HKDF_SHA512(HKDF_SHA512),
SHA3_224(SHA3_224),
SHA3_256(SHA3_256),
SHA3_384(SHA3_384),
SHA3_512(SHA3_512),
SHAKE128(SHAKE128),
SHAKE256(SHAKE256),
}Variants§
HKDF_SHA256(HKDF_SHA256)
HKDF_SHA512(HKDF_SHA512)
SHA3_224(SHA3_224)
SHA3_256(SHA3_256)
SHA3_384(SHA3_384)
SHA3_512(SHA3_512)
SHAKE128(SHAKE128)
SHAKE256(SHAKE256)
Trait Implementations§
Source§impl AlgorithmFactory for KDFFactory
impl AlgorithmFactory for KDFFactory
Source§fn default_128_bit() -> Self
fn default_128_bit() -> Self
Get the default configured algorithm at the 128-bit security level.
Source§fn default_256_bit() -> Self
fn default_256_bit() -> Self
Get the default configured algorithm at the 256-bit security level.
Source§impl Default for KDFFactory
impl Default for KDFFactory
Source§impl KDF for KDFFactory
impl KDF for KDFFactory
Source§fn derive_key(
self,
key: &impl KeyMaterial,
additional_input: &[u8],
) -> Result<Box<dyn KeyMaterial>, KDFError>
fn derive_key( self, key: &impl KeyMaterial, additional_input: &[u8], ) -> Result<Box<dyn KeyMaterial>, KDFError>
Implementations of this function are capable of deriving an output key from an input key,
assuming that they have been properly initialized. Read more
Source§fn derive_key_out(
self,
key: &impl KeyMaterial,
additional_input: &[u8],
output_key: &mut impl KeyMaterial,
) -> Result<usize, KDFError>
fn derive_key_out( self, key: &impl KeyMaterial, additional_input: &[u8], output_key: &mut impl KeyMaterial, ) -> Result<usize, KDFError>
Source§fn derive_key_from_multiple(
self,
keys: &[&impl KeyMaterial],
additional_input: &[u8],
) -> Result<Box<dyn KeyMaterial>, KDFError>
fn derive_key_from_multiple( self, keys: &[&impl KeyMaterial], additional_input: &[u8], ) -> Result<Box<dyn KeyMaterial>, KDFError>
Meant to be used for hybrid key establishment schemes or other spit-key scenarios where multiple
keys need to be combined into a single key of the same length. Read more
Source§fn derive_key_from_multiple_out(
self,
keys: &[&impl KeyMaterial],
additional_input: &[u8],
output_key: &mut impl KeyMaterial,
) -> Result<usize, KDFError>
fn derive_key_from_multiple_out( self, keys: &[&impl KeyMaterial], additional_input: &[u8], output_key: &mut impl KeyMaterial, ) -> Result<usize, KDFError>
Source§fn max_security_strength(&self) -> SecurityStrength
fn max_security_strength(&self) -> SecurityStrength
Returns the maximum security strength that this KDF is capable of supporting, based on the underlying primitives.
Auto Trait Implementations§
impl Freeze for KDFFactory
impl RefUnwindSafe for KDFFactory
impl Send for KDFFactory
impl Sync for KDFFactory
impl Unpin for KDFFactory
impl UnwindSafe for KDFFactory
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