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:
0dd2254
)
add missing braces
author
Bodo Möller
<bodo@openssl.org>
Wed, 29 Nov 2000 16:43:03 +0000
(16:43 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Wed, 29 Nov 2000 16:43:03 +0000
(16:43 +0000)
crypto/bn/bn_gcd.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_gcd.c
b/crypto/bn/bn_gcd.c
index d361ada8b2183be3465698ee78737e3872493692..a61ba5ee11a22723b44d7434a1fb8bcd2b790692 100644
(file)
--- a/
crypto/bn/bn_gcd.c
+++ b/
crypto/bn/bn_gcd.c
@@
-379,9
+379,13
@@
BIGNUM *BN_mod_inverse(BIGNUM *in,
{
/* Y*a == 1 (mod |n|) */
if (BN_ucmp(Y,n) < 0)
+ {
if (!BN_copy(R,Y)) goto err;
+ }
else
+ {
if (!BN_nnmod(R,Y,n,ctx)) goto err;
+ }
}
else
{
@@
-394,4
+398,3
@@
err:
BN_CTX_end(ctx);
return(ret);
}
-