pub struct NoiseHandshake { /* private fields */ }Expand description
Noise handshake state (XX pattern simplified to IK).
Implementations§
Source§impl NoiseHandshake
impl NoiseHandshake
Sourcepub fn set_remote_static(&mut self, remote_static: Vec<u8>)
pub fn set_remote_static(&mut self, remote_static: Vec<u8>)
Set the remote party’s static public key (IK mode).
Sourcepub fn initiator_write_1(&mut self) -> NoiseMessage
pub fn initiator_write_1(&mut self) -> NoiseMessage
Initiator: write the first handshake message (e -> e, es).
Sourcepub fn initiator_read_2(&mut self, message: &NoiseMessage) -> Result<(), String>
pub fn initiator_read_2(&mut self, message: &NoiseMessage) -> Result<(), String>
Initiator: read the response (e, ee, es).
Sourcepub fn initiator_write_3(&mut self) -> NoiseMessage
pub fn initiator_write_3(&mut self) -> NoiseMessage
Initiator: write final message (s, se).
Auto Trait Implementations§
impl Freeze for NoiseHandshake
impl RefUnwindSafe for NoiseHandshake
impl Send for NoiseHandshake
impl Sync for NoiseHandshake
impl Unpin for NoiseHandshake
impl UnsafeUnpin for NoiseHandshake
impl UnwindSafe for NoiseHandshake
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