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
sourcefn clone(&self) -> KeyDerivation
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
sourcefn 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
sourceimpl From<KeyDerivation> for Algorithm
impl From<KeyDerivation> for Algorithm
sourcefn from(alg: KeyDerivation) -> Algorithm
fn from(alg: KeyDerivation) -> Algorithm
Converts to this type from the input type.
sourceimpl PartialEq<KeyDerivation> for KeyDerivation
impl PartialEq<KeyDerivation> for KeyDerivation
sourcefn 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 ==
. Read more
sourceimpl Serialize for KeyDerivation
impl Serialize for KeyDerivation
sourcefn 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more