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:
7a2dfc2
)
Bug fix.
author
Ulf Möller
<ulf@openssl.org>
Wed, 1 Mar 2000 19:08:27 +0000
(19:08 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Wed, 1 Mar 2000 19:08:27 +0000
(19:08 +0000)
crypto/bn/bn_mont.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_mont.c
b/crypto/bn/bn_mont.c
index 7bb0b91223cf92356aae98369df4c12079b7b55a..598fecbf0c89fb2d8932951105c79210a46ef4ac 100644
(file)
--- a/
crypto/bn/bn_mont.c
+++ b/
crypto/bn/bn_mont.c
@@
-73,6
+73,7
@@
int BN_mod_mul_montgomery(BIGNUM *r, BIGNUM *a, BIGNUM *b,
BN_MONT_CTX *mont, BN_CTX *ctx)
{
BIGNUM *tmp,*tmp2;
+ int ret=0;
BN_CTX_start(ctx);
tmp = BN_CTX_get(ctx);
@@
-101,10
+102,10
@@
int BN_mod_mul_montgomery(BIGNUM *r, BIGNUM *a, BIGNUM *b,
}
/* reduce from aRR to aR */
if (!BN_from_montgomery(r,tmp,mont,ctx)) goto err;
- BN_CTX_end(ctx);
- return(1);
+ ret=1;
err:
- return(0);
+ BN_CTX_end(ctx);
+ return(ret);
}
int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,