| commit | 08b229e13fb68c80dc9dd3c4b73cf0debd39282e | [log] [tgz] |
|---|---|---|
| author | Bodo Möller <bodo@openssl.org> | Tue Sep 18 16:35:28 2007 +0000 |
| committer | Bodo Möller <bodo@openssl.org> | Tue Sep 18 16:35:28 2007 +0000 |
| tree | 4ffbfb42084e5b3c46bacda15e90bce15a4068f3 | |
| parent | a529a8010862dd7f787be890aeb01ceed95811c4 [diff] |
Make sure that BN_from_montgomery keeps the BIGNUMS in proper format
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index 5817538..dcee538 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c
@@ -297,6 +297,8 @@ } 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) return(0); ret->top=al;