comparison libtommath/bn_mp_exptmod_fast.c @ 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
comparison
equal deleted inserted replaced
351:e66eec4dcba7 352:2481bc4370b8
43 int (*redux)(mp_int*,mp_int*,mp_digit); 43 int (*redux)(mp_int*,mp_int*,mp_digit);
44 44
45 print_mp_int("mp_exptmod_fast G", G); 45 print_mp_int("mp_exptmod_fast G", G);
46 print_mp_int("mp_exptmod_fast X", X); 46 print_mp_int("mp_exptmod_fast X", X);
47 print_mp_int("mp_exptmod_fast P", P); 47 print_mp_int("mp_exptmod_fast P", P);
48
49 printhex("mp_exptmod_fast G", (void*)G->dp, sizeof(mp_digit)*G->used);
50 printhex("mp_exptmod_fast X", (void*)X->dp, sizeof(mp_digit)*X->used);
51 printhex("mp_exptmod_fast P", (void*)P->dp, sizeof(mp_digit)*P->used);
52 dropbear_trace("mp_exptmod_fast X used %d", X->used);
48 53
49 /* find window size */ 54 /* find window size */
50 x = mp_count_bits (X); 55 x = mp_count_bits (X);
51 if (x <= 7) { 56 if (x <= 7) {
52 winsize = 2; 57 winsize = 2;