Skip to content
Permalink
Browse files

Merge pull request #375 from libtom/fix-62

fix s_mp_montgomery_reduce_fast
  • Loading branch information
sjaeckel committed Oct 15, 2019
2 parents 69a7ca7 + 65237bc commit f8f240a7ba0f9b7093d4cab59e80811cd59f0999
Showing with 1 addition and 1 deletion.
  1. +1 −1 bn_s_mp_montgomery_reduce_fast.c
@@ -119,7 +119,7 @@ mp_err s_mp_montgomery_reduce_fast(mp_int *x, const mp_int *n, mp_digit rho)
/* alias for next word, where the carry goes */
_W = W + ++ix;

for (; ix <= ((n->used * 2) + 1); ix++) {
for (; ix < ((n->used * 2) + 1); ix++) {
*_W++ += *_W1++ >> (mp_word)MP_DIGIT_BIT;
}

0 comments on commit f8f240a

Please sign in to comment.
You can’t perform that action at this time.