diff options
author | ulf <ulf> | 2000-02-06 15:56:54 +0000 |
---|---|---|
committer | ulf <ulf> | 2000-02-06 15:56:54 +0000 |
commit | c9046e8a221a667db0be3775963af5bd0160b8fa (patch) | |
tree | 0d37a3d0c5215a6d12ce3ef122237fb70abe70e9 /crypto/bn/bn_recp.c | |
parent | 77f370f77f42daba5d7741c1171164d8d969ebcc (diff) | |
download | openssl-c9046e8a221a667db0be3775963af5bd0160b8fa.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c index e1919e3ce..80539c5e2 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) |