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: RawKeyAgreementA key agreement algorithm.
§
kdf_alg: KeyDerivationA 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 duplicate 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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) -> Self
fn from(alg: KeyAgreement) -> Self
Converts to this type from the input type.
Source§impl From<KeyAgreement> for psa_algorithm_t
Available on crate feature interface only.
impl From<KeyAgreement> for psa_algorithm_t
Available on crate feature
interface only.Source§fn from(key_agreement: KeyAgreement) -> Self
fn from(key_agreement: KeyAgreement) -> Self
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) -> Self
fn from(raw_key_agreement: RawKeyAgreement) -> Self
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§impl TryFrom<u32> for KeyAgreement
Available on crate feature interface only.
impl TryFrom<u32> for KeyAgreement
Available on crate feature
interface only.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 UnsafeUnpin 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