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
Fields
hash_alg: Hash
A hash algorithm to use.
HKDF algorithm.
Tls12Prf
Fields
hash_alg: Hash
A hash algorithm to use.
TLS-1.2 PRF algorithm.
Tls12PskToMs
Fields
hash_alg: Hash
A hash algorithm to use.
TLS-1.2 PSK-to-MasterSecret algorithm.
Trait Implementations
sourceimpl Clone for KeyDerivation
impl Clone for KeyDerivation
sourcepub fn clone(&self) -> KeyDerivation
pub fn clone(&self) -> KeyDerivation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyDerivation
impl Debug for KeyDerivation
sourceimpl<'de> Deserialize<'de> for KeyDerivation
impl<'de> Deserialize<'de> for KeyDerivation
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyDerivation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
sourceimpl From<KeyDerivation> for Algorithm
impl From<KeyDerivation> for Algorithm
sourcepub fn from(alg: KeyDerivation) -> Algorithm
pub fn from(alg: KeyDerivation) -> Algorithm
Performs the conversion.
sourceimpl PartialEq<KeyDerivation> for KeyDerivation
impl PartialEq<KeyDerivation> for KeyDerivation
sourcepub fn eq(&self, other: &KeyDerivation) -> bool
pub fn eq(&self, other: &KeyDerivation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &KeyDerivation) -> bool
pub fn ne(&self, other: &KeyDerivation) -> bool
This method tests for !=
.
sourceimpl Serialize for KeyDerivation
impl Serialize for KeyDerivation
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
sourceimpl Zeroize for KeyDerivation
impl Zeroize for KeyDerivation
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more