[openssl]  OpenSSL_1_1_1-stable update
    bernd.edlinger at hotmail.de 
    bernd.edlinger at hotmail.de
       
    Mon Mar 18 21:42:46 UTC 2019
    
    
  
The branch OpenSSL_1_1_1-stable has been updated
       via  202f7c56597eb6f57eba1ea31503a734e5fbf930 (commit)
      from  18c1f9997aa57756015e9790a987cc3a27901c72 (commit)
- Log -----------------------------------------------------------------
commit 202f7c56597eb6f57eba1ea31503a734e5fbf930
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Sun Mar 17 17:28:24 2019 +0100
    Clear the point S before freeing in ec_scalar_mul_ladder
    
    The secret point R can be recovered from S using the equation R = S - P.
    The X and Z coordinates should be sufficient for that.
    
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8504)
    
    (cherry picked from commit 8a74bb5c7becbd7492f4445b852602c3e88ba143)
-----------------------------------------------------------------------
Summary of changes:
 crypto/ec/ec_mult.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/ec/ec_mult.c b/crypto/ec/ec_mult.c
index 0e0a5e1..f8832e9 100644
--- a/crypto/ec/ec_mult.c
+++ b/crypto/ec/ec_mult.c
@@ -378,7 +378,7 @@ int ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r,
 
  err:
     EC_POINT_free(p);
-    EC_POINT_free(s);
+    EC_POINT_clear_free(s);
     BN_CTX_end(ctx);
 
     return ret;
    
    
More information about the openssl-commits
mailing list