Enum psa_crypto::types::algorithm::KeyDerivation
source · pub enum KeyDerivation {
Hkdf {
hash_alg: Hash,
},
Tls12Prf {
hash_alg: Hash,
},
Tls12PskToMs {
hash_alg: Hash,
},
}
Expand description
Enumeration of key derivation functions supported.
Variants§
Hkdf
HKDF algorithm.
Tls12Prf
TLS-1.2 PRF algorithm.
Tls12PskToMs
TLS-1.2 PSK-to-MasterSecret algorithm.
Trait Implementations§
source§impl Clone for KeyDerivation
impl Clone for KeyDerivation
source§fn clone(&self) -> KeyDerivation
fn clone(&self) -> KeyDerivation
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 KeyDerivation
impl Debug for KeyDerivation
source§impl<'de> Deserialize<'de> for KeyDerivation
impl<'de> Deserialize<'de> for KeyDerivation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<KeyDerivation> for Algorithm
impl From<KeyDerivation> for Algorithm
source§fn from(alg: KeyDerivation) -> Self
fn from(alg: KeyDerivation) -> Self
Converts to this type from the input type.
source§impl From<KeyDerivation> for psa_algorithm_t
impl From<KeyDerivation> for psa_algorithm_t
source§fn from(key_derivation: KeyDerivation) -> Self
fn from(key_derivation: KeyDerivation) -> Self
Converts to this type from the input type.
source§impl PartialEq for KeyDerivation
impl PartialEq for KeyDerivation
source§fn eq(&self, other: &KeyDerivation) -> bool
fn eq(&self, other: &KeyDerivation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyDerivation
impl Serialize for KeyDerivation
source§impl TryFrom<u32> for KeyDerivation
impl TryFrom<u32> for KeyDerivation
source§impl Zeroize for KeyDerivation
impl Zeroize for KeyDerivation
impl Copy for KeyDerivation
impl Eq for KeyDerivation
impl StructuralEq for KeyDerivation
impl StructuralPartialEq for KeyDerivation
Auto Trait Implementations§
impl RefUnwindSafe for KeyDerivation
impl Send for KeyDerivation
impl Sync for KeyDerivation
impl Unpin for KeyDerivation
impl UnwindSafe for KeyDerivation
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