[openssl-commits] [openssl] master update

Kurt Roeckx kurt at openssl.org
Wed May 18 21:20:53 UTC 2016

The branch master has been updated
       via  c9141a43e246d527ec8b5a97b98e93fc31b0f0b8 (commit)
      from  291a4d91eb9896645475758dee5032351a3f773e (commit)

- Log -----------------------------------------------------------------
commit c9141a43e246d527ec8b5a97b98e93fc31b0f0b8
Author: Cynh <cynh at hotmail.fr>
Date:   Sun May 1 15:59:43 2016 +0200

    Fix SRP client key computation
    Signed-off-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    GH: #1017


Summary of changes:
 crypto/srp/srp_lib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c
index ff06175..780f5ab 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;

More information about the openssl-commits mailing list