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
Build a combined algorithm that chains a key agreement with a key derivation.
Fields
§
ka_alg: RawKeyAgreement
A key agreement algorithm.
§
kdf_alg: KeyDerivation
A key derivation algorithm.
Trait Implementations§
Source§impl Clone for KeyAgreement
impl Clone for KeyAgreement
Source§fn clone(&self) -> KeyAgreement
fn clone(&self) -> KeyAgreement
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 KeyAgreement
impl Debug for KeyAgreement
Source§impl<'de> Deserialize<'de> for KeyAgreement
impl<'de> Deserialize<'de> for KeyAgreement
Source§fn 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
Source§impl From<KeyAgreement> for Algorithm
impl From<KeyAgreement> for Algorithm
Source§fn from(alg: KeyAgreement) -> Algorithm
fn from(alg: KeyAgreement) -> Algorithm
Converts to this type from the input type.
Source§impl From<RawKeyAgreement> for KeyAgreement
impl From<RawKeyAgreement> for KeyAgreement
Source§fn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
fn from(raw_key_agreement: RawKeyAgreement) -> KeyAgreement
Converts to this type from the input type.
Source§impl PartialEq for KeyAgreement
impl PartialEq for KeyAgreement
Source§impl Serialize for KeyAgreement
impl Serialize for KeyAgreement
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
Source§impl Zeroize for KeyAgreement
impl Zeroize for KeyAgreement
impl Copy for KeyAgreement
impl Eq for KeyAgreement
impl StructuralPartialEq for KeyAgreement
Auto Trait Implementations§
impl Freeze for KeyAgreement
impl RefUnwindSafe for KeyAgreement
impl Send for KeyAgreement
impl Sync for KeyAgreement
impl Unpin for KeyAgreement
impl UnwindSafe for KeyAgreement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more