changeset 1432:41dca1e5ea34 fuzz

fix dss debug printing
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 10:34:58 +0800
parents 793c43cf523e
children 871b18fd7065
files dbutil.c dss.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dbutil.c	Sat Jun 24 10:34:19 2017 +0800
+++ b/dbutil.c	Sat Jun 24 10:34:58 2017 +0800
@@ -399,6 +399,7 @@
 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);
 
--- a/dss.c	Sat Jun 24 10:34:19 2017 +0800
+++ b/dss.c	Sat Jun 24 10:34:58 2017 +0800
@@ -176,7 +176,7 @@
 	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 */