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:
291a4d9
)
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:02:30 +0000
(23:02 +0200)
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #1017
crypto/srp/srp_lib.c
patch
|
blob
|
history
diff --git
a/crypto/srp/srp_lib.c
b/crypto/srp/srp_lib.c
index ff061757472959008d2144673f651233e05074b8..780f5ab5182639a7c652482334e2badce709e44d 100644
(file)
--- a/
crypto/srp/srp_lib.c
+++ b/
crypto/srp/srp_lib.c
@@
-228,9
+228,9
@@
BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x,
goto err;
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;