diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
commit | 3a1186689ae598d16a020a42844658ff57f62ff0 (patch) | |
tree | 16f4ae8dea27397fe9464df3a351983e9af99833 /libtommath/bn_mp_montgomery_reduce.c | |
parent | 9c4252f295a2a05838cd0549ba51150943fab3dd (diff) | |
parent | 44bc67ccd6e74dea369f724743f77f047fa12edb (diff) | |
download | tcl-3a1186689ae598d16a020a42844658ff57f62ff0.zip tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.gz tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.bz2 |
Merge 8.7, and update to latest libtommath (support/1.x branch)
Diffstat (limited to 'libtommath/bn_mp_montgomery_reduce.c')
-rw-r--r-- | libtommath/bn_mp_montgomery_reduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtommath/bn_mp_montgomery_reduce.c b/libtommath/bn_mp_montgomery_reduce.c index 3ce1f15..ffe8341 100644 --- a/libtommath/bn_mp_montgomery_reduce.c +++ b/libtommath/bn_mp_montgomery_reduce.c @@ -17,8 +17,8 @@ mp_err mp_montgomery_reduce(mp_int *x, const mp_int *n, mp_digit rho) * are fixed up in the inner loop. */ digs = (n->used * 2) + 1; - if ((digs < PRIVATE_MP_WARRAY) && - (x->used <= PRIVATE_MP_WARRAY) && + if ((digs < MP_WARRAY) && + (x->used <= MP_WARRAY) && (n->used < MP_MAXFAST)) { return s_mp_montgomery_reduce_fast(x, n, rho); } |