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:42:23 +0000 (22:42 +0100)
commit202f7c56597eb6f57eba1ea31503a734e5fbf930
tree25e96cc43d718b6e5bd6b6d96ffc1b6831a7bc54
parent18c1f9997aa57756015e9790a987cc3a27901c72
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)

(cherry picked from commit 8a74bb5c7becbd7492f4445b852602c3e88ba143)
crypto/ec/ec_mult.c