struct Active {
decaps_key: Box<DecapsulationKey<AlgorithmId>>,
encaps_key_bytes: Vec<u8>,
}
Fields§
§decaps_key: Box<DecapsulationKey<AlgorithmId>>
§encaps_key_bytes: Vec<u8>
Trait Implementations§
Source§impl ActiveKeyExchange for Active
impl ActiveKeyExchange for Active
Source§fn complete(self: Box<Self>, peer_pub_key: &[u8]) -> Result<SharedSecret, Error>
fn complete(self: Box<Self>, peer_pub_key: &[u8]) -> Result<SharedSecret, Error>
Completes the key exchange, given the peer’s public key. Read more
Source§fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
FFDHE group the
ActiveKeyExchange
is operating in. Read moreSource§fn group(&self) -> NamedGroup
fn group(&self) -> NamedGroup
Return the group being used.
Source§fn complete_for_tls_version(
self: Box<Self>,
peer_pub_key: &[u8],
tls_version: &SupportedProtocolVersion,
) -> Result<SharedSecret, Error>
fn complete_for_tls_version( self: Box<Self>, peer_pub_key: &[u8], tls_version: &SupportedProtocolVersion, ) -> Result<SharedSecret, Error>
Completes the key exchange for the given TLS version, given the peer’s public key. Read more
Source§fn hybrid_component(&self) -> Option<(NamedGroup, &[u8])>
fn hybrid_component(&self) -> Option<(NamedGroup, &[u8])>
For hybrid key exchanges, returns the
NamedGroup
and key share
for the classical half of this key exchange. Read moreSource§fn complete_hybrid_component(
self: Box<Self>,
_peer_pub_key: &[u8],
) -> Result<SharedSecret, Error>
fn complete_hybrid_component( self: Box<Self>, _peer_pub_key: &[u8], ) -> Result<SharedSecret, Error>
Completes the classical component of the key exchange, given the peer’s public key. Read more
Auto Trait Implementations§
impl Freeze for Active
impl RefUnwindSafe for Active
impl Send for Active
impl Sync for Active
impl Unpin for Active
impl UnwindSafe for Active
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