Make sure that BN_from_montgomery keeps the BIGNUMS in proper format
This commit is contained in:
parent
346f2f93e1
commit
4f9a9d2b79
1 changed files with 2 additions and 0 deletions
|
@ -284,6 +284,8 @@ int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont,
|
|||
}
|
||||
for (ri+=4; i<ri; i++)
|
||||
rp[i]=nrp[i], ap[i]=0;
|
||||
bn_correct_top(r);
|
||||
bn_correct_top(ret);
|
||||
# else
|
||||
if (bn_wexpand(ret,al) == NULL) goto err;
|
||||
ret->top=al;
|
||||
|
|
Loading…
Reference in a new issue