use bn_wexpand instead of bn_expand2 (the latter is not needed here,
and it does not yet work correctly) Submitted by: Douglas Stebila
This commit is contained in:
parent
aaa384ca1a
commit
bac6012308
@ -284,7 +284,7 @@ int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
|
|||||||
if (a->top < b->top) { at = b; bt = a; }
|
if (a->top < b->top) { at = b; bt = a; }
|
||||||
else { at = a; bt = b; }
|
else { at = a; bt = b; }
|
||||||
|
|
||||||
bn_expand2(r, at->top);
|
bn_wexpand(r, at->top);
|
||||||
|
|
||||||
for (i = 0; i < bt->top; i++)
|
for (i = 0; i < bt->top; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user