private void HandleKeyExchangeMessage(NetworkIncomingMessage message) { HandshakeKeyExchange exchange = new HandshakeKeyExchange(message); keys.Secret = HandshakeCryptography.Secret(credentials, exchange.Key); message.Acknowledge(96); connection.Send(new HandshakeKeyExchangeMessage(credentials)); connection.Receive(SynchronizeCryptoHashMessage, VerifyCryptoHashMessage); }
public void Execute() { connection.Send(new HandshakeKeyExchangeMessage(credentials)); connection.Receive(HandleKeyExchangeMessage, 96); }