summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dbutil.c1
-rw-r--r--dss.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index aadc20e..5ebad15 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -399,6 +399,7 @@ void printhex(const char * label, const unsigned char * buf, int len) {
void printmpint(const char *label, mp_int *mp) {
buffer *buf = buf_new(1000);
buf_putmpint(buf, mp);
+ fprintf(stderr, "%d bits ", mp_count_bits(mp));
printhex(label, buf->data, buf->len);
buf_free(buf);
diff --git a/dss.c b/dss.c
index 00899cf..8f80421 100644
--- a/dss.c
+++ b/dss.c
@@ -176,7 +176,7 @@ int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf) {
printmpint("dss verify p", key->p);
printmpint("dss verify q", key->q);
printmpint("dss verify g", key->g);
- printmpint("dss verify x", key->x);
+ printmpint("dss verify y", key->y);
#endif
/* hash the data */