# HG changeset patch # User Matt Johnston # Date 1498271698 -28800 # Node ID 41dca1e5ea342187328c47f8da413dc23e8ae949 # Parent 793c43cf523efdba511ce412e5b0ecf80522c6f5 fix dss debug printing diff -r 793c43cf523e -r 41dca1e5ea34 dbutil.c --- 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); diff -r 793c43cf523e -r 41dca1e5ea34 dss.c --- 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 */