Clear the point S before freeing in ec_scalar_mul_ladder
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 17 Mar 2019 16:28:24 +0000 (17:28 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 18 Mar 2019 21:39:55 +0000 (22:39 +0100)
commit8a74bb5c7becbd7492f4445b852602c3e88ba143
tree2c05b9acac1ea6b781e3e0eb035d385f14f5a470
parent1ff2c992c24c330c0d40708b4169b862563d6aab
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@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8504)
crypto/ec/ec_mult.c