Mercurial > dropbear
comparison ecdsa.c @ 1069:2fa71c3b2827 pam
merge pam branch up to date
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 16 Mar 2015 21:34:05 +0800 |
parents | 063c38ea622b |
children | c339657c9758 |
comparison
equal
deleted
inserted
replaced
1068:9a6395ddb1b6 | 1069:2fa71c3b2827 |
---|---|
129 return NULL; | 129 return NULL; |
130 } | 130 } |
131 | 131 |
132 if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) { | 132 if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) { |
133 ecc_free(new_key); | 133 ecc_free(new_key); |
134 m_free(new_key); | |
134 return NULL; | 135 return NULL; |
135 } | 136 } |
136 | 137 |
137 return new_key; | 138 return new_key; |
138 } | 139 } |
406 } | 407 } |
407 | 408 |
408 out: | 409 out: |
409 ltc_ecc_del_point(mG); | 410 ltc_ecc_del_point(mG); |
410 ltc_ecc_del_point(mQ); | 411 ltc_ecc_del_point(mQ); |
411 mp_clear_multi(r, s, v, w, u1, u2, p, e, m, NULL); | 412 ltc_deinit_multi(r, s, v, w, u1, u2, p, e, m, NULL); |
412 if (mp != NULL) { | 413 if (mp != NULL) { |
413 ltc_mp.montgomery_deinit(mp); | 414 ltc_mp.montgomery_deinit(mp); |
414 } | 415 } |
415 return ret; | 416 return ret; |
416 } | 417 } |