Skip to content
Permalink
Browse files

PR: 2540

Submitted by: emmanuel.azencot@bull.net
Reviewed by: steve

Prevent infinite loop in BN_GF2m_mod_inv().
  • Loading branch information...
snhenson committed Jun 22, 2011
1 parent b507284 commit 8038e7e44c6060398f0793e3e16db0ad1ee95b9d
Showing with 1 addition and 0 deletions.
  1. +1 −0 crypto/bn/bn_gf2m.c
@@ -548,6 +548,7 @@ int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
{
while (!BN_is_odd(u))
{
if (BN_is_zero(u)) goto err;
if (!BN_rshift1(u, u)) goto err;
if (BN_is_odd(b))
{

0 comments on commit 8038e7e

Please sign in to comment.
You can’t perform that action at this time.