pub struct StrobeNkHybridHandshake { /* private fields */ }Expand description
In-progress hybrid handshake — holds the ephemeral key until msg2 arrives.
Implementations§
Source§impl StrobeNkHybridHandshake
impl StrobeNkHybridHandshake
Sourcepub fn finish(self, msg2: &[u8; 48]) -> Result<StrobeNkTransport, Error>
pub fn finish(self, msg2: &[u8; 48]) -> Result<StrobeNkTransport, Error>
Processes msg2 (must be exactly HYBRID_MSG2_LEN bytes) and returns the
derived StrobeNkTransport.
Note: ECDH is computed before MAC verification because the responder’s
send_mac is computed after keying with ss_x25519. The MAC therefore
covers the ECDH outcome on both sides, preventing an active attacker from
substituting the responder’s ephemeral key.
Auto Trait Implementations§
impl Freeze for StrobeNkHybridHandshake
impl RefUnwindSafe for StrobeNkHybridHandshake
impl Send for StrobeNkHybridHandshake
impl Sync for StrobeNkHybridHandshake
impl Unpin for StrobeNkHybridHandshake
impl UnsafeUnpin for StrobeNkHybridHandshake
impl UnwindSafe for StrobeNkHybridHandshake
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