pub enum KeyDerivationFunction {
Kdf1Sp800_56a,
Kdf2,
Kdf1Sp800_108,
Mgf1,
Null,
}
Expand description
Enum containing key derivation functions interface type.
§Details this corresponds to the TPMI_ALG_KDF
Variants§
Trait Implementations§
source§impl Clone for KeyDerivationFunction
impl Clone for KeyDerivationFunction
source§fn clone(&self) -> KeyDerivationFunction
fn clone(&self) -> KeyDerivationFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyDerivationFunction
impl Debug for KeyDerivationFunction
source§impl From<KeyDerivationFunction> for AlgorithmIdentifier
impl From<KeyDerivationFunction> for AlgorithmIdentifier
source§fn from(key_derivation_function: KeyDerivationFunction) -> Self
fn from(key_derivation_function: KeyDerivationFunction) -> Self
Converts to this type from the input type.
source§impl From<KeyDerivationFunction> for TPMI_ALG_KDF
impl From<KeyDerivationFunction> for TPMI_ALG_KDF
source§fn from(key_derivation_function: KeyDerivationFunction) -> Self
fn from(key_derivation_function: KeyDerivationFunction) -> Self
Converts to this type from the input type.
source§impl PartialEq for KeyDerivationFunction
impl PartialEq for KeyDerivationFunction
source§fn eq(&self, other: &KeyDerivationFunction) -> bool
fn eq(&self, other: &KeyDerivationFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for KeyDerivationFunction
impl TryFrom<u16> for KeyDerivationFunction
impl Copy for KeyDerivationFunction
impl Eq for KeyDerivationFunction
impl StructuralPartialEq for KeyDerivationFunction
Auto Trait Implementations§
impl Freeze for KeyDerivationFunction
impl RefUnwindSafe for KeyDerivationFunction
impl Send for KeyDerivationFunction
impl Sync for KeyDerivationFunction
impl Unpin for KeyDerivationFunction
impl UnwindSafe for KeyDerivationFunction
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