/// Start the second act of the handshake as a responder (read e, ee, se)
Start the second act of the handshake as a responder (read e, ee, se)
Start the second act of the handshake as a responder ( read e ee se )
pub fn initiator(
        mut handshake: KKHandshakeActOne,
        message: &KKMessageActTwo,
    ) -> Result<KKHandshakeActTwo, Error> {
        // In handshake mode we don't actually care about the message
        let mut _m = [0u8; KK_MSG_2_SIZE];
        handshake
            .state
            .read_message(&message.0, &mut _m)
            .map_err(|e| {
                Error::Noise(format!("Initiator failed to read second message: {:?}", e))
            })?;
        Ok(KKHandshakeActTwo {
            state: handshake.state,
        })
    }
pub fn initiator ( mut handshake : KKHandshakeActOne , message : & KKMessageActTwo , ) -> Result < KKHandshakeActTwo , Error > { // In handshake mode we don't actually care about the message let mut _m = [ 0u8 ; KK_MSG_2_SIZE ] ; handshake . state . read_message ( & message . 0 , & mut _m ) . map_err ( | e | { Error :: Noise ( format ! ( " " e ) ) } ) ? ; Ok ( KKHandshakeActTwo { state : handshake . state , } ) }
Start the second act of the handshake as a responder (read e, ee, se)
Start the second act of the handshake as a responder ( read e ee se )
handshake
KKHandshakeActOne
message
&KKMessageActTwo