Lines Matching refs:newkeys
280 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()
320 hashkeys(ses.newkeys->transmackey, in gen_new_keys()
321 ses.newkeys->trans_algo_mac->keysize, &hs, mactransletter); in gen_new_keys()
322 hashkeys(ses.newkeys->recvmackey, in gen_new_keys()
323 ses.newkeys->recv_algo_mac->keysize, &hs, macrecvletter); in gen_new_keys()
332 ses.keys = ses.newkeys; in gen_new_keys()
333 ses.newkeys = NULL; in gen_new_keys()
344 if (ses.newkeys->recv_algo_comp == DROPBEAR_COMP_ZLIB) { in gen_new_zstreams()
345 ses.newkeys->recv_zstream = (z_streamp)m_malloc(sizeof(z_stream)); in gen_new_zstreams()
346 ses.newkeys->recv_zstream->zalloc = Z_NULL; in gen_new_zstreams()
347 ses.newkeys->recv_zstream->zfree = Z_NULL; in gen_new_zstreams()
349 if (inflateInit(ses.newkeys->recv_zstream) != Z_OK) { in gen_new_zstreams()
353 ses.newkeys->recv_zstream = NULL; in gen_new_zstreams()
356 if (ses.newkeys->trans_algo_comp == DROPBEAR_COMP_ZLIB) { in gen_new_zstreams()
357 ses.newkeys->trans_zstream = (z_streamp)m_malloc(sizeof(z_stream)); in gen_new_zstreams()
358 ses.newkeys->trans_zstream->zalloc = Z_NULL; in gen_new_zstreams()
359 ses.newkeys->trans_zstream->zfree = Z_NULL; in gen_new_zstreams()
361 if (deflateInit(ses.newkeys->trans_zstream, Z_DEFAULT_COMPRESSION) in gen_new_zstreams()
366 ses.newkeys->trans_zstream = NULL; in gen_new_zstreams()
553 buf_put_pub_key(ses.kexhashbuf, hostkey, ses.newkeys->algo_hostkey); in kexdh_comb_key()
603 ses.newkeys = (struct key_context*)m_malloc(sizeof(struct key_context)); in read_kex_algos()
613 ses.newkeys->algo_kex = algo->val; in read_kex_algos()
623 ses.newkeys->algo_hostkey = algo->val; in read_kex_algos()
690 ses.newkeys->recv_algo_crypt = in read_kex_algos()
692 ses.newkeys->trans_algo_crypt = in read_kex_algos()
694 ses.newkeys->recv_algo_mac = in read_kex_algos()
696 ses.newkeys->trans_algo_mac = in read_kex_algos()
698 ses.newkeys->recv_algo_comp = s2c_comp_algo->val; in read_kex_algos()
699 ses.newkeys->trans_algo_comp = c2s_comp_algo->val; in read_kex_algos()
702 ses.newkeys->recv_algo_crypt = in read_kex_algos()
704 ses.newkeys->trans_algo_crypt = in read_kex_algos()
706 ses.newkeys->recv_algo_mac = in read_kex_algos()
708 ses.newkeys->trans_algo_mac = in read_kex_algos()
710 ses.newkeys->recv_algo_comp = c2s_comp_algo->val; in read_kex_algos()
711 ses.newkeys->trans_algo_comp = s2c_comp_algo->val; in read_kex_algos()