rustls::crypto::aws_lc_rs::pq::hybrid

Struct Hybrid

Source
pub(crate) struct Hybrid {
    pub(crate) classical: &'static dyn SupportedKxGroup,
    pub(crate) post_quantum: &'static dyn SupportedKxGroup,
    pub(crate) name: NamedGroup,
    pub(crate) layout: Layout,
}
Expand description

A generalization of hybrid key exchange.

Fields§

§classical: &'static dyn SupportedKxGroup§post_quantum: &'static dyn SupportedKxGroup§name: NamedGroup§layout: Layout

Trait Implementations§

Source§

impl Debug for Hybrid

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl SupportedKxGroup for Hybrid

Source§

fn start(&self) -> Result<Box<dyn ActiveKeyExchange>, Error>

Start a key exchange. Read more
Source§

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>>

FFDHE group the SupportedKxGroup operates in. Read more
Source§

fn name(&self) -> NamedGroup

Named group the SupportedKxGroup operates in. Read more
Source§

fn fips(&self) -> bool

Return true if this is backed by a FIPS-approved implementation.
Source§

fn usable_for_version(&self, version: ProtocolVersion) -> bool

Return true if this should be offered/selected with the given version. Read more

Auto Trait Implementations§

§

impl Freeze for Hybrid

§

impl !RefUnwindSafe for Hybrid

§

impl Send for Hybrid

§

impl Sync for Hybrid

§

impl Unpin for Hybrid

§

impl !UnwindSafe for Hybrid

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.