pub struct HandshakeReply {
pub ed25519_pubkey: [u8; 32],
pub x25519_ephemeral: [u8; 32],
pub signature: Vec<u8>,
}Expand description
Handshake reply message (sent by responder).
Carried in a FrameType::HandshakeReply frame.
Fields§
§ed25519_pubkey: [u8; 32]The responder’s Ed25519 public key (32 bytes).
x25519_ephemeral: [u8; 32]Ephemeral X25519 public key for this session (32 bytes).
signature: Vec<u8>Ed25519 signature over [initiator_x25519_pub || responder_x25519_pub].
Trait Implementations§
Source§impl Debug for HandshakeReply
impl Debug for HandshakeReply
Source§impl<'de> Deserialize<'de> for HandshakeReply
impl<'de> Deserialize<'de> for HandshakeReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HandshakeReply
impl RefUnwindSafe for HandshakeReply
impl Send for HandshakeReply
impl Sync for HandshakeReply
impl Unpin for HandshakeReply
impl UnsafeUnpin for HandshakeReply
impl UnwindSafe for HandshakeReply
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