Skip to main content

Hybrid

Struct Hybrid 

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

A generalization of hybrid key exchange.

Fields§

§classical: &'static dyn SupportedKxGroup

Classical key exchange component.

§post_quantum: &'static dyn SupportedKxGroup

Post-quantum key exchange component.

§name: NamedGroup

TLS NamedGroup for this hybrid key exchange.

§layout: HybridLayout

Layout of the hybrid key exchange.

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<StartedKeyExchange, 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 name(&self) -> NamedGroup

Named group the SupportedKxGroup operates in. Read more
Source§

fn fips(&self) -> FipsStatus

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

fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>

FFDHE group the SupportedKxGroup operates in, if any. 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.