Lines Matching refs:kex

61 	while (!server->kex->done || !client->kex->done) {  in run_kex()
74 ASSERT_INT_EQ(server->kex->done, 1); in run_kex()
75 ASSERT_INT_EQ(client->kex->done, 1); in run_kex()
79 do_kex_with_key(char *kex, int keytype, int bits) in do_kex_with_key() argument
98 if (kex != NULL) in do_kex_with_key()
99 kex_params.proposal[PROPOSAL_KEX_ALGS] = kex; in do_kex_with_key()
143 ASSERT_PTR_NE(server2->kex, NULL); in do_kex_with_key()
146 server2->kex->kex[KEX_DH_GRP1_SHA1] = kex_gen_server; in do_kex_with_key()
147 server2->kex->kex[KEX_DH_GRP14_SHA1] = kex_gen_server; in do_kex_with_key()
148 server2->kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; in do_kex_with_key()
149 server2->kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; in do_kex_with_key()
151 server2->kex->kex[KEX_ECDH_SHA2] = kex_gen_server; in do_kex_with_key()
154 server2->kex->kex[KEX_C25519_SHA256] = kex_gen_server; in do_kex_with_key()
155 server2->kex->kex[KEX_KEM_SNTRUP761X25519_SHA512] = kex_gen_server; in do_kex_with_key()
156 server2->kex->kex[KEX_KEM_MLKEM768X25519_SHA256] = kex_gen_server; in do_kex_with_key()
157 server2->kex->load_host_public_key = server->kex->load_host_public_key; in do_kex_with_key()
158 server2->kex->load_host_private_key = server->kex->load_host_private_key; in do_kex_with_key()
159 server2->kex->sign = server->kex->sign; in do_kex_with_key()
180 do_kex(char *kex) in do_kex() argument
186 do_kex_with_key(kex, KEY_RSA, 2048); in do_kex()
188 do_kex_with_key(kex, KEY_DSA, 1024); in do_kex()
191 do_kex_with_key(kex, KEY_ECDSA, 256); in do_kex()
194 do_kex_with_key(kex, KEY_ED25519, 256); in do_kex()