pub enum KeyAgreement {
Raw(RawKeyAgreement),
WithKeyDerivation {
ka_alg: RawKeyAgreement,
kdf_alg: KeyDerivation,
},
}
Expand description
Enumeration of key agreement algorithms supported.
Variants
Raw(RawKeyAgreement)
Key agreement only algorithm.
WithKeyDerivation
Fields
ka_alg: RawKeyAgreement
A key agreement algorithm.
kdf_alg: KeyDerivation
A key derivation algorithm.
Build a combined algorithm that chains a key agreement with a key derivation.
Trait Implementations
sourceimpl Clone for KeyAgreement
impl Clone for KeyAgreement
sourcefn clone(&self) -> KeyAgreement
fn clone(&self) -> KeyAgreement
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 KeyAgreement
impl Debug for KeyAgreement
sourceimpl<'de> Deserialize<'de> for KeyAgreement
impl<'de> Deserialize<'de> for KeyAgreement
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<KeyAgreement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyAgreement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<KeyAgreement> for Algorithm
impl From<KeyAgreement> for Algorithm
sourcefn from(alg: KeyAgreement) -> Algorithm
fn from(alg: KeyAgreement) -> Algorithm
Converts to this type from the input type.
sourceimpl From<RawKeyAgreement> for KeyAgreement
impl From<RawKeyAgreement> for KeyAgreement
sourcefn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
fn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
Converts to this type from the input type.
sourceimpl PartialEq<KeyAgreement> for KeyAgreement
impl PartialEq<KeyAgreement> for KeyAgreement
sourcefn eq(&self, other: &KeyAgreement) -> bool
fn eq(&self, other: &KeyAgreement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for KeyAgreement
impl Serialize for KeyAgreement
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 KeyAgreement
impl Zeroize for KeyAgreement
impl Copy for KeyAgreement
impl Eq for KeyAgreement
impl StructuralEq for KeyAgreement
impl StructuralPartialEq for KeyAgreement
Auto Trait Implementations
impl RefUnwindSafe for KeyAgreement
impl Send for KeyAgreement
impl Sync for KeyAgreement
impl Unpin for KeyAgreement
impl UnwindSafe for KeyAgreement
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