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<KeyDerivation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<KeyDerivation, <__D as Deserializer<'de>>::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) -> Algorithm
fn from(alg: KeyDerivation) -> Algorithm
Converts to this type from the input type.
source§impl PartialEq<KeyDerivation> for KeyDerivation
impl PartialEq<KeyDerivation> 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§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more