summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-05-09 23:24:05 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-05-09 23:24:05 +0800
commit916cfa6b830f5862d036448ce7b26398d87253b4 (patch)
tree7fdf33f78a2fbf1e2b301bdefd0668a10b3c0957 /ecdsa.c
parent95a21c8fd796c570e8660db983b3032af96ec5cb (diff)
Fix ecdsa verification
--HG-- branch : ecc
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ecdsa.c b/ecdsa.c
index 03b51a2..9ff89b3 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -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) {