The branch OpenSSL_1_0_2-stable has been updated
       via  b1d7eaaccfeece198c268912ec015a089fdaed39 (commit)
      from  72fdf00202b1f0eca369ef4742e321b61fc5f599 (commit)


- Log -----------------------------------------------------------------
commit b1d7eaaccfeece198c268912ec015a089fdaed39
Author: Cynh <[email protected]>
Date:   Sun May 1 15:59:43 2016 +0200

    Fix SRP client key computation
    
    Signed-off-by: Kurt Roeckx <[email protected]>
    Reviewed-by: Matt Caswell <[email protected]>
    
    GH: #1017
    (cherry picked from commit c9141a43e246d527ec8b5a97b98e93fc31b0f0b8)

-----------------------------------------------------------------------

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 e9a2e05..b3e5fbb 100644
--- 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_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;
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to