Struct FfdheGroup
pub struct FfdheGroup<'a> {
pub p: &'a [u8],
pub g: &'a [u8],
}Available on crate feature
tls only.Expand description
Parameters of an FFDHE group, with Big-endian byte order
Fields§
§p: &'a [u8]§g: &'a [u8]Implementations§
§impl FfdheGroup<'static>
impl FfdheGroup<'static>
pub fn from_named_group(named_group: NamedGroup) -> Option<FfdheGroup<'static>>
👎Deprecated since 0.23.13: This function is linker-unfriendly. Use SupportedKxGroup::ffdhe_group() instead
pub fn from_named_group(named_group: NamedGroup) -> Option<FfdheGroup<'static>>
SupportedKxGroup::ffdhe_group() insteadReturn the FfdheGroup corresponding to the provided NamedGroup
if it is indeed an FFDHE group
§impl<'a> FfdheGroup<'a>
impl<'a> FfdheGroup<'a>
pub 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.
pub fn from_params_trimming_leading_zeros(
p: &'a [u8],
g: &'a [u8],
) -> FfdheGroup<'a>
pub fn from_params_trimming_leading_zeros( p: &'a [u8], g: &'a [u8], ) -> FfdheGroup<'a>
Construct an FfdheGroup from the given p and g, trimming any potential leading zeros.
Trait Implementations§
§impl<'a> Clone for FfdheGroup<'a>
impl<'a> Clone for FfdheGroup<'a>
§fn clone(&self) -> FfdheGroup<'a>
fn clone(&self) -> FfdheGroup<'a>
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 more§impl<'a> Debug for FfdheGroup<'a>
impl<'a> Debug for FfdheGroup<'a>
§impl<'a> PartialEq for FfdheGroup<'a>
impl<'a> PartialEq for FfdheGroup<'a>
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more