284285286287288289290291292293294
if (sessionId == null) { sessionId = dh.getExchangeHash(); } writeMessage(new NewKeysMessage()); readMessage(NewKeysMessage.ID); updateCrypto(dh.getExchangeHash(), dh.getSharedSecret(), dh.getHashAlgorithm());