This probably fixes a BN_rshift bug.
This commit is contained in:
parent
c3b1424cc0
commit
24bec03beb
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
|
||||||
nw=n/BN_BITS2;
|
nw=n/BN_BITS2;
|
||||||
rb=n%BN_BITS2;
|
rb=n%BN_BITS2;
|
||||||
lb=BN_BITS2-rb;
|
lb=BN_BITS2-rb;
|
||||||
if (nw > a->top)
|
if (nw > a->top || a->top == 0)
|
||||||
{
|
{
|
||||||
BN_zero(r);
|
BN_zero(r);
|
||||||
return(1);
|
return(1);
|
||||||
|
|
Loading…
Reference in a new issue