comparison common-kex.c @ 857:c19acba28590

use oldstyle comments
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Nov 2013 22:03:30 +0800
parents 04ede40a529a
children 220f55d540ae
comparison
equal deleted inserted replaced
856:f56c41030c15 857:c19acba28590
683 683
684 } 684 }
685 void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them, 685 void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them,
686 sign_key *hostkey) { 686 sign_key *hostkey) {
687 const struct dropbear_kex *algo_kex = ses.newkeys->algo_kex; 687 const struct dropbear_kex *algo_kex = ses.newkeys->algo_kex;
688 // public keys from client and server 688 /* public keys from client and server */
689 ecc_key *Q_C, *Q_S, *Q_them; 689 ecc_key *Q_C, *Q_S, *Q_them;
690 690
691 Q_them = buf_get_ecc_raw_pubkey(pub_them, algo_kex->ecc_curve); 691 Q_them = buf_get_ecc_raw_pubkey(pub_them, algo_kex->ecc_curve);
692 692
693 ses.dh_K = dropbear_ecc_shared_secret(Q_them, &param->key); 693 ses.dh_K = dropbear_ecc_shared_secret(Q_them, &param->key);