projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea17b0f
)
crypto/bn/bn_gf2m.c: make it work with BN_DEBUG.
author
Andy Polyakov
<appro@openssl.org>
Mon, 5 Sep 2011 16:14:43 +0000
(16:14 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 5 Sep 2011 16:14:43 +0000
(16:14 +0000)
crypto/bn/bn_gf2m.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_gf2m.c
b/crypto/bn/bn_gf2m.c
index 55a4d1a18999df75b11c9dbdaa37664b7a20c2ff..7189ae5d82d8d845022c616c926234cda0398ac1 100644
(file)
--- a/
crypto/bn/bn_gf2m.c
+++ b/
crypto/bn/bn_gf2m.c
@@
-541,7
+541,7
@@
int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
if (BN_is_zero(u)) goto err;
if (!BN_copy(v, p)) goto err;
-#if
1
+#if
0
if (!BN_one(b)) goto err;
while (1)
@@
-630,11
+630,11
@@
int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
}
if (ubits==vbits)
{
- bn_
fix
_top(u);
+ bn_
correct
_top(u);
ubits = BN_num_bits(u);
}
}
- bn_
fix
_top(b);
+ bn_
correct
_top(b);
}
#endif