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>
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes