summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_gf2m.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-09-05 16:14:43 +0000
committerAndy Polyakov <appro@openssl.org>2011-09-05 16:14:43 +0000
commitdd83d0f4a79ff244b73a9bd7262ac8db3d58a2f4 (patch)
treec8b3ccded93ba7d3324d6adc3738d650257ede50 /crypto/bn/bn_gf2m.c
parentea17b0feec9b5f455f1bc4b13d7a38ef0549b3d1 (diff)
crypto/bn/bn_gf2m.c: make it work with BN_DEBUG.
Diffstat (limited to 'crypto/bn/bn_gf2m.c')
-rw-r--r--crypto/bn/bn_gf2m.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c
index 55a4d1a189..7189ae5d82 100644
--- 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