projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b554eef
)
set correct bn->top value
author
Nils Larsch
<nils@openssl.org>
Thu, 21 Jul 2005 22:40:39 +0000
(22:40 +0000)
committer
Nils Larsch
<nils@openssl.org>
Thu, 21 Jul 2005 22:40:39 +0000
(22:40 +0000)
crypto/bn/bn_mont.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_mont.c
b/crypto/bn/bn_mont.c
index 6bcc9ad2e762f11f51cb0b135f00263c4c3da12f..82af91f90d7f5ca0660c7761a4caafa20a39b640 100644
(file)
--- a/
crypto/bn/bn_mont.c
+++ b/
crypto/bn/bn_mont.c
@@
-292,7
+292,7
@@
int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
buf[0]=mod->d[0]; /* tmod = N mod word size */
buf[1]=0;
tmod.d=buf;
- tmod.top
=1
;
+ tmod.top
= buf[0] != 0 ? 1 : 0
;
tmod.dmax=2;
tmod.neg=0;
/* Ri = R^-1 mod N*/