comparison rsa.c @ 807:75509065db53 ecc

have separate ecdsa keys for each size fix crash from the mp_alloc_init_multi change in RSA
author Matt Johnston <matt@ucc.asn.au>
date Sat, 25 May 2013 00:54:19 +0800
parents 724c3e0c8734
children 220f55d540ae
comparison
equal deleted inserted replaced
806:71e7d31f7671 807:75509065db53
94 94
95 key->d = NULL; 95 key->d = NULL;
96 key->p = NULL; 96 key->p = NULL;
97 key->q = NULL; 97 key->q = NULL;
98 98
99 m_mp_alloc_init_multi(&key->d); 99 m_mp_alloc_init_multi(&key->d, NULL);
100 if (buf_getmpint(buf, key->d) == DROPBEAR_FAILURE) { 100 if (buf_getmpint(buf, key->d) == DROPBEAR_FAILURE) {
101 TRACE(("leave buf_get_rsa_priv_key: d: ret == DROPBEAR_FAILURE")) 101 TRACE(("leave buf_get_rsa_priv_key: d: ret == DROPBEAR_FAILURE"))
102 goto out; 102 goto out;
103 } 103 }
104 104