mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
set correct bn->top value
This commit is contained in:
parent
b554eef43b
commit
17a2994dbd
@ -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[0]=mod->d[0]; /* tmod = N mod word size */
|
||||||
buf[1]=0;
|
buf[1]=0;
|
||||||
tmod.d=buf;
|
tmod.d=buf;
|
||||||
tmod.top=1;
|
tmod.top = buf[0] != 0 ? 1 : 0;
|
||||||
tmod.dmax=2;
|
tmod.dmax=2;
|
||||||
tmod.neg=0;
|
tmod.neg=0;
|
||||||
/* Ri = R^-1 mod N*/
|
/* Ri = R^-1 mod N*/
|
||||||
|
Loading…
Reference in New Issue
Block a user