# HG changeset patch # User Matt Johnston # Date 1155140669 0 # Node ID 59323ef2833bc92465bbfdeb4b67efa2a5a627a0 # Parent 2481bc4370b8dd26ff7c22dd73cc8351c6b7c025 clarify endian difference diff -r 2481bc4370b8 -r 59323ef2833b libtommath/bn_mp_exptmod_fast.c --- a/libtommath/bn_mp_exptmod_fast.c Wed Aug 09 16:22:20 2006 +0000 +++ b/libtommath/bn_mp_exptmod_fast.c Wed Aug 09 16:24:29 2006 +0000 @@ -46,10 +46,10 @@ 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);