#[non_exhaustive]pub enum KeyAgreementAlgorithm {
EcdhP256,
EcdhP384,
EcdhP521,
X25519,
}Expand description
A key-agreement algorithm outside TLS: Diffie-Hellman on a curve (SP 800-56A Rev. 3; RFC
7748). TLS key exchange is KxGroup.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EcdhP256
ECDH on P-256 (SP 800-56A Rev. 3, SP 800-186).
EcdhP384
ECDH on P-384 (SP 800-56A Rev. 3, SP 800-186).
EcdhP521
ECDH on P-521 (SP 800-56A Rev. 3, SP 800-186).
X25519
X25519 (RFC 7748).
Implementations§
Trait Implementations§
Source§impl Clone for KeyAgreementAlgorithm
impl Clone for KeyAgreementAlgorithm
impl Copy for KeyAgreementAlgorithm
Source§impl Debug for KeyAgreementAlgorithm
impl Debug for KeyAgreementAlgorithm
Source§impl Display for KeyAgreementAlgorithm
impl Display for KeyAgreementAlgorithm
impl Eq for KeyAgreementAlgorithm
Source§impl FromStr for KeyAgreementAlgorithm
impl FromStr for KeyAgreementAlgorithm
Source§impl Hash for KeyAgreementAlgorithm
impl Hash for KeyAgreementAlgorithm
Source§impl PartialEq for KeyAgreementAlgorithm
impl PartialEq for KeyAgreementAlgorithm
impl StructuralPartialEq for KeyAgreementAlgorithm
Auto Trait Implementations§
impl Forget for KeyAgreementAlgorithm
impl Freeze for KeyAgreementAlgorithm
impl Move for KeyAgreementAlgorithm
impl RefUnwindSafe for KeyAgreementAlgorithm
impl Send for KeyAgreementAlgorithm
impl Sync for KeyAgreementAlgorithm
impl Unpin for KeyAgreementAlgorithm
impl UnsafeUnpin for KeyAgreementAlgorithm
impl UnwindSafe for KeyAgreementAlgorithm
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