tmp2 is not used in BN_mod_mul_montgomery.
This commit is contained in:
parent
0b5806b5f5
commit
e1a8ac495b
@ -77,12 +77,9 @@ int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
|
|||||||
|
|
||||||
BN_CTX_start(ctx);
|
BN_CTX_start(ctx);
|
||||||
tmp = BN_CTX_get(ctx);
|
tmp = BN_CTX_get(ctx);
|
||||||
tmp2 = BN_CTX_get(ctx);
|
if (tmp == NULL) goto err;
|
||||||
if (tmp == NULL || tmp2 == NULL) goto err;
|
|
||||||
|
|
||||||
bn_check_top(tmp);
|
bn_check_top(tmp);
|
||||||
bn_check_top(tmp2);
|
|
||||||
|
|
||||||
if (a == b)
|
if (a == b)
|
||||||
{
|
{
|
||||||
if (!BN_sqr(tmp,a,ctx)) goto err;
|
if (!BN_sqr(tmp,a,ctx)) goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user