/external/openssh/ |
H A D | kexdhc.c | 41 #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 D | kexecdhs.c | 37 #include "kex.h" 52 kexecdh_server(Kex *kex) argument 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); 83 server_host_private = kex 169 kexecdh_server(Kex *kex) argument [all...] |
H A D | kexdhs.c | 40 #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 D | kexgexs.c | 42 #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); 73 kex [all...] |
H A D | kexecdhc.c | 39 #include "kex.h" 50 kexecdh_client(Kex *kex) argument 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, 133 kex 164 kexecdh_client(Kex *kex) argument [all...] |
H A D | kexgexc.c | 42 #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 D | kex.c | 1 /* $OpenBSD: kex.c,v 1.86 2010/09/22 05:01:29 djm Exp $ */ 45 #include "kex.h" 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); 169 kex_finish(Kex *kex) argument 183 kex->done = 1; 184 buffer_clear(&kex->peer); 185 /* buffer_clear(&kex 192 kex_send_kexinit(Kex *kex) argument 231 Kex *kex = (Kex *)ctxt; local 255 Kex *kex; local 270 kex_kexinit_finish(Kex *kex) argument 402 kex_choose_conf(Kex *kex) argument 478 derive_key(Kex *kex, int id, u_int need, u_char *hash, u_int hashlen, BIGNUM *shared_secret) argument 529 kex_derive_keys(Kex *kex, u_char *hash, u_int hashlen, BIGNUM *shared_secret) argument [all...] |
H A D | sshd.c | 100 #include "kex.h" 632 /* Store a pointer to the kex for later rekeying */ 2303 Kex *kex; local 2331 kex = kex_setup(myproposal); 2332 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; 2333 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; 2334 kex->kex[KEX_DH_GEX_SHA [all...] |
H A D | monitor.c | 70 #include "kex.h" 1796 Kex *kex; local 1800 kex = xcalloc(1, sizeof(*kex)); 1801 kex->session_id = buffer_get_string(m, &kex->session_id_len); 1803 kex->session_id_len != session_id2_len || 1804 timingsafe_bcmp(kex->session_id, session_id2, session_id2_len) != 0) 1806 kex->we_need = buffer_get_int(m); 1807 kex [all...] |
H A D | sshconnect2.c | 57 #include "kex.h" 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; 208 kex [all...] |
H A D | 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) argument 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); 587 buffer_put_int(m, kex->kex_type); 588 buffer_put_string(m, buffer_ptr(&kex [all...] |
H A D | kex.h | 1 /* $OpenBSD: kex.h,v 1.52 2010/09/22 05:01:29 djm Exp $ */ 138 void (*kex[KEX_MAX])(Kex *); member in struct:Kex
|
H A D | ssh-keyscan.c | 39 #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;
|
H A D | Android.mk | 15 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
|
/external/dropbear/ |
H A D | Android.mk | 11 common-session.c packet.c common-algo.c common-kex.c \ 17 cli-algo.c cli-main.c cli-auth.c cli-authpasswd.c cli-kex.c \
|
/external/openssh/regress/ |
H A D | Makefile | 62 INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
|