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
sourcepub fn clone(&self) -> KeyAgreement
pub 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
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyAgreement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
sourcepub fn from(alg: KeyAgreement) -> Algorithm
pub fn from(alg: KeyAgreement) -> Algorithm
Performs the conversion.
sourceimpl From<RawKeyAgreement> for KeyAgreement
impl From<RawKeyAgreement> for KeyAgreement
sourcepub fn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
pub fn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
Performs the conversion.
sourceimpl PartialEq<KeyAgreement> for KeyAgreement
impl PartialEq<KeyAgreement> for KeyAgreement
sourcepub fn eq(&self, other: &KeyAgreement) -> bool
pub fn eq(&self, other: &KeyAgreement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &KeyAgreement) -> bool
pub fn ne(&self, other: &KeyAgreement) -> bool
This method tests for !=
.
sourceimpl Serialize for KeyAgreement
impl Serialize for KeyAgreement
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 KeyAgreement
impl Zeroize for KeyAgreement
impl Copy 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 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