diff options
author | Ulf Möller <ulf@openssl.org> | 2000-09-14 18:37:53 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-09-14 18:37:53 +0000 |
commit | 1d84fd64fc9d16d929e6b658bc7596051a1b400d (patch) | |
tree | 1735147dbf54abda7c7325e5b2aca527213002e6 /crypto/bn/bn_mont.c | |
parent | 03ed26afddff6f68fcc1a8d1b193eed68656b9c1 (diff) |
Bug fix: Montgomery multiplication could produce results with the wrong
sign.
Diffstat (limited to 'crypto/bn/bn_mont.c')
-rw-r--r-- | crypto/bn/bn_mont.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index d40a153f24..ca58ad33d2 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c @@ -190,6 +190,7 @@ int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont, #if 0 BN_rshift(ret,r,mont->ri); #else + ret->neg = r->neg; x=ri; rp=ret->d; ap= &(r->d[x]); |