comparison svr-kex.c @ 850:7507b174bba0 ecc

- Make curve25519 work after fixing a typo, interoperates with OpenSSH - comment on ecc binary size effects
author Matt Johnston <matt@ucc.asn.au>
date Sat, 09 Nov 2013 00:02:26 +0800
parents 754d7bee1068
children 7540c0822374
comparison
equal deleted inserted replaced
849:754d7bee1068 850:7507b174bba0
211 case DROPBEAR_KEX_CURVE25519: 211 case DROPBEAR_KEX_CURVE25519:
212 #ifdef DROPBEAR_CURVE25519 212 #ifdef DROPBEAR_CURVE25519
213 { 213 {
214 struct kex_curve25519_param *param = gen_kexcurve25519_param(); 214 struct kex_curve25519_param *param = gen_kexcurve25519_param();
215 kexcurve25519_comb_key(param, ecdh_qs, svr_opts.hostkey); 215 kexcurve25519_comb_key(param, ecdh_qs, svr_opts.hostkey);
216 buf_putstring(ses.writepayload, param->priv, CURVE25519_LEN); 216 buf_putstring(ses.writepayload, param->pub, CURVE25519_LEN);
217 free_kexcurve25519_param(param); 217 free_kexcurve25519_param(param);
218 } 218 }
219 #endif 219 #endif
220 break; 220 break;
221 } 221 }