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:
Bodo Möller 2002-08-03 17:51:29 +00:00
parent aaa384ca1a
commit bac6012308

View File

@ -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; }
else { at = a; bt = b; }
bn_expand2(r, at->top);
bn_wexpand(r, at->top);
for (i = 0; i < bt->top; i++)
{