comparison libtommath/bn_mp_exptmod_fast.c @ 353:59323ef2833b debug-unrandom

clarify endian difference
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 Aug 2006 16:24:29 +0000
parents 2481bc4370b8
children
comparison
equal deleted inserted replaced
352:2481bc4370b8 353:59323ef2833b
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 48
49 printhex("mp_exptmod_fast G", (void*)G->dp, sizeof(mp_digit)*G->used); 49 printhex("mp_exptmod_fast G (may differ with endian)", (void*)G->dp, sizeof(mp_digit)*G->used);
50 printhex("mp_exptmod_fast X", (void*)X->dp, sizeof(mp_digit)*X->used); 50 printhex("mp_exptmod_fast X (may differ with endian)", (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); 51 dropbear_trace("mp_exptmod_fast X used %d", X->used);
52 printhex("mp_exptmod_fast P (may differ with endian)", (void*)P->dp, sizeof(mp_digit)*P->used);
53 53
54 /* find window size */ 54 /* find window size */
55 x = mp_count_bits (X); 55 x = mp_count_bits (X);
56 if (x <= 7) { 56 if (x <= 7) {
57 winsize = 2; 57 winsize = 2;