Struct tls_parser::NamedGroup
source · pub struct NamedGroup(pub u16);Expand description
Named elliptic curves
Named curves, as defined in RFC4492, RFC7027, RFC7919 and IANA Supported Groups Registry
Tuple Fields§
§0: u16Implementations§
source§impl NamedGroup
impl NamedGroup
pub const Sect163k1: NamedGroup = _
pub const Sect163r1: NamedGroup = _
pub const Sect163r2: NamedGroup = _
pub const Sect193r1: NamedGroup = _
pub const Sect193r2: NamedGroup = _
pub const Sect233k1: NamedGroup = _
pub const Sect233r1: NamedGroup = _
pub const Sect239k1: NamedGroup = _
pub const Sect283k1: NamedGroup = _
pub const Sect283r1: NamedGroup = _
pub const Sect409k1: NamedGroup = _
pub const Sect409r1: NamedGroup = _
pub const Sect571k1: NamedGroup = _
pub const Sect571r1: NamedGroup = _
pub const Secp160k1: NamedGroup = _
pub const Secp160r1: NamedGroup = _
pub const Secp160r2: NamedGroup = _
pub const Secp192k1: NamedGroup = _
pub const Secp192r1: NamedGroup = _
pub const Secp224k1: NamedGroup = _
pub const Secp224r1: NamedGroup = _
pub const Secp256k1: NamedGroup = _
pub const Secp256r1: NamedGroup = _
pub const Secp384r1: NamedGroup = _
pub const Secp521r1: NamedGroup = _
pub const BrainpoolP256r1: NamedGroup = _
pub const BrainpoolP384r1: NamedGroup = _
pub const BrainpoolP512r1: NamedGroup = _
pub const EcdhX25519: NamedGroup = _
pub const EcdhX448: NamedGroup = _
pub const BrainpoolP256r1tls13: NamedGroup = _
pub const BrainpoolP384r1tls13: NamedGroup = _
pub const BrainpoolP512r1tls13: NamedGroup = _
pub const Sm2: NamedGroup = _
pub const Ffdhe2048: NamedGroup = _
pub const Ffdhe3072: NamedGroup = _
pub const Ffdhe4096: NamedGroup = _
pub const Ffdhe6144: NamedGroup = _
pub const Ffdhe8192: NamedGroup = _
pub const ArbitraryExplicitPrimeCurves: NamedGroup = _
pub const ArbitraryExplicitChar2Curves: NamedGroup = _
source§impl NamedGroup
impl NamedGroup
sourcepub fn key_bits(self: NamedGroup) -> Option<u16>
pub fn key_bits(self: NamedGroup) -> Option<u16>
Return key size of curve in bits, or None if unknown
Trait Implementations§
source§impl Clone for NamedGroup
impl Clone for NamedGroup
source§fn clone(&self) -> NamedGroup
fn clone(&self) -> NamedGroup
Returns a copy 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 NamedGroup
impl Debug for NamedGroup
source§impl Display for NamedGroup
impl Display for NamedGroup
source§impl<'nom> Parse<&'nom [u8]> for NamedGroup
impl<'nom> Parse<&'nom [u8]> for NamedGroup
source§impl PartialEq for NamedGroup
impl PartialEq for NamedGroup
impl Copy for NamedGroup
impl Eq for NamedGroup
impl StructuralPartialEq for NamedGroup
Auto Trait Implementations§
impl Freeze for NamedGroup
impl RefUnwindSafe for NamedGroup
impl Send for NamedGroup
impl Sync for NamedGroup
impl Unpin for NamedGroup
impl UnwindSafe for NamedGroup
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)