changeset 352:2481bc4370b8 debug-unrandom

add yet more
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 Aug 2006 16:22:20 +0000
parents e66eec4dcba7
children 59323ef2833b
files dbutil.c libtommath/bn_mp_exptmod_fast.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dbutil.c	Tue Aug 08 15:31:38 2006 +0000
+++ b/dbutil.c	Wed Aug 09 16:22:20 2006 +0000
@@ -576,8 +576,6 @@
 
 	int c = EOF;
 
-	TRACE(("enter buf_getline"))
-
 	buf_setpos(line, 0);
 	buf_setlen(line, 0);
 
@@ -604,7 +602,6 @@
 		TRACE(("leave buf_getline: failure"))
 		return DROPBEAR_FAILURE;
 	} else {
-		TRACE(("leave buf_getline: success"))
 		buf_setpos(line, 0);
 		return DROPBEAR_SUCCESS;
 	}
--- a/libtommath/bn_mp_exptmod_fast.c	Tue Aug 08 15:31:38 2006 +0000
+++ b/libtommath/bn_mp_exptmod_fast.c	Wed Aug 09 16:22:20 2006 +0000
@@ -46,6 +46,11 @@
   print_mp_int("mp_exptmod_fast X", X);
   print_mp_int("mp_exptmod_fast P", P);
 
+  printhex("mp_exptmod_fast G", (void*)G->dp, sizeof(mp_digit)*G->used);
+  printhex("mp_exptmod_fast X", (void*)X->dp, sizeof(mp_digit)*X->used);
+  printhex("mp_exptmod_fast P", (void*)P->dp, sizeof(mp_digit)*P->used);
+  dropbear_trace("mp_exptmod_fast X used %d", X->used);
+
   /* find window size */
   x = mp_count_bits (X);
   if (x <= 7) {