[openssl] master update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Mon Mar 18 21:41:41 UTC 2019


The branch master has been updated
       via  8a74bb5c7becbd7492f4445b852602c3e88ba143 (commit)
      from  1ff2c992c24c330c0d40708b4169b862563d6aab (commit)


- Log -----------------------------------------------------------------
commit 8a74bb5c7becbd7492f4445b852602c3e88ba143
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)

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

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 9b0aac2..c76c528 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