]> granicus.if.org Git - openssl/commitdiff
use bn_wexpand instead of bn_expand2 (the latter is not needed here,
authorBodo Möller <bodo@openssl.org>
Sat, 3 Aug 2002 17:51:29 +0000 (17:51 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 3 Aug 2002 17:51:29 +0000 (17:51 +0000)
and it does not yet work correctly)

Submitted by: Douglas Stebila

crypto/bn/bn_gf2m.c

index bf7031b3ab3a152068d91c7adbadcd5c3359fd01..c969685c87467a0b18d4c2580009f1fa77bd72e6 100644 (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++)
                {