pub struct FfdheKxGroupWrapper<T: RngCallback> { /* private fields */ }Expand description
A wrapper type representing the implementation of a FFDHE key-exchange group supported by mbedtls.
All possible instances of this type are provided by the library in the
ALL_KX_GROUPS array.
Implementations§
Source§impl<T: RngCallback> FfdheKxGroupWrapper<T>
impl<T: RngCallback> FfdheKxGroupWrapper<T>
Sourcepub const fn with_rng_provider<F: RngCallback>(
&self,
rng_provider: fn() -> Option<F>,
) -> FfdheKxGroupWrapper<F>
pub const fn with_rng_provider<F: RngCallback>( &self, rng_provider: fn() -> Option<F>, ) -> FfdheKxGroupWrapper<F>
Create a new FfdheKxGroupWrapper with given RNG provider callback.
Trait Implementations§
Source§impl<T: RngCallback> Debug for FfdheKxGroupWrapper<T>
impl<T: RngCallback> Debug for FfdheKxGroupWrapper<T>
Source§impl<T: RngCallback> SupportedKxGroup for FfdheKxGroupWrapper<T>
impl<T: RngCallback> SupportedKxGroup for FfdheKxGroupWrapper<T>
Source§fn name(&self) -> NamedGroup
fn name(&self) -> NamedGroup
Named group the SupportedKxGroup operates in. Read more
Source§fn start_and_complete(
&self,
peer_pub_key: &[u8],
) -> Result<CompletedKeyExchange, Error>
fn start_and_complete( &self, peer_pub_key: &[u8], ) -> Result<CompletedKeyExchange, Error>
Start and complete a key exchange, in one operation. Read more
Source§fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
FFDHE group the
SupportedKxGroup operates in. Read moreSource§fn usable_for_version(&self, _version: ProtocolVersion) -> bool
fn usable_for_version(&self, _version: ProtocolVersion) -> bool
Return
true if this should be offered/selected with the given version. Read moreAuto Trait Implementations§
impl<T> Freeze for FfdheKxGroupWrapper<T>
impl<T> RefUnwindSafe for FfdheKxGroupWrapper<T>
impl<T> Send for FfdheKxGroupWrapper<T>
impl<T> Sync for FfdheKxGroupWrapper<T>
impl<T> Unpin for FfdheKxGroupWrapper<T>
impl<T> UnwindSafe for FfdheKxGroupWrapper<T>
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