The unified diff between revisions [c8601f31..] and [8f4a109b..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "libtommath/bn_mp_exptmod_fast.c"
#  from [1107da6e60672dfdac79b44a9c3cd9908db32d5a]
#    to [43700153e63d4b5bab07eec59bd64c61ae3063f5]
#
============================================================
--- libtommath/bn_mp_exptmod_fast.c	1107da6e60672dfdac79b44a9c3cd9908db32d5a
+++ libtommath/bn_mp_exptmod_fast.c	43700153e63d4b5bab07eec59bd64c61ae3063f5
@@ -46,10 +46,10 @@ int mp_exptmod_fast (mp_int * G, mp_int
   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);
+  printhex("mp_exptmod_fast G (may differ with endian)", (void*)G->dp, sizeof(mp_digit)*G->used);
+  printhex("mp_exptmod_fast X (may differ with endian)", (void*)X->dp, sizeof(mp_digit)*X->used);
   dropbear_trace("mp_exptmod_fast X used %d", X->used);
+  printhex("mp_exptmod_fast P (may differ with endian)", (void*)P->dp, sizeof(mp_digit)*P->used);

   /* find window size */
   x = mp_count_bits (X);