Trait noise_sv2::handshake::Step[][src]

pub trait Step {
    fn step(&mut self, in_msg: Option<Message>) -> Result<StepResult, Error>;
fn into_handshake_state(self) -> HandshakeState; }
Expand description

Objects that can perform 1 handshake step implement this trait

Required methods

Proceeds with the handshake and processes an optional incoming message - in_msg and generates a new handshake message to be sent out

in_msg - optional input message to be processed this buffer and returned as appropriate StepResult

Transforms step into the handshake state

Implementors