diff options
author | Bodo Möller <bodo@openssl.org> | 2000-11-29 13:40:08 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-11-29 13:40:08 +0000 |
commit | 03a0848922d3a4b1a6f216df1c2470a6b946cd87 (patch) | |
tree | ff3d559e754b6cfefa15a90eb8bde0171266fe8b /crypto/bn/bn_shift.c | |
parent | 9161672950b6408a025833ed7a3d84b3e0ba9944 (diff) |
Fix warnings in expspeed.c (but the segmentation fault remains)
Improve readability of bn_shift.c.
Add comment in bn_lib.c (why zero data between top and max?)
Change bntest.c output for BN_kronecker test
Diffstat (limited to 'crypto/bn/bn_shift.c')
-rw-r--r-- | crypto/bn/bn_shift.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_shift.c b/crypto/bn/bn_shift.c index e4da833ea6..37c6988da3 100644 --- a/crypto/bn/bn_shift.c +++ b/crypto/bn/bn_shift.c @@ -128,8 +128,8 @@ int BN_lshift(BIGNUM *r, const BIGNUM *a, int n) BN_ULONG l; r->neg=a->neg; - if (bn_wexpand(r,a->top+(n/BN_BITS2)+1) == NULL) return(0); nw=n/BN_BITS2; + if (bn_wexpand(r,a->top+nw+1) == NULL) return(0); lb=n%BN_BITS2; rb=BN_BITS2-lb; f=a->d; |