HomeSort by relevance Sort by last modified time
    Searched refs:Kex (Results 1 - 16 of 16) sorted by null

  /external/openssh/
kex.h 1 /* $OpenBSD: kex.h,v 1.52 2010/09/22 05:01:29 djm Exp $ */
81 typedef struct Kex Kex;
117 struct Kex {
138 void (*kex[KEX_MAX])(Kex *); member in struct:Kex
143 Kex *kex_setup(char *[PROPOSAL_MAX]);
144 void kex_finish(Kex *);
146 void kex_send_kexinit(Kex *);
148 void kex_derive_keys(Kex *, u_char *, u_int, BIGNUM *)
    [all...]
kex.c 1 /* $OpenBSD: kex.c,v 1.86 2010/09/22 05:01:29 djm Exp $ */
45 #include "kex.h"
62 static void kex_kexinit_finish(Kex *);
63 static void kex_choose_conf(Kex *);
65 /* Validate KEX method name list */
83 error("Unsupported KEX algorithm \"%.100s\"", p);
88 debug3("kex names ok: [%s]", names);
127 /* extract kex init proposal strings */
132 /* first kex follows / reserved */
157 error("Hm, kex protocol error: type %d seq %u", type, seq)
231 Kex *kex = (Kex *)ctxt; local
255 Kex *kex; local
    [all...]
monitor.h 79 struct Kex **m_pkex;
kexecdhc.c 39 #include "kex.h"
50 kexecdh_client(Kex *kex)
62 if ((curve_nid = kex_ecdh_name_to_nid(kex->name)) == -1)
63 fatal("%s: unsupported ECDH curve \"%s\"", __func__, kex->name);
88 if (server_host_key->type != kex->hostkey_type)
90 if (kex->verify_host_key == NULL)
92 if (kex->verify_host_key(server_host_key) == -1)
130 kex->evp_md,
132 kex->client_version_string
    [all...]
kexecdhs.c 37 #include "kex.h"
52 kexecdh_server(Kex *kex)
64 if ((curve_nid = kex_ecdh_name_to_nid(kex->name)) == -1)
65 fatal("%s: unsupported ECDH curve \"%s\"", __func__, kex->name);
77 if (kex->load_host_public_key == NULL ||
78 kex->load_host_private_key == NULL)
80 server_host_public = kex->load_host_public_key(kex->hostkey_type);
82 fatal("Unsupported hostkey type %d", kex->hostkey_type)
    [all...]
kexdhc.c 41 #include "kex.h"
48 kexdh_client(Kex *kex)
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
    [all...]
kexdhs.c 40 #include "kex.h"
51 kexdh_server(Kex *kex)
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)
    [all...]
kexgexc.c 42 #include "kex.h"
50 kexgex_client(Kex *kex)
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
    [all...]
kexgexs.c 42 #include "kex.h"
54 kexgex_server(Kex *kex)
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)
    [all...]
ssh-keyscan.c 39 #include "kex.h"
100 Kex *c_kex; /* The key-exchange struct for ssh2 */
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;
monitor_wrap.c 52 #include "kex.h"
216 Kex *kex = *pmonitor->m_pkex; local
222 buffer_put_int(&m, kex->host_key_index(key));
582 mm_send_kex(Buffer *m, Kex *kex)
584 buffer_put_string(m, kex->session_id, kex->session_id_len);
585 buffer_put_int(m, kex->we_need);
586 buffer_put_int(m, kex->hostkey_type)
    [all...]
sshconnect2.c 57 #include "kex.h"
95 Kex *xxx_kex = NULL;
161 Kex *kex; local
204 kex = kex_setup(myproposal);
205 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client;
206 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client;
207 kex->kex[KEX_DH_GEX_SHA1] = kexgex_client
    [all...]
sshd.c 100 #include "kex.h"
195 Kex *xxx_kex;
632 /* Store a pointer to the kex for later rekeying */
2303 Kex *kex; local
    [all...]
serverloop.c 73 #include "kex.h"
86 extern Kex *xxx_kex;
    [all...]
monitor.c 70 #include "kex.h"
691 * Supported KEX types use SHA1 (20 bytes), SHA256 (32 bytes),
1796 Kex *kex; local
    [all...]
clientloop.c 101 #include "kex.h"
195 extern Kex *xxx_kex;
    [all...]

Completed in 65 milliseconds