diff options
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common-kex.c b/common-kex.c index 5d46f79..aa4c3a4 100644 --- a/common-kex.c +++ b/common-kex.c @@ -678,10 +678,11 @@ void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them, // 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) { |