#[non_exhaustive]pub enum KeyExchangeAlgorithm {
P256,
P384,
X25519,
X25519MlKem768,
}Expand description
Ephemeral key-agreement algorithms.
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.
P256
ECDH over NIST P-256.
P384
ECDH over NIST P-384.
X25519
X25519.
X25519MlKem768
X25519MLKEM768 (draft-ietf-tls-ecdhe-mlkem, code point 0x11EC): ML-KEM-768 and
X25519 side by side. Not a Diffie-Hellman exchange: the initiator’s share is an
ML-KEM encapsulation key followed by an X25519 public key (1216 bytes), the
responder’s an ML-KEM ciphertext followed by an X25519 public key (1120 bytes), and
the shared secret the ML-KEM secret followed by the X25519 one (64 bytes). A
responder goes through RTCCrypto::key_exchange_respond.
Trait Implementations§
Source§impl Clone for KeyExchangeAlgorithm
impl Clone for KeyExchangeAlgorithm
impl Copy for KeyExchangeAlgorithm
Source§impl Debug for KeyExchangeAlgorithm
impl Debug for KeyExchangeAlgorithm
impl Eq for KeyExchangeAlgorithm
Source§impl Hash for KeyExchangeAlgorithm
impl Hash for KeyExchangeAlgorithm
Source§impl PartialEq for KeyExchangeAlgorithm
impl PartialEq for KeyExchangeAlgorithm
impl StructuralPartialEq for KeyExchangeAlgorithm
Auto Trait Implementations§
impl Forget for KeyExchangeAlgorithm
impl Freeze for KeyExchangeAlgorithm
impl Move for KeyExchangeAlgorithm
impl RefUnwindSafe for KeyExchangeAlgorithm
impl Send for KeyExchangeAlgorithm
impl Sync for KeyExchangeAlgorithm
impl Unpin for KeyExchangeAlgorithm
impl UnsafeUnpin for KeyExchangeAlgorithm
impl UnwindSafe for KeyExchangeAlgorithm
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