Lines Matching refs:kex

74 	struct kex *kex = ssh->kex;  in input_kex_dh_gex_request()  local
85 kex->nbits = nbits; in input_kex_dh_gex_request()
86 kex->min = min; in input_kex_dh_gex_request()
87 kex->max = max; in input_kex_dh_gex_request()
93 if (kex->max < kex->min || kex->nbits < kex->min || in input_kex_dh_gex_request()
94 kex->max < kex->nbits || kex->max < DH_GRP_MIN) { in input_kex_dh_gex_request()
100 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); in input_kex_dh_gex_request()
101 if (kex->dh == NULL) { in input_kex_dh_gex_request()
107 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_request()
115 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0) in input_kex_dh_gex_request()
128 struct kex *kex = ssh->kex; in input_kex_dh_gex_init() local
151 if ((r = kex_dh_compute_key(kex, dh_client_pub, shared_secret)) != 0) in input_kex_dh_gex_init()
161 DH_get0_key(kex->dh, &pub_key, NULL); in input_kex_dh_gex_init()
162 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_init()
165 kex->hash_alg, in input_kex_dh_gex_init()
166 kex->client_version, in input_kex_dh_gex_init()
167 kex->server_version, in input_kex_dh_gex_init()
168 kex->peer, in input_kex_dh_gex_init()
169 kex->my, in input_kex_dh_gex_init()
171 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_init()
180 if ((r = kex->sign(ssh, server_host_private, server_host_public, in input_kex_dh_gex_init()
181 &signature, &slen, hash, hashlen, kex->hostkey_alg)) < 0) in input_kex_dh_gex_init()
196 DH_free(kex->dh); in input_kex_dh_gex_init()
197 kex->dh = NULL; in input_kex_dh_gex_init()