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§
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<KeyAgreement> for KeyAgreement
impl PartialEq<KeyAgreement> for KeyAgreement
source§fn 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 ==
.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