diff options
author | Cynh <cynh@hotmail.fr> | 2016-05-01 15:59:43 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-05-18 23:02:30 +0200 |
commit | c9141a43e246d527ec8b5a97b98e93fc31b0f0b8 (patch) | |
tree | 93e86a8ed82ecaad4b1e67cfa28657e916fc3eeb | |
parent | Small typo, a tab where there should have been a space (diff) | |
download | openssl-c9141a43e246d527ec8b5a97b98e93fc31b0f0b8.tar.xz openssl-c9141a43e246d527ec8b5a97b98e93fc31b0f0b8.zip |
Fix SRP client key computation
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #1017
-rw-r--r-- | crypto/srp/srp_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c index ff06175747..780f5ab518 100644 --- 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_mod_mul(tmp3, u, x, N, bn_ctx)) + if (!BN_mul(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; |