pub enum KxGroup {
MlKem1024,
Secp384r1MlKem1024,
X25519MlKem768,
Secp256r1MlKem768,
Secp384r1,
Secp256r1,
X25519,
}Expand description
A TLS key-exchange group.
Variants§
MlKem1024
ML-KEM-1024 (FIPS 203).
Secp384r1MlKem1024
The P-384 + ML-KEM-1024 hybrid (RFC 10024 §4.1-4.3; codepoint §7.3).
X25519MlKem768
The X25519 + ML-KEM-768 hybrid.
Secp256r1MlKem768
The P-256 + ML-KEM-768 hybrid.
Secp384r1
ECDH on P-384.
Secp256r1
ECDH on P-256.
X25519
X25519.
Implementations§
Source§impl KxGroup
impl KxGroup
Sourcepub const fn usable_in(self, v: TlsVersion) -> bool
pub const fn usable_in(self, v: TlsVersion) -> bool
Whether a handshake at v can use this group. TLS 1.2 has no ML-KEM or hybrid key
exchange.
Sourcepub const fn is_post_quantum(self) -> bool
pub const fn is_post_quantum(self) -> bool
Whether the group’s key exchange includes ML-KEM: pure ML-KEM or a hybrid.
Trait Implementations§
impl Copy for KxGroup
impl Eq for KxGroup
impl StructuralPartialEq for KxGroup
Auto Trait Implementations§
impl Freeze for KxGroup
impl RefUnwindSafe for KxGroup
impl Send for KxGroup
impl Sync for KxGroup
impl Unpin for KxGroup
impl UnsafeUnpin for KxGroup
impl UnwindSafe for KxGroup
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