Home
last modified time | relevance | path

Searched refs:newkeys (Results 1 – 8 of 8) sorted by relevance

/external/dropbear/
Dcommon-kex.c280 C2S_keysize = ses.newkeys->trans_algo_crypt->keysize; in gen_new_keys()
281 S2C_keysize = ses.newkeys->recv_algo_crypt->keysize; in gen_new_keys()
289 C2S_keysize = ses.newkeys->recv_algo_crypt->keysize; in gen_new_keys()
290 S2C_keysize = ses.newkeys->trans_algo_crypt->keysize; in gen_new_keys()
300 recv_cipher = find_cipher(ses.newkeys->recv_algo_crypt->cipherdesc->name); in gen_new_keys()
305 ses.newkeys->recv_algo_crypt->keysize, 0, in gen_new_keys()
306 &ses.newkeys->recv_symmetric_struct) != CRYPT_OK) { in gen_new_keys()
309 trans_cipher = find_cipher(ses.newkeys->trans_algo_crypt->cipherdesc->name); in gen_new_keys()
314 ses.newkeys->trans_algo_crypt->keysize, 0, in gen_new_keys()
315 &ses.newkeys->trans_symmetric_struct) != CRYPT_OK) { in gen_new_keys()
[all …]
Dsvr-kex.c91 ses.newkeys->algo_hostkey); in send_msg_kexdh_reply()
99 ses.newkeys->algo_hostkey, ses.hash, SHA1_HASH_SIZE); in send_msg_kexdh_reply()
Dcli-kex.c74 type = ses.newkeys->algo_hostkey; in recv_msg_kexdh_reply()
229 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen); in checkhostkey()
Dsession.h132 struct key_context *newkeys; member
Dcommon-session.c89 ses.newkeys = NULL; in common_session_init()
/external/openssh/
Dkex.c404 Newkeys *newkeys; in kex_choose_conf() local
434 newkeys = xcalloc(1, sizeof(*newkeys)); in kex_choose_conf()
435 kex->newkeys[mode] = newkeys; in kex_choose_conf()
441 choose_enc (&newkeys->enc, cprop[nenc], sprop[nenc]); in kex_choose_conf()
442 choose_mac (&newkeys->mac, cprop[nmac], sprop[nmac]); in kex_choose_conf()
443 choose_comp(&newkeys->comp, cprop[ncomp], sprop[ncomp]); in kex_choose_conf()
446 newkeys->enc.name, in kex_choose_conf()
447 newkeys->mac.name, in kex_choose_conf()
448 newkeys->comp.name); in kex_choose_conf()
455 newkeys = kex->newkeys[mode]; in kex_choose_conf()
[all …]
Dpacket.c165 Newkeys *newkeys[MODE_MAX]; member
230 active_state->newkeys[MODE_IN] = active_state->newkeys[MODE_OUT] = NULL; in packet_set_connection()
755 if (active_state->newkeys[mode] != NULL) { in set_newkeys()
758 enc = &active_state->newkeys[mode]->enc; in set_newkeys()
759 mac = &active_state->newkeys[mode]->mac; in set_newkeys()
760 comp = &active_state->newkeys[mode]->comp; in set_newkeys()
768 xfree(active_state->newkeys[mode]); in set_newkeys()
770 active_state->newkeys[mode] = kex_get_newkeys(mode); in set_newkeys()
771 if (active_state->newkeys[mode] == NULL) in set_newkeys()
773 enc = &active_state->newkeys[mode]->enc; in set_newkeys()
[all …]
Dkex.h120 Newkeys *newkeys[MODE_MAX]; member