pub enum HandshakeWireFrame {
InitOrResponse {
handshake_type: HandshakeFrameType,
sender_pub: [u8; 32],
ephemeral_pub: [u8; 32],
nonce: [u8; 32],
signature: [u8; 64],
},
Confirm {
hmac: [u8; 32],
},
}Expand description
Wire representation of a handshake message.
For Init/Response: handshake_type(1) + sender_pub(32) + ephemeral_pub(32) + nonce(32) + signature(64) = 161 For Confirm: handshake_type(1) + hmac(32) = 33
Variants§
InitOrResponse
Init or response frame sharing the same binary layout.
Fields
§
handshake_type: HandshakeFrameTypeWhether this frame is an init or a response.
Confirm
Final transcript-confirmation frame.
Trait Implementations§
Source§impl Clone for HandshakeWireFrame
impl Clone for HandshakeWireFrame
Source§fn clone(&self) -> HandshakeWireFrame
fn clone(&self) -> HandshakeWireFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandshakeWireFrame
impl Debug for HandshakeWireFrame
Source§impl FrameCodec for HandshakeWireFrame
impl FrameCodec for HandshakeWireFrame
Source§impl PartialEq for HandshakeWireFrame
impl PartialEq for HandshakeWireFrame
Source§fn eq(&self, other: &HandshakeWireFrame) -> bool
fn eq(&self, other: &HandshakeWireFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HandshakeWireFrame
impl StructuralPartialEq for HandshakeWireFrame
Auto Trait Implementations§
impl Freeze for HandshakeWireFrame
impl RefUnwindSafe for HandshakeWireFrame
impl Send for HandshakeWireFrame
impl Sync for HandshakeWireFrame
impl Unpin for HandshakeWireFrame
impl UnsafeUnpin for HandshakeWireFrame
impl UnwindSafe for HandshakeWireFrame
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