Struct rustls::ffdhe_groups::FfdheGroup
source · pub struct FfdheGroup<'a> {
pub p: &'a [u8],
pub g: &'a [u8],
}
Expand description
Parameters of an FFDHE group, with Big-endian byte order
Fields§
§p: &'a [u8]
§g: &'a [u8]
Implementations§
source§impl FfdheGroup<'static>
impl FfdheGroup<'static>
sourcepub fn from_named_group(named_group: NamedGroup) -> Option<Self>
👎Deprecated since 0.23.13: This function is linker-unfriendly. Use SupportedKxGroup::ffdhe_group()
instead
pub fn from_named_group(named_group: NamedGroup) -> Option<Self>
SupportedKxGroup::ffdhe_group()
insteadReturn the FfdheGroup
corresponding to the provided NamedGroup
if it is indeed an FFDHE group
source§impl<'a> FfdheGroup<'a>
impl<'a> FfdheGroup<'a>
sourcepub fn named_group(&self) -> Option<NamedGroup>
👎Deprecated since 0.23.13: This function is linker-unfriendly. Use SupportedKxGroup::name()
instead
pub fn named_group(&self) -> Option<NamedGroup>
SupportedKxGroup::name()
insteadReturn the NamedGroup
for the FfdheGroup
if it represents one.
sourcepub fn from_params_trimming_leading_zeros(p: &'a [u8], g: &'a [u8]) -> Self
pub fn from_params_trimming_leading_zeros(p: &'a [u8], g: &'a [u8]) -> Self
Construct an FfdheGroup
from the given p
and g
, trimming any potential leading zeros.
Trait Implementations§
source§impl<'a> Clone for FfdheGroup<'a>
impl<'a> Clone for FfdheGroup<'a>
source§fn clone(&self) -> FfdheGroup<'a>
fn clone(&self) -> FfdheGroup<'a>
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<'a> Debug for FfdheGroup<'a>
impl<'a> Debug for FfdheGroup<'a>
source§impl<'a> PartialEq for FfdheGroup<'a>
impl<'a> PartialEq for FfdheGroup<'a>
source§fn eq(&self, other: &FfdheGroup<'a>) -> bool
fn eq(&self, other: &FfdheGroup<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for FfdheGroup<'a>
impl<'a> Eq for FfdheGroup<'a>
impl<'a> StructuralPartialEq for FfdheGroup<'a>
Auto Trait Implementations§
impl<'a> Freeze for FfdheGroup<'a>
impl<'a> RefUnwindSafe for FfdheGroup<'a>
impl<'a> Send for FfdheGroup<'a>
impl<'a> Sync for FfdheGroup<'a>
impl<'a> Unpin for FfdheGroup<'a>
impl<'a> UnwindSafe for FfdheGroup<'a>
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)