#[non_exhaustive]pub enum SupportedGroup {
X25519,
SecP256r1,
SecP384r1,
SecP521r1,
X25519Kyber768,
Ffdhe2048,
Ffdhe3072,
}Expand description
Named group (elliptic curve / key-exchange group) identifier.
§Example
use stygian_browser::tls::SupportedGroup;
let x25519 = SupportedGroup::X25519;
assert_eq!(x25519.iana_value(), 0x001d);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.
X25519
X25519 Diffie-Hellman (0x001d).
SecP256r1
secp256r1 / P-256 (0x0017).
SecP384r1
secp384r1 / P-384 (0x0018).
SecP521r1
secp521r1 / P-521 (0x0019).
X25519Kyber768
X25519Kyber768Draft00 — post-quantum hybrid (0x6399).
Ffdhe2048
FFDHE2048 (0x0100).
Ffdhe3072
FFDHE3072 (0x0101).
Implementations§
Source§impl SupportedGroup
impl SupportedGroup
Sourcepub const fn iana_value(self) -> u16
pub const fn iana_value(self) -> u16
Return the two-byte IANA named-group value.
§Example
use stygian_browser::tls::SupportedGroup;
assert_eq!(SupportedGroup::SecP256r1.iana_value(), 0x0017);Trait Implementations§
Source§impl Clone for SupportedGroup
impl Clone for SupportedGroup
Source§fn clone(&self) -> SupportedGroup
fn clone(&self) -> SupportedGroup
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 SupportedGroup
impl Debug for SupportedGroup
Source§impl<'de> Deserialize<'de> for SupportedGroup
impl<'de> Deserialize<'de> for SupportedGroup
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 Display for SupportedGroup
impl Display for SupportedGroup
Source§impl Hash for SupportedGroup
impl Hash for SupportedGroup
Source§impl PartialEq for SupportedGroup
impl PartialEq for SupportedGroup
Source§impl Serialize for SupportedGroup
impl Serialize for SupportedGroup
impl Copy for SupportedGroup
impl Eq for SupportedGroup
impl StructuralPartialEq for SupportedGroup
Auto Trait Implementations§
impl Freeze for SupportedGroup
impl RefUnwindSafe for SupportedGroup
impl Send for SupportedGroup
impl Sync for SupportedGroup
impl Unpin for SupportedGroup
impl UnsafeUnpin for SupportedGroup
impl UnwindSafe for SupportedGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.