signature = kex.getSignature();
k = kex.getSecret();
// Send new keys
sendNewKeys();
kex.reset();
} catch (AlgorithmNotAgreedException e) {
sendDisconnect(SshMsgDisconnect.KEY_EXCHANGE_FAILED,
"No suitable key exchange algorithm was agreed");
throw new KeyExchangeException(
"No suitable key exchange algorithm could be agreed.");