projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5bc42d
)
Clear the point S before freeing in ec_mul_consttime
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Sun, 17 Mar 2019 16:28:24 +0000
(17:28 +0100)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 18 Mar 2019 21:47:05 +0000
(22:47 +0100)
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/8505)
crypto/ec/ec_mult.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_mult.c
b/crypto/ec/ec_mult.c
index 8350082eb42e35c06cf3b58eca6b3a0556fab28f..47c0fc028c9dfc08ce2e07e835462dcbda8d7e02 100644
(file)
--- a/
crypto/ec/ec_mult.c
+++ b/
crypto/ec/ec_mult.c
@@
-325,7
+325,7
@@
static int ec_mul_consttime(const EC_GROUP *group, EC_POINT *r,
ret = 1;
err:
- EC_POINT_free(s);
+ EC_POINT_
clear_
free(s);
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);