diff options
author | Ulf Möller <ulf@openssl.org> | 1999-06-09 21:13:27 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-06-09 21:13:27 +0000 |
commit | adc7fe123bffef5514dd0fe18e184623a589b3d3 (patch) | |
tree | 71dd5488afcaa52533195a4775ba9e8c27beff4c /crypto/bn/bn_div.c | |
parent | f352de9f1d24bebab18eb5eee0a39c9c3a5215cd (diff) |
Circumvent bug in SC5 without patch #107357-01.
Submitted by: Andy Polyakov <appro@fy.chalmers.se>
Diffstat (limited to 'crypto/bn/bn_div.c')
-rw-r--r-- | crypto/bn/bn_div.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c index baff07040a..defcf90c82 100644 --- a/crypto/bn/bn_div.c +++ b/crypto/bn/bn_div.c @@ -216,10 +216,10 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, t1=((BN_ULLONG)n0<<BN_BITS2)|n1; for (;;) { - t2=(BN_ULLONG)d1*q; rem=t1-(BN_ULLONG)q*d0; - if ((rem>>BN_BITS2) || - (t2 <= ((BN_ULLONG)(rem<<BN_BITS2)+wnump[-2]))) + t2=(BN_ULLONG)d1*q; + if ((rem>>BN_BITS2) || + (t2 <= ((rem<<BN_BITS2)|wnump[-2]))) break; q--; } |