Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- 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);