handleDhGroupMSG_KEX_DH_GEX_GROUP method

void handleDhGroupMSG_KEX_DH_GEX_GROUP(
  1. MSG_KEX_DH_GEX_GROUP msg
)

Completes Diffie-Hellman Group Exchange and begins key exchange.

Implementation

void handleDhGroupMSG_KEX_DH_GEX_GROUP(MSG_KEX_DH_GEX_GROUP msg) {
  if (tracePrint != null) {
    tracePrint('$hostport: MSG_KEX_DH_GEX_GROUP');
  }
  initializeDiffieHellmanGroup(msg.p, msg.g, random);
  writeClearOrEncrypted(MSG_KEX_DH_GEX_INIT(dh.e));
}