Lines Matching refs:newkeys
247 * ses.newkeys is the new set of keys which are generated, these are only
248 * taken into use after both sides have sent a newkeys message */
280 C2S_keysize = ses.newkeys->trans_algo_crypt->keysize;
281 S2C_keysize = ses.newkeys->recv_algo_crypt->keysize;
289 C2S_keysize = ses.newkeys->recv_algo_crypt->keysize;
290 S2C_keysize = ses.newkeys->trans_algo_crypt->keysize;
300 recv_cipher = find_cipher(ses.newkeys->recv_algo_crypt->cipherdesc->name);
305 ses.newkeys->recv_algo_crypt->keysize, 0,
306 &ses.newkeys->recv_symmetric_struct) != CRYPT_OK) {
309 trans_cipher = find_cipher(ses.newkeys->trans_algo_crypt->cipherdesc->name);
314 ses.newkeys->trans_algo_crypt->keysize, 0,
315 &ses.newkeys->trans_symmetric_struct) != CRYPT_OK) {
320 hashkeys(ses.newkeys->transmackey,
321 ses.newkeys->trans_algo_mac->keysize, &hs, mactransletter);
322 hashkeys(ses.newkeys->recvmackey,
323 ses.newkeys->recv_algo_mac->keysize, &hs, macrecvletter);
332 ses.keys = ses.newkeys;
333 ses.newkeys = NULL;
344 if (ses.newkeys->recv_algo_comp == DROPBEAR_COMP_ZLIB) {
345 ses.newkeys->recv_zstream = (z_streamp)m_malloc(sizeof(z_stream));
346 ses.newkeys->recv_zstream->zalloc = Z_NULL;
347 ses.newkeys->recv_zstream->zfree = Z_NULL;
349 if (inflateInit(ses.newkeys->recv_zstream) != Z_OK) {
353 ses.newkeys->recv_zstream = NULL;
356 if (ses.newkeys->trans_algo_comp == DROPBEAR_COMP_ZLIB) {
357 ses.newkeys->trans_zstream = (z_streamp)m_malloc(sizeof(z_stream));
358 ses.newkeys->trans_zstream->zalloc = Z_NULL;
359 ses.newkeys->trans_zstream->zfree = Z_NULL;
361 if (deflateInit(ses.newkeys->trans_zstream, Z_DEFAULT_COMPRESSION)
366 ses.newkeys->trans_zstream = NULL;
553 buf_put_pub_key(ses.kexhashbuf, hostkey, ses.newkeys->algo_hostkey);
603 ses.newkeys = (struct key_context*)m_malloc(sizeof(struct key_context));
613 ses.newkeys->algo_kex = algo->val;
623 ses.newkeys->algo_hostkey = algo->val;
690 ses.newkeys->recv_algo_crypt =
692 ses.newkeys->trans_algo_crypt =
694 ses.newkeys->recv_algo_mac =
696 ses.newkeys->trans_algo_mac =
698 ses.newkeys->recv_algo_comp = s2c_comp_algo->val;
699 ses.newkeys->trans_algo_comp = c2s_comp_algo->val;
702 ses.newkeys->recv_algo_crypt =
704 ses.newkeys->trans_algo_crypt =
706 ses.newkeys->recv_algo_mac =
708 ses.newkeys->trans_algo_mac =
710 ses.newkeys->recv_algo_comp = c2s_comp_algo->val;
711 ses.newkeys->trans_algo_comp = s2c_comp_algo->val;