Actually, that last change to BN_get_word() was a little too simple.
This commit is contained in:
parent
f18ea6cae9
commit
afbe74d386
1 changed files with 3 additions and 1 deletions
|
@ -618,8 +618,10 @@ BN_ULONG BN_get_word(const BIGNUM *a)
|
||||||
{
|
{
|
||||||
if (a->top > 1)
|
if (a->top > 1)
|
||||||
return BN_MASK2;
|
return BN_MASK2;
|
||||||
else
|
else if (a->top == 1)
|
||||||
return a->d[0];
|
return a->d[0];
|
||||||
|
/* a->top == 0 */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int BN_set_word(BIGNUM *a, BN_ULONG w)
|
int BN_set_word(BIGNUM *a, BN_ULONG w)
|
||||||
|
|
Loading…
Reference in a new issue