projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test_mont was exercising 100-bit multiplication modulus X*I-bit, where
[openssl.git]
/
crypto
/
bn
/
bn_recp.c
diff --git
a/crypto/bn/bn_recp.c
b/crypto/bn/bn_recp.c
index e1919e3ce68586a863603bc5a57a09c90022ec08..80539c5e2c570d9ab19555864312e0201999ce39 100644
(file)
--- 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)