summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_recp.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-02-06 15:56:59 +0000
committerUlf Möller <ulf@openssl.org>2000-02-06 15:56:59 +0000
commitcae55bfc68bed0a2d562891f11a75bf2145eb81e (patch)
tree4f36b19f130cee733b684d2827dfd65ae28f9626 /crypto/bn/bn_recp.c
parent0fad6cb7e7359dd0911ab54a80c1b3e10b378fd3 (diff)
Improve bntest slightly, and fix another bug in the BN library.
Diffstat (limited to 'crypto/bn/bn_recp.c')
-rw-r--r--crypto/bn/bn_recp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c
index e1919e3ce6..80539c5e2c 100644
--- a/crypto/bn/bn_recp.c
+++ b/crypto/bn/bn_recp.c
@@ -158,6 +158,7 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BN_RECP_CTX *recp,
*
*/
i=BN_num_bits(m);
+ if (i%2) i--;
j=recp->num_bits*2;
if (j > i)