Lines Matching refs:kexhashbuf
420 ses.kexhashbuf = buf_new(kexhashbuf_len);
428 buf_putstring(ses.kexhashbuf,
431 buf_putstring(ses.kexhashbuf, ses.remoteident, remote_ident_len);
434 buf_putstring(ses.kexhashbuf,
438 buf_putstring(ses.kexhashbuf, ses.payload->data, ses.payload->len);
446 buf_putstring(ses.kexhashbuf, ses.remoteident, remote_ident_len);
448 buf_putstring(ses.kexhashbuf,
453 buf_putstring(ses.kexhashbuf, ses.payload->data, ses.payload->len);
456 buf_putstring(ses.kexhashbuf,
464 /* the rest of ses.kexhashbuf will be done after DH exchange */
553 buf_put_pub_key(ses.kexhashbuf, hostkey, ses.newkeys->algo_hostkey);
555 buf_putmpint(ses.kexhashbuf, dh_e);
557 buf_putmpint(ses.kexhashbuf, dh_f);
559 buf_putmpint(ses.kexhashbuf, ses.dh_K);
563 buf_setpos(ses.kexhashbuf, 0);
564 sha1_process(&hs, buf_getptr(ses.kexhashbuf, ses.kexhashbuf->len),
565 ses.kexhashbuf->len);
568 buf_burn(ses.kexhashbuf);
569 buf_free(ses.kexhashbuf);
570 ses.kexhashbuf = NULL;