Mercurial > dropbear
diff common-kex.c @ 757:230666086711 ecc
ecc key import function
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 27 Mar 2013 23:50:52 +0800 |
parents | bf9dc2d9c2b1 |
children | 76fba0856749 |
line wrap: on
line diff
--- a/common-kex.c Wed Mar 27 00:38:03 2013 +0800 +++ b/common-kex.c Wed Mar 27 23:50:52 2013 +0800 @@ -678,10 +678,11 @@ // public keys from client and server ecc_key *Q_C, *Q_S, *Q_them; - // XXX load Q_them +oj // XXX load Q_them + Q_them = buf_get_ecc_key_string() - ses.dh_K = dropbear_ecc_shared_secret() - + ses.dh_K = dropbear_ecc_shared_secret(); + /* Check that dh_pub_them (dh_e or dh_f) is in the range [1, p-1] */ if (mp_cmp(dh_pub_them, &dh_p) != MP_LT || mp_cmp_d(dh_pub_them, 0) != MP_GT) {