Searched refs:kex (Results 1 - 15 of 15) sorted by relevance

/freebsd-10.0-release/crypto/openssh/
H A Dkexdhc.c41 #include "kex.h"
48 kexdh_client(Kex *kex) argument
59 switch (kex->kex_type) {
67 fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type);
69 dh_gen_key(dh, kex->we_need * 8);
90 if (server_host_key->type != kex->hostkey_type)
92 if (kex->verify_host_key == NULL)
94 if (kex->verify_host_key(server_host_key) == -1)
132 kex->client_version_string,
133 kex
[all...]
H A Dkexecdhc.c39 #include "kex.h"
50 kexecdh_client(Kex *kex) argument
61 if ((client_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL)
85 if (server_host_key->type != kex->hostkey_type)
87 if (kex->verify_host_key == NULL)
89 if (kex->verify_host_key(server_host_key) == -1)
127 kex->evp_md,
129 kex->client_version_string,
130 kex->server_version_string,
131 buffer_ptr(&kex
161 kexecdh_client(Kex *kex) argument
[all...]
H A Dkexdhs.c40 #include "kex.h"
51 kexdh_server(Kex *kex) argument
61 switch (kex->kex_type) {
69 fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type);
71 dh_gen_key(dh, kex->we_need * 8);
76 if (kex->load_host_public_key == NULL ||
77 kex->load_host_private_key == NULL)
79 server_host_public = kex->load_host_public_key(kex->hostkey_type);
81 fatal("Unsupported hostkey type %d", kex
[all...]
H A Dkexecdhs.c37 #include "kex.h"
52 kexecdh_server(Kex *kex) argument
63 if ((server_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL)
74 if (kex->load_host_public_key == NULL ||
75 kex->load_host_private_key == NULL)
77 server_host_public = kex->load_host_public_key(kex->hostkey_type);
79 fatal("Unsupported hostkey type %d", kex->hostkey_type);
80 server_host_private = kex->load_host_private_key(kex
162 kexecdh_server(Kex *kex) argument
[all...]
H A Dkexgexs.c42 #include "kex.h"
54 kexgex_server(Kex *kex) argument
64 if (kex->load_host_public_key == NULL ||
65 kex->load_host_private_key == NULL)
67 server_host_public = kex->load_host_public_key(kex->hostkey_type);
69 fatal("Unsupported hostkey type %d", kex->hostkey_type);
70 server_host_private = kex->load_host_private_key(kex->hostkey_type);
92 fatal("protocol error during kex, n
[all...]
H A Dkexgexc.c42 #include "kex.h"
50 kexgex_client(Kex *kex) argument
61 nbits = dh_estimate(kex->we_need * 8);
105 dh_gen_key(dh, kex->we_need * 8);
128 if (server_host_key->type != kex->hostkey_type)
130 if (kex->verify_host_key == NULL)
132 if (kex->verify_host_key(server_host_key) == -1)
173 kex->evp_md,
174 kex->client_version_string,
175 kex
[all...]
H A Dkex.c1 /* $OpenBSD: kex.c,v 1.91 2013/05/17 00:13:13 djm Exp $ */
46 #include "kex.h"
134 debug3("kex names ok: [%s]", names);
178 /* extract kex init proposal strings */
183 /* first kex follows / reserved */
208 error("Hm, kex protocol error: type %d seq %u", type, seq);
220 kex_finish(Kex *kex) argument
234 kex->done = 1;
235 buffer_clear(&kex->peer);
236 /* buffer_clear(&kex
243 kex_send_kexinit(Kex *kex) argument
282 Kex *kex = (Kex *)ctxt; local
316 Kex *kex; local
331 kex_kexinit_finish(Kex *kex) argument
451 kex_choose_conf(Kex *kex) argument
550 derive_key(Kex *kex, int id, u_int need, u_char *hash, u_int hashlen, BIGNUM *shared_secret) argument
601 kex_derive_keys(Kex *kex, u_char *hash, u_int hashlen, BIGNUM *shared_secret) argument
[all...]
H A Dsshd.c112 #include "kex.h"
663 /* Store a pointer to the kex for later rekeying */
2471 Kex *kex; local
2509 kex = kex_setup(myproposal);
2510 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server;
2511 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server;
2512 kex->kex[KEX_DH_GEX_SHA
[all...]
H A Dmonitor.c70 #include "kex.h"
1842 Kex *kex; local
1846 kex = xcalloc(1, sizeof(*kex));
1847 kex->session_id = buffer_get_string(m, &kex->session_id_len);
1849 kex->session_id_len != session_id2_len ||
1850 timingsafe_bcmp(kex->session_id, session_id2, session_id2_len) != 0)
1852 kex->we_need = buffer_get_int(m);
1853 kex
[all...]
H A Dsshconnect2.c58 #include "kex.h"
172 Kex *kex; local
216 kex = kex_setup(myproposal);
217 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client;
218 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client;
219 kex->kex[KEX_DH_GEX_SHA1] = kexgex_client;
220 kex
[all...]
H A Dmonitor_wrap.c52 #include "kex.h"
216 Kex *kex = *pmonitor->m_pkex; local
222 buffer_put_int(&m, kex->host_key_index(key));
583 mm_send_kex(Buffer *m, Kex *kex) argument
585 buffer_put_string(m, kex->session_id, kex->session_id_len);
586 buffer_put_int(m, kex->we_need);
587 buffer_put_int(m, kex->hostkey_type);
588 buffer_put_int(m, kex->kex_type);
589 buffer_put_string(m, buffer_ptr(&kex
[all...]
H A Dkex.h1 /* $OpenBSD: kex.h,v 1.56 2013/07/19 07:37:48 markus Exp $ */
144 void (*kex[KEX_MAX])(Kex *); member in struct:Kex
H A Dssh-keyscan.c39 #include "kex.h"
252 c->c_kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client;
253 c->c_kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client;
254 c->c_kex->kex[KEX_DH_GEX_SHA1] = kexgex_client;
255 c->c_kex->kex[KEX_DH_GEX_SHA256] = kexgex_client;
256 c->c_kex->kex[KEX_ECDH_SHA2] = kexecdh_client;
/freebsd-10.0-release/secure/lib/libssh/
H A DMakefile14 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
/freebsd-10.0-release/crypto/openssh/regress/
H A DMakefile68 INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers

Completed in 104 milliseconds