diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-05-09 23:24:05 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-05-09 23:24:05 +0800 |
commit | 916cfa6b830f5862d036448ce7b26398d87253b4 (patch) | |
tree | 7fdf33f78a2fbf1e2b301bdefd0668a10b3c0957 | |
parent | 95a21c8fd796c570e8660db983b3032af96ec5cb (diff) |
Fix ecdsa verification
--HG--
branch : ecc
-rw-r--r-- | ecdsa.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -248,14 +248,6 @@ static int buf_get_ecdsa_verify_params(buffer *buf, struct dropbear_ecc_curve *c unsigned int sig_pos; unsigned char key_ident[30]; - ident = buf_getstring(buf, &ident_len); - snprintf((char*)key_ident, sizeof(key_ident), "ecdsa-sha2-%s", curve->name); - if (strlen((char*)key_ident) != ident_len) { - goto out; - } - if (memcmp(key_ident, ident, ident_len) != 0) { - goto out; - } sig_len = buf_getint(buf); sig_pos = buf->pos; if (buf_getmpint(buf, r) != DROPBEAR_SUCCESS) { |