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:
72fdf00
)
Fix SRP client key computation
author
Cynh
<cynh@hotmail.fr>
Sun, 1 May 2016 13:59:43 +0000
(15:59 +0200)
committer
Kurt Roeckx
<kurt@roeckx.be>
Wed, 18 May 2016 21:23:59 +0000
(23:23 +0200)
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #1017
(cherry picked from commit
c9141a43e246d527ec8b5a97b98e93fc31b0f0b8
)
crypto/srp/srp_lib.c
patch
|
blob
|
history
diff --git
a/crypto/srp/srp_lib.c
b/crypto/srp/srp_lib.c
index e9a2e058f687740aa2d251f24e3551c49ffc7024..b3e5fbbb8f502054e3be1a0184fd187085aaea84 100644
(file)
--- a/
crypto/srp/srp_lib.c
+++ b/
crypto/srp/srp_lib.c
@@
-279,9
+279,9
@@
BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x,
if (!BN_mod_sub(tmp, B, tmp2, N, bn_ctx))
goto err;
- if (!BN_m
od_mul(tmp3, u, x, N
, bn_ctx))
+ if (!BN_m
ul(tmp3, u, x
, bn_ctx))
goto err;
- if (!BN_
mod_add(tmp2, a, tmp3, N, bn_ctx
))
+ if (!BN_
add(tmp2, a, tmp3
))
goto err;
if (!BN_mod_exp(K, tmp, tmp2, N, bn_ctx))
goto err;