pub(crate) struct MlKem {
pub(crate) alg: &'static Algorithm<AlgorithmId>,
pub(crate) group: NamedGroup,
}Fields§
§alg: &'static Algorithm<AlgorithmId>§group: NamedGroupTrait Implementations§
Source§impl SupportedKxGroup for MlKem
impl SupportedKxGroup for MlKem
Source§fn start_and_complete(
&self,
client_share: &[u8],
) -> Result<CompletedKeyExchange, Error>
fn start_and_complete( &self, client_share: &[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 name(&self) -> NamedGroup
fn name(&self) -> NamedGroup
Named group the SupportedKxGroup operates in. Read more
Source§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 Freeze for MlKem
impl RefUnwindSafe for MlKem
impl Send for MlKem
impl Sync for MlKem
impl Unpin for MlKem
impl UnwindSafe for MlKem
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